Type.registerNamespace('OS.TC.Portal.WebSite.Modules.Photos.WebServices');
OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos=function() {
OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos._staticInstance.get_path();},
GetPhotosByCreatorIdOrSetId:function(creatorId,setId,beginIndex,count,doQueryForTotalCount,succeededCallback, failedCallback, userContext) {
/// <param name="creatorId" type="String">System.String</param>
/// <param name="setId" type="String">System.String</param>
/// <param name="beginIndex" type="Number">System.Int32</param>
/// <param name="count" type="Number">System.Int32</param>
/// <param name="doQueryForTotalCount" type="Boolean">System.Boolean</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetPhotosByCreatorIdOrSetId',false,{creatorId:creatorId,setId:setId,beginIndex:beginIndex,count:count,doQueryForTotalCount:doQueryForTotalCount},succeededCallback,failedCallback,userContext); },
DetachPhotoFromSet:function(photoId,setId,succeededCallback, failedCallback, userContext) {
/// <param name="photoId" type="String">System.String</param>
/// <param name="setId" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'DetachPhotoFromSet',false,{photoId:photoId,setId:setId},succeededCallback,failedCallback,userContext); },
GetSetsOfCurrentUser:function(succeededCallback, failedCallback, userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetSetsOfCurrentUser',false,{},succeededCallback,failedCallback,userContext); },
GetSetsOfCurrentUserForComment:function(succeededCallback, failedCallback, userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetSetsOfCurrentUserForComment',false,{},succeededCallback,failedCallback,userContext); },
GetPhotos:function(setId,from,count,succeededCallback, failedCallback, userContext) {
/// <param name="setId" type="String">System.Guid</param>
/// <param name="from" type="Number">System.Int32</param>
/// <param name="count" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetPhotos',false,{setId:setId,from:from,count:count},succeededCallback,failedCallback,userContext); },
GetCurrentUserPhotos:function(setId,from,count,succeededCallback, failedCallback, userContext) {
/// <param name="setId" type="String">System.Guid</param>
/// <param name="from" type="Number">System.Int32</param>
/// <param name="count" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetCurrentUserPhotos',false,{setId:setId,from:from,count:count},succeededCallback,failedCallback,userContext); },
GetAllPhotos:function(photoguid,newer,count,succeededCallback, failedCallback, userContext) {
/// <param name="photoguid" type="String">System.String</param>
/// <param name="newer" type="Boolean">System.Boolean</param>
/// <param name="count" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetAllPhotos',false,{photoguid:photoguid,newer:newer,count:count},succeededCallback,failedCallback,userContext); },
DeletePhotos:function(ids,succeededCallback, failedCallback, userContext) {
/// <param name="ids" type="Array">System.String[]</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'DeletePhotos',false,{ids:ids},succeededCallback,failedCallback,userContext); }}
OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos.registerClass('OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos',Sys.Net.WebServiceProxy);
OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos._staticInstance = new OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos();
OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos.set_path = function(value) {
OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos._staticInstance.set_path(value); }
OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos._staticInstance.get_path();}
OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos.set_timeout = function(value) {
OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos._staticInstance.set_timeout(value); }
OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos._staticInstance.get_timeout(); }
OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos.set_defaultUserContext = function(value) { 
OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos._staticInstance.set_defaultUserContext(value); }
OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos._staticInstance.get_defaultUserContext(); }
OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos.set_defaultSucceededCallback = function(value) { 
 OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos._staticInstance.set_defaultSucceededCallback(value); }
OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos._staticInstance.get_defaultSucceededCallback(); }
OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos.set_defaultFailedCallback = function(value) { 
OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos._staticInstance.set_defaultFailedCallback(value); }
OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos._staticInstance.get_defaultFailedCallback(); }
OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos.set_path("/Modules/Photos/WebServices/Photos.asmx");
OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos.GetPhotosByCreatorIdOrSetId= function(creatorId,setId,beginIndex,count,doQueryForTotalCount,onSuccess,onFailed,userContext) {
/// <param name="creatorId" type="String">System.String</param>
/// <param name="setId" type="String">System.String</param>
/// <param name="beginIndex" type="Number">System.Int32</param>
/// <param name="count" type="Number">System.Int32</param>
/// <param name="doQueryForTotalCount" type="Boolean">System.Boolean</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos._staticInstance.GetPhotosByCreatorIdOrSetId(creatorId,setId,beginIndex,count,doQueryForTotalCount,onSuccess,onFailed,userContext); }
OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos.DetachPhotoFromSet= function(photoId,setId,onSuccess,onFailed,userContext) {
/// <param name="photoId" type="String">System.String</param>
/// <param name="setId" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos._staticInstance.DetachPhotoFromSet(photoId,setId,onSuccess,onFailed,userContext); }
OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos.GetSetsOfCurrentUser= function(onSuccess,onFailed,userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos._staticInstance.GetSetsOfCurrentUser(onSuccess,onFailed,userContext); }
OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos.GetSetsOfCurrentUserForComment= function(onSuccess,onFailed,userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos._staticInstance.GetSetsOfCurrentUserForComment(onSuccess,onFailed,userContext); }
OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos.GetPhotos= function(setId,from,count,onSuccess,onFailed,userContext) {
/// <param name="setId" type="String">System.Guid</param>
/// <param name="from" type="Number">System.Int32</param>
/// <param name="count" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos._staticInstance.GetPhotos(setId,from,count,onSuccess,onFailed,userContext); }
OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos.GetCurrentUserPhotos= function(setId,from,count,onSuccess,onFailed,userContext) {
/// <param name="setId" type="String">System.Guid</param>
/// <param name="from" type="Number">System.Int32</param>
/// <param name="count" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos._staticInstance.GetCurrentUserPhotos(setId,from,count,onSuccess,onFailed,userContext); }
OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos.GetAllPhotos= function(photoguid,newer,count,onSuccess,onFailed,userContext) {
/// <param name="photoguid" type="String">System.String</param>
/// <param name="newer" type="Boolean">System.Boolean</param>
/// <param name="count" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos._staticInstance.GetAllPhotos(photoguid,newer,count,onSuccess,onFailed,userContext); }
OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos.DeletePhotos= function(ids,onSuccess,onFailed,userContext) {
/// <param name="ids" type="Array">System.String[]</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
OS.TC.Portal.WebSite.Modules.Photos.WebServices.Photos._staticInstance.DeletePhotos(ids,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('OS.TC.Portal.WebSite.Modules.Photos');
if (typeof(OS.TC.Portal.WebSite.Modules.Photos.SetInfo) === 'undefined') {
OS.TC.Portal.WebSite.Modules.Photos.SetInfo=gtc("OS.TC.Portal.WebSite.Modules.Photos.SetInfo");
OS.TC.Portal.WebSite.Modules.Photos.SetInfo.registerClass('OS.TC.Portal.WebSite.Modules.Photos.SetInfo');
}
if (typeof(OS.TC.Portal.WebSite.Modules.Photos.PhotoInfo) === 'undefined') {
OS.TC.Portal.WebSite.Modules.Photos.PhotoInfo=gtc("OS.TC.Portal.WebSite.Modules.Photos.PhotoInfo");
OS.TC.Portal.WebSite.Modules.Photos.PhotoInfo.registerClass('OS.TC.Portal.WebSite.Modules.Photos.PhotoInfo');
}

