Type.registerNamespace('MyPhoneServices');
MyPhoneServices.PhotoLoadingService=function() {
MyPhoneServices.PhotoLoadingService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
MyPhoneServices.PhotoLoadingService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return MyPhoneServices.PhotoLoadingService._staticInstance.get_path();},
GetPhotoCount:function(phoneId,succeededCallback, failedCallback, userContext) {
/// <param name="phoneId" 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(), 'GetPhotoCount',false,{phoneId:phoneId},succeededCallback,failedCallback,userContext); },
GetPhotoData:function(phoneId,getPhotoIndex,photoChunkSize,succeededCallback, failedCallback, userContext) {
/// <param name="phoneId" type="Number">System.Int32</param>
/// <param name="getPhotoIndex" type="Number">System.Int32</param>
/// <param name="photoChunkSize" 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(), 'GetPhotoData',false,{phoneId:phoneId,getPhotoIndex:getPhotoIndex,photoChunkSize:photoChunkSize},succeededCallback,failedCallback,userContext); }}
MyPhoneServices.PhotoLoadingService.registerClass('MyPhoneServices.PhotoLoadingService',Sys.Net.WebServiceProxy);
MyPhoneServices.PhotoLoadingService._staticInstance = new MyPhoneServices.PhotoLoadingService();
MyPhoneServices.PhotoLoadingService.set_path = function(value) {
MyPhoneServices.PhotoLoadingService._staticInstance.set_path(value); }
MyPhoneServices.PhotoLoadingService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return MyPhoneServices.PhotoLoadingService._staticInstance.get_path();}
MyPhoneServices.PhotoLoadingService.set_timeout = function(value) {
MyPhoneServices.PhotoLoadingService._staticInstance.set_timeout(value); }
MyPhoneServices.PhotoLoadingService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return MyPhoneServices.PhotoLoadingService._staticInstance.get_timeout(); }
MyPhoneServices.PhotoLoadingService.set_defaultUserContext = function(value) { 
MyPhoneServices.PhotoLoadingService._staticInstance.set_defaultUserContext(value); }
MyPhoneServices.PhotoLoadingService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return MyPhoneServices.PhotoLoadingService._staticInstance.get_defaultUserContext(); }
MyPhoneServices.PhotoLoadingService.set_defaultSucceededCallback = function(value) { 
 MyPhoneServices.PhotoLoadingService._staticInstance.set_defaultSucceededCallback(value); }
MyPhoneServices.PhotoLoadingService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return MyPhoneServices.PhotoLoadingService._staticInstance.get_defaultSucceededCallback(); }
MyPhoneServices.PhotoLoadingService.set_defaultFailedCallback = function(value) { 
MyPhoneServices.PhotoLoadingService._staticInstance.set_defaultFailedCallback(value); }
MyPhoneServices.PhotoLoadingService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return MyPhoneServices.PhotoLoadingService._staticInstance.get_defaultFailedCallback(); }
MyPhoneServices.PhotoLoadingService.set_path("/pages/assets/services/MyPhone/MyPhonePhotoService.asmx");
MyPhoneServices.PhotoLoadingService.GetPhotoCount= function(phoneId,onSuccess,onFailed,userContext) {
/// <param name="phoneId" 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>
MyPhoneServices.PhotoLoadingService._staticInstance.GetPhotoCount(phoneId,onSuccess,onFailed,userContext); }
MyPhoneServices.PhotoLoadingService.GetPhotoData= function(phoneId,getPhotoIndex,photoChunkSize,onSuccess,onFailed,userContext) {
/// <param name="phoneId" type="Number">System.Int32</param>
/// <param name="getPhotoIndex" type="Number">System.Int32</param>
/// <param name="photoChunkSize" 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>
MyPhoneServices.PhotoLoadingService._staticInstance.GetPhotoData(phoneId,getPhotoIndex,photoChunkSize,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(MyPhoneServices.PhotoCountResponse) === 'undefined') {
MyPhoneServices.PhotoCountResponse=gtc("MyPhoneServices.PhotoCountResponse");
MyPhoneServices.PhotoCountResponse.registerClass('MyPhoneServices.PhotoCountResponse');
}
if (typeof(MyPhoneServices.PhotoDataResponse) === 'undefined') {
MyPhoneServices.PhotoDataResponse=gtc("MyPhoneServices.PhotoDataResponse");
MyPhoneServices.PhotoDataResponse.registerClass('MyPhoneServices.PhotoDataResponse');
}

