Type.registerNamespace('GasBuddy');
GasBuddy.PhotoService=function() {
GasBuddy.PhotoService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
GasBuddy.PhotoService.prototype={
GetSinglePhoto:function(_id,SM_ID,succeededCallback, failedCallback, userContext) {
return this._invoke(GasBuddy.PhotoService.get_path(), 'GetSinglePhoto',false,{_id:_id,SM_ID:SM_ID},succeededCallback,failedCallback,userContext); },
AddAlbum:function(_title,_visible,succeededCallback, failedCallback, userContext) {
return this._invoke(GasBuddy.PhotoService.get_path(), 'AddAlbum',false,{_title:_title,_visible:_visible},succeededCallback,failedCallback,userContext); },
EditAlbumInfo:function(id,_title,_visible,_coverPhotoId,succeededCallback, failedCallback, userContext) {
return this._invoke(GasBuddy.PhotoService.get_path(), 'EditAlbumInfo',false,{id:id,_title:_title,_visible:_visible,_coverPhotoId:_coverPhotoId},succeededCallback,failedCallback,userContext); },
DeleteAlbum:function(id,succeededCallback, failedCallback, userContext) {
return this._invoke(GasBuddy.PhotoService.get_path(), 'DeleteAlbum',false,{id:id},succeededCallback,failedCallback,userContext); },
AddPhotoComment:function(photoId,comment,succeededCallback, failedCallback, userContext) {
return this._invoke(GasBuddy.PhotoService.get_path(), 'AddPhotoComment',false,{photoId:photoId,comment:comment},succeededCallback,failedCallback,userContext); },
GetThumbnailList:function(albumId,succeededCallback, failedCallback, userContext) {
return this._invoke(GasBuddy.PhotoService.get_path(), 'GetThumbnailList',false,{albumId:albumId},succeededCallback,failedCallback,userContext); },
submitImgInfor:function(id,title,caption,succeededCallback, failedCallback, userContext) {
return this._invoke(GasBuddy.PhotoService.get_path(), 'submitImgInfor',false,{id:id,title:title,caption:caption},succeededCallback,failedCallback,userContext); },
submitAlbumCover:function(AlbumId,PhotoId,succeededCallback, failedCallback, userContext) {
return this._invoke(GasBuddy.PhotoService.get_path(), 'submitAlbumCover',false,{AlbumId:AlbumId,PhotoId:PhotoId},succeededCallback,failedCallback,userContext); },
submitProfileCover:function(PhotoId,succeededCallback, failedCallback, userContext) {
return this._invoke(GasBuddy.PhotoService.get_path(), 'submitProfileCover',false,{PhotoId:PhotoId},succeededCallback,failedCallback,userContext); },
setPrevProfilePic:function(succeededCallback, failedCallback, userContext) {
return this._invoke(GasBuddy.PhotoService.get_path(), 'setPrevProfilePic',false,{},succeededCallback,failedCallback,userContext); },
setPhotoRating:function(photoId,rating,succeededCallback, failedCallback, userContext) {
return this._invoke(GasBuddy.PhotoService.get_path(), 'setPhotoRating',false,{photoId:photoId,rating:rating},succeededCallback,failedCallback,userContext); },
setLikePhoto:function(photoId,likePhoto,succeededCallback, failedCallback, userContext) {
return this._invoke(GasBuddy.PhotoService.get_path(), 'setLikePhoto',false,{photoId:photoId,likePhoto:likePhoto},succeededCallback,failedCallback,userContext); },
AddToFavoritePhoto:function(photoId,succeededCallback, failedCallback, userContext) {
return this._invoke(GasBuddy.PhotoService.get_path(), 'AddToFavoritePhoto',false,{photoId:photoId},succeededCallback,failedCallback,userContext); },
GetPhotoStats:function(photoId,succeededCallback, failedCallback, userContext) {
return this._invoke(GasBuddy.PhotoService.get_path(), 'GetPhotoStats',false,{photoId:photoId},succeededCallback,failedCallback,userContext); },
GetSingleFavPhoto:function(photoId,succeededCallback, failedCallback, userContext) {
return this._invoke(GasBuddy.PhotoService.get_path(), 'GetSingleFavPhoto',false,{photoId:photoId},succeededCallback,failedCallback,userContext); }}
GasBuddy.PhotoService.registerClass('GasBuddy.PhotoService',Sys.Net.WebServiceProxy);
GasBuddy.PhotoService._staticInstance = new GasBuddy.PhotoService();
GasBuddy.PhotoService.set_path = function(value) { GasBuddy.PhotoService._staticInstance._path = value; }
GasBuddy.PhotoService.get_path = function() { return GasBuddy.PhotoService._staticInstance._path; }
GasBuddy.PhotoService.set_timeout = function(value) { GasBuddy.PhotoService._staticInstance._timeout = value; }
GasBuddy.PhotoService.get_timeout = function() { return GasBuddy.PhotoService._staticInstance._timeout; }
GasBuddy.PhotoService.set_defaultUserContext = function(value) { GasBuddy.PhotoService._staticInstance._userContext = value; }
GasBuddy.PhotoService.get_defaultUserContext = function() { return GasBuddy.PhotoService._staticInstance._userContext; }
GasBuddy.PhotoService.set_defaultSucceededCallback = function(value) { GasBuddy.PhotoService._staticInstance._succeeded = value; }
GasBuddy.PhotoService.get_defaultSucceededCallback = function() { return GasBuddy.PhotoService._staticInstance._succeeded; }
GasBuddy.PhotoService.set_defaultFailedCallback = function(value) { GasBuddy.PhotoService._staticInstance._failed = value; }
GasBuddy.PhotoService.get_defaultFailedCallback = function() { return GasBuddy.PhotoService._staticInstance._failed; }
GasBuddy.PhotoService.set_path("/PhotoService.asmx");
GasBuddy.PhotoService.GetSinglePhoto= function(_id,SM_ID,onSuccess,onFailed,userContext) {GasBuddy.PhotoService._staticInstance.GetSinglePhoto(_id,SM_ID,onSuccess,onFailed,userContext); }
GasBuddy.PhotoService.AddAlbum= function(_title,_visible,onSuccess,onFailed,userContext) {GasBuddy.PhotoService._staticInstance.AddAlbum(_title,_visible,onSuccess,onFailed,userContext); }
GasBuddy.PhotoService.EditAlbumInfo= function(id,_title,_visible,_coverPhotoId,onSuccess,onFailed,userContext) {GasBuddy.PhotoService._staticInstance.EditAlbumInfo(id,_title,_visible,_coverPhotoId,onSuccess,onFailed,userContext); }
GasBuddy.PhotoService.DeleteAlbum= function(id,onSuccess,onFailed,userContext) {GasBuddy.PhotoService._staticInstance.DeleteAlbum(id,onSuccess,onFailed,userContext); }
GasBuddy.PhotoService.AddPhotoComment= function(photoId,comment,onSuccess,onFailed,userContext) {GasBuddy.PhotoService._staticInstance.AddPhotoComment(photoId,comment,onSuccess,onFailed,userContext); }
GasBuddy.PhotoService.GetThumbnailList= function(albumId,onSuccess,onFailed,userContext) {GasBuddy.PhotoService._staticInstance.GetThumbnailList(albumId,onSuccess,onFailed,userContext); }
GasBuddy.PhotoService.submitImgInfor= function(id,title,caption,onSuccess,onFailed,userContext) {GasBuddy.PhotoService._staticInstance.submitImgInfor(id,title,caption,onSuccess,onFailed,userContext); }
GasBuddy.PhotoService.submitAlbumCover= function(AlbumId,PhotoId,onSuccess,onFailed,userContext) {GasBuddy.PhotoService._staticInstance.submitAlbumCover(AlbumId,PhotoId,onSuccess,onFailed,userContext); }
GasBuddy.PhotoService.submitProfileCover= function(PhotoId,onSuccess,onFailed,userContext) {GasBuddy.PhotoService._staticInstance.submitProfileCover(PhotoId,onSuccess,onFailed,userContext); }
GasBuddy.PhotoService.setPrevProfilePic= function(onSuccess,onFailed,userContext) {GasBuddy.PhotoService._staticInstance.setPrevProfilePic(onSuccess,onFailed,userContext); }
GasBuddy.PhotoService.setPhotoRating= function(photoId,rating,onSuccess,onFailed,userContext) {GasBuddy.PhotoService._staticInstance.setPhotoRating(photoId,rating,onSuccess,onFailed,userContext); }
GasBuddy.PhotoService.setLikePhoto= function(photoId,likePhoto,onSuccess,onFailed,userContext) {GasBuddy.PhotoService._staticInstance.setLikePhoto(photoId,likePhoto,onSuccess,onFailed,userContext); }
GasBuddy.PhotoService.AddToFavoritePhoto= function(photoId,onSuccess,onFailed,userContext) {GasBuddy.PhotoService._staticInstance.AddToFavoritePhoto(photoId,onSuccess,onFailed,userContext); }
GasBuddy.PhotoService.GetPhotoStats= function(photoId,onSuccess,onFailed,userContext) {GasBuddy.PhotoService._staticInstance.GetPhotoStats(photoId,onSuccess,onFailed,userContext); }
GasBuddy.PhotoService.GetSingleFavPhoto= function(photoId,onSuccess,onFailed,userContext) {GasBuddy.PhotoService._staticInstance.GetSingleFavPhoto(photoId,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(GasBuddy.GBPhoto) === 'undefined') {
GasBuddy.GBPhoto=gtc("GasBuddy.GBPhoto");
GasBuddy.GBPhoto.registerClass('GasBuddy.GBPhoto');
}
Type.registerNamespace('GasBuddy.Photo');
if (typeof(GasBuddy.Photo.PhotoStats) === 'undefined') {
GasBuddy.Photo.PhotoStats=gtc("GasBuddy.Photo.PhotoStats");
GasBuddy.Photo.PhotoStats.registerClass('GasBuddy.Photo.PhotoStats');
}

