Type.registerNamespace('_2night.com');
_2night.com.Photo2Service=function() {
_2night.com.Photo2Service.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
_2night.com.Photo2Service.prototype={
SendPhoto:function(email,albumID,photoid,succeededCallback, failedCallback, userContext) {
return this._invoke(_2night.com.Photo2Service.get_path(), 'SendPhoto',false,{email:email,albumID:albumID,photoid:photoid},succeededCallback,failedCallback,userContext); },
Share:function(fromemail,toemails,comment,albumID,photoid,succeededCallback, failedCallback, userContext) {
return this._invoke(_2night.com.Photo2Service.get_path(), 'Share',false,{fromemail:fromemail,toemails:toemails,comment:comment,albumID:albumID,photoid:photoid},succeededCallback,failedCallback,userContext); },
SaveCaption:function(albumID,index,caption,succeededCallback, failedCallback, userContext) {
return this._invoke(_2night.com.Photo2Service.get_path(), 'SaveCaption',false,{albumID:albumID,index:index,caption:caption},succeededCallback,failedCallback,userContext); }}
_2night.com.Photo2Service.registerClass('_2night.com.Photo2Service',Sys.Net.WebServiceProxy);
_2night.com.Photo2Service._staticInstance = new _2night.com.Photo2Service();
_2night.com.Photo2Service.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; _2night.com.Photo2Service._staticInstance._path = value; }
_2night.com.Photo2Service.get_path = function() { return _2night.com.Photo2Service._staticInstance._path; }
_2night.com.Photo2Service.set_timeout = function(value) { var e = Function._validateParams(arguments, [{name: 'timeout', type: Number}]); if (e) throw e; if (value < 0) { throw Error.argumentOutOfRange('value', value, Sys.Res.invalidTimeout); }
_2night.com.Photo2Service._staticInstance._timeout = value; }
_2night.com.Photo2Service.get_timeout = function() { 
return _2night.com.Photo2Service._staticInstance._timeout; }
_2night.com.Photo2Service.set_defaultUserContext = function(value) { 
_2night.com.Photo2Service._staticInstance._userContext = value; }
_2night.com.Photo2Service.get_defaultUserContext = function() { 
return _2night.com.Photo2Service._staticInstance._userContext; }
_2night.com.Photo2Service.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; _2night.com.Photo2Service._staticInstance._succeeded = value; }
_2night.com.Photo2Service.get_defaultSucceededCallback = function() { 
return _2night.com.Photo2Service._staticInstance._succeeded; }
_2night.com.Photo2Service.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; _2night.com.Photo2Service._staticInstance._failed = value; }
_2night.com.Photo2Service.get_defaultFailedCallback = function() { 
return _2night.com.Photo2Service._staticInstance._failed; }
_2night.com.Photo2Service.set_path("/Service/Photo2Service.asmx");
_2night.com.Photo2Service.SendPhoto= function(email,albumID,photoid,onSuccess,onFailed,userContext) {_2night.com.Photo2Service._staticInstance.SendPhoto(email,albumID,photoid,onSuccess,onFailed,userContext); }
_2night.com.Photo2Service.Share= function(fromemail,toemails,comment,albumID,photoid,onSuccess,onFailed,userContext) {_2night.com.Photo2Service._staticInstance.Share(fromemail,toemails,comment,albumID,photoid,onSuccess,onFailed,userContext); }
_2night.com.Photo2Service.SaveCaption= function(albumID,index,caption,onSuccess,onFailed,userContext) {_2night.com.Photo2Service._staticInstance.SaveCaption(albumID,index,caption,onSuccess,onFailed,userContext); }
