Type.registerNamespace('Photo.Web.ScriptServices.Sharing');
Photo.Web.ScriptServices.Sharing.ShareService=function() {
Photo.Web.ScriptServices.Sharing.ShareService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Photo.Web.ScriptServices.Sharing.ShareService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Photo.Web.ScriptServices.Sharing.ShareService._staticInstance.get_path();},
SendEmail:function(from,email,message,url,succeededCallback, failedCallback, userContext) {
/// <param name="from" type="String">System.String</param>
/// <param name="email" type="String">System.String</param>
/// <param name="message" type="String">System.String</param>
/// <param name="url" 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(), 'SendEmail',false,{from:from,email:email,message:message,url:url},succeededCallback,failedCallback,userContext); }}
Photo.Web.ScriptServices.Sharing.ShareService.registerClass('Photo.Web.ScriptServices.Sharing.ShareService',Sys.Net.WebServiceProxy);
Photo.Web.ScriptServices.Sharing.ShareService._staticInstance = new Photo.Web.ScriptServices.Sharing.ShareService();
Photo.Web.ScriptServices.Sharing.ShareService.set_path = function(value) {
Photo.Web.ScriptServices.Sharing.ShareService._staticInstance.set_path(value); }
Photo.Web.ScriptServices.Sharing.ShareService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return Photo.Web.ScriptServices.Sharing.ShareService._staticInstance.get_path();}
Photo.Web.ScriptServices.Sharing.ShareService.set_timeout = function(value) {
Photo.Web.ScriptServices.Sharing.ShareService._staticInstance.set_timeout(value); }
Photo.Web.ScriptServices.Sharing.ShareService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return Photo.Web.ScriptServices.Sharing.ShareService._staticInstance.get_timeout(); }
Photo.Web.ScriptServices.Sharing.ShareService.set_defaultUserContext = function(value) { 
Photo.Web.ScriptServices.Sharing.ShareService._staticInstance.set_defaultUserContext(value); }
Photo.Web.ScriptServices.Sharing.ShareService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return Photo.Web.ScriptServices.Sharing.ShareService._staticInstance.get_defaultUserContext(); }
Photo.Web.ScriptServices.Sharing.ShareService.set_defaultSucceededCallback = function(value) { 
 Photo.Web.ScriptServices.Sharing.ShareService._staticInstance.set_defaultSucceededCallback(value); }
Photo.Web.ScriptServices.Sharing.ShareService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return Photo.Web.ScriptServices.Sharing.ShareService._staticInstance.get_defaultSucceededCallback(); }
Photo.Web.ScriptServices.Sharing.ShareService.set_defaultFailedCallback = function(value) { 
Photo.Web.ScriptServices.Sharing.ShareService._staticInstance.set_defaultFailedCallback(value); }
Photo.Web.ScriptServices.Sharing.ShareService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return Photo.Web.ScriptServices.Sharing.ShareService._staticInstance.get_defaultFailedCallback(); }
Photo.Web.ScriptServices.Sharing.ShareService.set_path("/ScriptServices/Sharing/ShareService.asmx");
Photo.Web.ScriptServices.Sharing.ShareService.SendEmail= function(from,email,message,url,onSuccess,onFailed,userContext) {
/// <param name="from" type="String">System.String</param>
/// <param name="email" type="String">System.String</param>
/// <param name="message" type="String">System.String</param>
/// <param name="url" 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>
Photo.Web.ScriptServices.Sharing.ShareService._staticInstance.SendEmail(from,email,message,url,onSuccess,onFailed,userContext); }
