Type.registerNamespace('SI.Community.Web.Services');
SI.Community.Web.Services.SIScriptService=function() {
SI.Community.Web.Services.SIScriptService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
SI.Community.Web.Services.SIScriptService.prototype={
LogIn:function(username,password,succeededCallback, failedCallback, userContext) {
return this._invoke(SI.Community.Web.Services.SIScriptService.get_path(), 'LogIn',false,{username:username,password:password},succeededCallback,failedCallback,userContext); },
GetExportedAlumni:function(username,password,succeededCallback, failedCallback, userContext) {
return this._invoke(SI.Community.Web.Services.SIScriptService.get_path(), 'GetExportedAlumni',false,{username:username,password:password},succeededCallback,failedCallback,userContext); },
GetNumMessagesInInbox:function(unread,succeededCallback, failedCallback, userContext) {
return this._invoke(SI.Community.Web.Services.SIScriptService.get_path(), 'GetNumMessagesInInbox',false,{unread:unread},succeededCallback,failedCallback,userContext); },
AddNetworkMembership:function(networkId,succeededCallback, failedCallback, userContext) {
return this._invoke(SI.Community.Web.Services.SIScriptService.get_path(), 'AddNetworkMembership',false,{networkId:networkId},succeededCallback,failedCallback,userContext); },
AddSubNetworkMembership:function(networkId,succeededCallback, failedCallback, userContext) {
return this._invoke(SI.Community.Web.Services.SIScriptService.get_path(), 'AddSubNetworkMembership',false,{networkId:networkId},succeededCallback,failedCallback,userContext); },
ApplyForSubNetworkMembership:function(networkId,succeededCallback, failedCallback, userContext) {
return this._invoke(SI.Community.Web.Services.SIScriptService.get_path(), 'ApplyForSubNetworkMembership',false,{networkId:networkId},succeededCallback,failedCallback,userContext); },
ApplyForNetworkMembership:function(networkId,succeededCallback, failedCallback, userContext) {
return this._invoke(SI.Community.Web.Services.SIScriptService.get_path(), 'ApplyForNetworkMembership',false,{networkId:networkId},succeededCallback,failedCallback,userContext); },
ConfirmApplyForNetworkMembership:function(membershipId,messageId,succeededCallback, failedCallback, userContext) {
return this._invoke(SI.Community.Web.Services.SIScriptService.get_path(), 'ConfirmApplyForNetworkMembership',false,{membershipId:membershipId,messageId:messageId},succeededCallback,failedCallback,userContext); },
IgnoreApplyForNetworkMembership:function(membershipId,messageId,succeededCallback, failedCallback, userContext) {
return this._invoke(SI.Community.Web.Services.SIScriptService.get_path(), 'IgnoreApplyForNetworkMembership',false,{membershipId:membershipId,messageId:messageId},succeededCallback,failedCallback,userContext); },
AddContactRelation:function(userId,succeededCallback, failedCallback, userContext) {
return this._invoke(SI.Community.Web.Services.SIScriptService.get_path(), 'AddContactRelation',false,{userId:userId},succeededCallback,failedCallback,userContext); },
ConfirmAddContactRelation:function(relationId,messageId,succeededCallback, failedCallback, userContext) {
return this._invoke(SI.Community.Web.Services.SIScriptService.get_path(), 'ConfirmAddContactRelation',false,{relationId:relationId,messageId:messageId},succeededCallback,failedCallback,userContext); },
IgnoreAddContactRelation:function(relationId,messageId,succeededCallback, failedCallback, userContext) {
return this._invoke(SI.Community.Web.Services.SIScriptService.get_path(), 'IgnoreAddContactRelation',false,{relationId:relationId,messageId:messageId},succeededCallback,failedCallback,userContext); },
AddEventToUserCalendar:function(eventId,succeededCallback, failedCallback, userContext) {
return this._invoke(SI.Community.Web.Services.SIScriptService.get_path(), 'AddEventToUserCalendar',false,{eventId:eventId},succeededCallback,failedCallback,userContext); },
SendMessage:function(subject,body,recipientUserId,succeededCallback, failedCallback, userContext) {
return this._invoke(SI.Community.Web.Services.SIScriptService.get_path(), 'SendMessage',false,{subject:subject,body:body,recipientUserId:recipientUserId},succeededCallback,failedCallback,userContext); },
InviteAFriend:function(friendEmail,friendName,yourName,yourEmail,message,succeededCallback, failedCallback, userContext) {
return this._invoke(SI.Community.Web.Services.SIScriptService.get_path(), 'InviteAFriend',false,{friendEmail:friendEmail,friendName:friendName,yourName:yourName,yourEmail:yourEmail,message:message},succeededCallback,failedCallback,userContext); },
ReportThis:function(justification,objId,objTypeId,nid,url,succeededCallback, failedCallback, userContext) {
return this._invoke(SI.Community.Web.Services.SIScriptService.get_path(), 'ReportThis',false,{justification:justification,objId:objId,objTypeId:objTypeId,nid:nid,url:url},succeededCallback,failedCallback,userContext); },
GetCalendarEventComments:function(eventId,panelCommentsClientId,panelAjaxLoaderClientId,linkShowCommentsClientId,linkHideCommentsClientId,succeededCallback, failedCallback, userContext) {
return this._invoke(SI.Community.Web.Services.SIScriptService.get_path(), 'GetCalendarEventComments',false,{eventId:eventId,panelCommentsClientId:panelCommentsClientId,panelAjaxLoaderClientId:panelAjaxLoaderClientId,linkShowCommentsClientId:linkShowCommentsClientId,linkHideCommentsClientId:linkHideCommentsClientId},succeededCallback,failedCallback,userContext); }}
SI.Community.Web.Services.SIScriptService.registerClass('SI.Community.Web.Services.SIScriptService',Sys.Net.WebServiceProxy);
SI.Community.Web.Services.SIScriptService._staticInstance = new SI.Community.Web.Services.SIScriptService();
SI.Community.Web.Services.SIScriptService.set_path = function(value) { SI.Community.Web.Services.SIScriptService._staticInstance._path = value; }
SI.Community.Web.Services.SIScriptService.get_path = function() { return SI.Community.Web.Services.SIScriptService._staticInstance._path; }
SI.Community.Web.Services.SIScriptService.set_timeout = function(value) { SI.Community.Web.Services.SIScriptService._staticInstance._timeout = value; }
SI.Community.Web.Services.SIScriptService.get_timeout = function() { return SI.Community.Web.Services.SIScriptService._staticInstance._timeout; }
SI.Community.Web.Services.SIScriptService.set_defaultUserContext = function(value) { SI.Community.Web.Services.SIScriptService._staticInstance._userContext = value; }
SI.Community.Web.Services.SIScriptService.get_defaultUserContext = function() { return SI.Community.Web.Services.SIScriptService._staticInstance._userContext; }
SI.Community.Web.Services.SIScriptService.set_defaultSucceededCallback = function(value) { SI.Community.Web.Services.SIScriptService._staticInstance._succeeded = value; }
SI.Community.Web.Services.SIScriptService.get_defaultSucceededCallback = function() { return SI.Community.Web.Services.SIScriptService._staticInstance._succeeded; }
SI.Community.Web.Services.SIScriptService.set_defaultFailedCallback = function(value) { SI.Community.Web.Services.SIScriptService._staticInstance._failed = value; }
SI.Community.Web.Services.SIScriptService.get_defaultFailedCallback = function() { return SI.Community.Web.Services.SIScriptService._staticInstance._failed; }
SI.Community.Web.Services.SIScriptService.set_path("/Services/SIScriptService.asmx");
SI.Community.Web.Services.SIScriptService.LogIn= function(username,password,onSuccess,onFailed,userContext) {SI.Community.Web.Services.SIScriptService._staticInstance.LogIn(username,password,onSuccess,onFailed,userContext); }
SI.Community.Web.Services.SIScriptService.GetExportedAlumni= function(username,password,onSuccess,onFailed,userContext) {SI.Community.Web.Services.SIScriptService._staticInstance.GetExportedAlumni(username,password,onSuccess,onFailed,userContext); }
SI.Community.Web.Services.SIScriptService.GetNumMessagesInInbox= function(unread,onSuccess,onFailed,userContext) {SI.Community.Web.Services.SIScriptService._staticInstance.GetNumMessagesInInbox(unread,onSuccess,onFailed,userContext); }
SI.Community.Web.Services.SIScriptService.AddNetworkMembership= function(networkId,onSuccess,onFailed,userContext) {SI.Community.Web.Services.SIScriptService._staticInstance.AddNetworkMembership(networkId,onSuccess,onFailed,userContext); }
SI.Community.Web.Services.SIScriptService.AddSubNetworkMembership= function(networkId,onSuccess,onFailed,userContext) {SI.Community.Web.Services.SIScriptService._staticInstance.AddSubNetworkMembership(networkId,onSuccess,onFailed,userContext); }
SI.Community.Web.Services.SIScriptService.ApplyForSubNetworkMembership= function(networkId,onSuccess,onFailed,userContext) {SI.Community.Web.Services.SIScriptService._staticInstance.ApplyForSubNetworkMembership(networkId,onSuccess,onFailed,userContext); }
SI.Community.Web.Services.SIScriptService.ApplyForNetworkMembership= function(networkId,onSuccess,onFailed,userContext) {SI.Community.Web.Services.SIScriptService._staticInstance.ApplyForNetworkMembership(networkId,onSuccess,onFailed,userContext); }
SI.Community.Web.Services.SIScriptService.ConfirmApplyForNetworkMembership= function(membershipId,messageId,onSuccess,onFailed,userContext) {SI.Community.Web.Services.SIScriptService._staticInstance.ConfirmApplyForNetworkMembership(membershipId,messageId,onSuccess,onFailed,userContext); }
SI.Community.Web.Services.SIScriptService.IgnoreApplyForNetworkMembership= function(membershipId,messageId,onSuccess,onFailed,userContext) {SI.Community.Web.Services.SIScriptService._staticInstance.IgnoreApplyForNetworkMembership(membershipId,messageId,onSuccess,onFailed,userContext); }
SI.Community.Web.Services.SIScriptService.AddContactRelation= function(userId,onSuccess,onFailed,userContext) {SI.Community.Web.Services.SIScriptService._staticInstance.AddContactRelation(userId,onSuccess,onFailed,userContext); }
SI.Community.Web.Services.SIScriptService.ConfirmAddContactRelation= function(relationId,messageId,onSuccess,onFailed,userContext) {SI.Community.Web.Services.SIScriptService._staticInstance.ConfirmAddContactRelation(relationId,messageId,onSuccess,onFailed,userContext); }
SI.Community.Web.Services.SIScriptService.IgnoreAddContactRelation= function(relationId,messageId,onSuccess,onFailed,userContext) {SI.Community.Web.Services.SIScriptService._staticInstance.IgnoreAddContactRelation(relationId,messageId,onSuccess,onFailed,userContext); }
SI.Community.Web.Services.SIScriptService.AddEventToUserCalendar= function(eventId,onSuccess,onFailed,userContext) {SI.Community.Web.Services.SIScriptService._staticInstance.AddEventToUserCalendar(eventId,onSuccess,onFailed,userContext); }
SI.Community.Web.Services.SIScriptService.SendMessage= function(subject,body,recipientUserId,onSuccess,onFailed,userContext) {SI.Community.Web.Services.SIScriptService._staticInstance.SendMessage(subject,body,recipientUserId,onSuccess,onFailed,userContext); }
SI.Community.Web.Services.SIScriptService.InviteAFriend= function(friendEmail,friendName,yourName,yourEmail,message,onSuccess,onFailed,userContext) {SI.Community.Web.Services.SIScriptService._staticInstance.InviteAFriend(friendEmail,friendName,yourName,yourEmail,message,onSuccess,onFailed,userContext); }
SI.Community.Web.Services.SIScriptService.ReportThis= function(justification,objId,objTypeId,nid,url,onSuccess,onFailed,userContext) {SI.Community.Web.Services.SIScriptService._staticInstance.ReportThis(justification,objId,objTypeId,nid,url,onSuccess,onFailed,userContext); }
SI.Community.Web.Services.SIScriptService.GetCalendarEventComments= function(eventId,panelCommentsClientId,panelAjaxLoaderClientId,linkShowCommentsClientId,linkHideCommentsClientId,onSuccess,onFailed,userContext) {SI.Community.Web.Services.SIScriptService._staticInstance.GetCalendarEventComments(eventId,panelCommentsClientId,panelAjaxLoaderClientId,linkShowCommentsClientId,linkHideCommentsClientId,onSuccess,onFailed,userContext); }
