Type.registerNamespace('EFSchools.Englishtown.Community.UI');
EFSchools.Englishtown.Community.UI.NotifierService=function() {
EFSchools.Englishtown.Community.UI.NotifierService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
EFSchools.Englishtown.Community.UI.NotifierService.prototype={
NotifyFriends:function(memberId,succeededCallback, failedCallback, userContext) {
return this._invoke(EFSchools.Englishtown.Community.UI.NotifierService.get_path(), 'NotifyFriends',false,{memberId:memberId},succeededCallback,failedCallback,userContext); },
SendStatusChange:function(memberId,onlineStatus,onlineStausMessage,succeededCallback, failedCallback, userContext) {
return this._invoke(EFSchools.Englishtown.Community.UI.NotifierService.get_path(), 'SendStatusChange',false,{memberId:memberId,onlineStatus:onlineStatus,onlineStausMessage:onlineStausMessage},succeededCallback,failedCallback,userContext); },
SendShortMessage:function(memberId,friendMemberId,message,succeededCallback, failedCallback, userContext) {
return this._invoke(EFSchools.Englishtown.Community.UI.NotifierService.get_path(), 'SendShortMessage',false,{memberId:memberId,friendMemberId:friendMemberId,message:message},succeededCallback,failedCallback,userContext); },
SendChatRequest:function(memberId,friendMemberId,chatRoomName,succeededCallback, failedCallback, userContext) {
return this._invoke(EFSchools.Englishtown.Community.UI.NotifierService.get_path(), 'SendChatRequest',false,{memberId:memberId,friendMemberId:friendMemberId,chatRoomName:chatRoomName},succeededCallback,failedCallback,userContext); },
SendChatRequestConfirmation:function(memberId,friendMemberId,chatRoomName,succeededCallback, failedCallback, userContext) {
return this._invoke(EFSchools.Englishtown.Community.UI.NotifierService.get_path(), 'SendChatRequestConfirmation',false,{memberId:memberId,friendMemberId:friendMemberId,chatRoomName:chatRoomName},succeededCallback,failedCallback,userContext); },
SendChatDecline:function(memberId,friendMemberId,chatRoomName,succeededCallback, failedCallback, userContext) {
return this._invoke(EFSchools.Englishtown.Community.UI.NotifierService.get_path(), 'SendChatDecline',false,{memberId:memberId,friendMemberId:friendMemberId,chatRoomName:chatRoomName},succeededCallback,failedCallback,userContext); },
SendIMRequest:function(memberId,friendMemberId,succeededCallback, failedCallback, userContext) {
return this._invoke(EFSchools.Englishtown.Community.UI.NotifierService.get_path(), 'SendIMRequest',false,{memberId:memberId,friendMemberId:friendMemberId},succeededCallback,failedCallback,userContext); },
SendIMRequestConfirmation:function(memberId,friendMemberId,succeededCallback, failedCallback, userContext) {
return this._invoke(EFSchools.Englishtown.Community.UI.NotifierService.get_path(), 'SendIMRequestConfirmation',false,{memberId:memberId,friendMemberId:friendMemberId},succeededCallback,failedCallback,userContext); },
SendIMDecline:function(memberId,friendMemberId,succeededCallback, failedCallback, userContext) {
return this._invoke(EFSchools.Englishtown.Community.UI.NotifierService.get_path(), 'SendIMDecline',false,{memberId:memberId,friendMemberId:friendMemberId},succeededCallback,failedCallback,userContext); },
BlockUser:function(memberId,userId,IsBlocked,succeededCallback, failedCallback, userContext) {
return this._invoke(EFSchools.Englishtown.Community.UI.NotifierService.get_path(), 'BlockUser',false,{memberId:memberId,userId:userId,IsBlocked:IsBlocked},succeededCallback,failedCallback,userContext); },
MemberStatus:function(memberId,succeededCallback, failedCallback, userContext) {
return this._invoke(EFSchools.Englishtown.Community.UI.NotifierService.get_path(), 'MemberStatus',false,{memberId:memberId},succeededCallback,failedCallback,userContext); },
IsFriend:function(memberId,friendMemberId,succeededCallback, failedCallback, userContext) {
return this._invoke(EFSchools.Englishtown.Community.UI.NotifierService.get_path(), 'IsFriend',false,{memberId:memberId,friendMemberId:friendMemberId},succeededCallback,failedCallback,userContext); }}
EFSchools.Englishtown.Community.UI.NotifierService.registerClass('EFSchools.Englishtown.Community.UI.NotifierService',Sys.Net.WebServiceProxy);
EFSchools.Englishtown.Community.UI.NotifierService._staticInstance = new EFSchools.Englishtown.Community.UI.NotifierService();
EFSchools.Englishtown.Community.UI.NotifierService.set_path = function(value) { EFSchools.Englishtown.Community.UI.NotifierService._staticInstance._path = value; }
EFSchools.Englishtown.Community.UI.NotifierService.get_path = function() { return EFSchools.Englishtown.Community.UI.NotifierService._staticInstance._path; }
EFSchools.Englishtown.Community.UI.NotifierService.set_timeout = function(value) { EFSchools.Englishtown.Community.UI.NotifierService._staticInstance._timeout = value; }
EFSchools.Englishtown.Community.UI.NotifierService.get_timeout = function() { return EFSchools.Englishtown.Community.UI.NotifierService._staticInstance._timeout; }
EFSchools.Englishtown.Community.UI.NotifierService.set_defaultUserContext = function(value) { EFSchools.Englishtown.Community.UI.NotifierService._staticInstance._userContext = value; }
EFSchools.Englishtown.Community.UI.NotifierService.get_defaultUserContext = function() { return EFSchools.Englishtown.Community.UI.NotifierService._staticInstance._userContext; }
EFSchools.Englishtown.Community.UI.NotifierService.set_defaultSucceededCallback = function(value) { EFSchools.Englishtown.Community.UI.NotifierService._staticInstance._succeeded = value; }
EFSchools.Englishtown.Community.UI.NotifierService.get_defaultSucceededCallback = function() { return EFSchools.Englishtown.Community.UI.NotifierService._staticInstance._succeeded; }
EFSchools.Englishtown.Community.UI.NotifierService.set_defaultFailedCallback = function(value) { EFSchools.Englishtown.Community.UI.NotifierService._staticInstance._failed = value; }
EFSchools.Englishtown.Community.UI.NotifierService.get_defaultFailedCallback = function() { return EFSchools.Englishtown.Community.UI.NotifierService._staticInstance._failed; }
EFSchools.Englishtown.Community.UI.NotifierService.set_path("/friends/Notifier/NotifierService.asmx");
EFSchools.Englishtown.Community.UI.NotifierService.NotifyFriends= function(memberId,onSuccess,onFailed,userContext) {EFSchools.Englishtown.Community.UI.NotifierService._staticInstance.NotifyFriends(memberId,onSuccess,onFailed,userContext); }
EFSchools.Englishtown.Community.UI.NotifierService.SendStatusChange= function(memberId,onlineStatus,onlineStausMessage,onSuccess,onFailed,userContext) {EFSchools.Englishtown.Community.UI.NotifierService._staticInstance.SendStatusChange(memberId,onlineStatus,onlineStausMessage,onSuccess,onFailed,userContext); }
EFSchools.Englishtown.Community.UI.NotifierService.SendShortMessage= function(memberId,friendMemberId,message,onSuccess,onFailed,userContext) {EFSchools.Englishtown.Community.UI.NotifierService._staticInstance.SendShortMessage(memberId,friendMemberId,message,onSuccess,onFailed,userContext); }
EFSchools.Englishtown.Community.UI.NotifierService.SendChatRequest= function(memberId,friendMemberId,chatRoomName,onSuccess,onFailed,userContext) {EFSchools.Englishtown.Community.UI.NotifierService._staticInstance.SendChatRequest(memberId,friendMemberId,chatRoomName,onSuccess,onFailed,userContext); }
EFSchools.Englishtown.Community.UI.NotifierService.SendChatRequestConfirmation= function(memberId,friendMemberId,chatRoomName,onSuccess,onFailed,userContext) {EFSchools.Englishtown.Community.UI.NotifierService._staticInstance.SendChatRequestConfirmation(memberId,friendMemberId,chatRoomName,onSuccess,onFailed,userContext); }
EFSchools.Englishtown.Community.UI.NotifierService.SendChatDecline= function(memberId,friendMemberId,chatRoomName,onSuccess,onFailed,userContext) {EFSchools.Englishtown.Community.UI.NotifierService._staticInstance.SendChatDecline(memberId,friendMemberId,chatRoomName,onSuccess,onFailed,userContext); }
EFSchools.Englishtown.Community.UI.NotifierService.SendIMRequest= function(memberId,friendMemberId,onSuccess,onFailed,userContext) {EFSchools.Englishtown.Community.UI.NotifierService._staticInstance.SendIMRequest(memberId,friendMemberId,onSuccess,onFailed,userContext); }
EFSchools.Englishtown.Community.UI.NotifierService.SendIMRequestConfirmation= function(memberId,friendMemberId,onSuccess,onFailed,userContext) {EFSchools.Englishtown.Community.UI.NotifierService._staticInstance.SendIMRequestConfirmation(memberId,friendMemberId,onSuccess,onFailed,userContext); }
EFSchools.Englishtown.Community.UI.NotifierService.SendIMDecline= function(memberId,friendMemberId,onSuccess,onFailed,userContext) {EFSchools.Englishtown.Community.UI.NotifierService._staticInstance.SendIMDecline(memberId,friendMemberId,onSuccess,onFailed,userContext); }
EFSchools.Englishtown.Community.UI.NotifierService.BlockUser= function(memberId,userId,IsBlocked,onSuccess,onFailed,userContext) {EFSchools.Englishtown.Community.UI.NotifierService._staticInstance.BlockUser(memberId,userId,IsBlocked,onSuccess,onFailed,userContext); }
EFSchools.Englishtown.Community.UI.NotifierService.MemberStatus= function(memberId,onSuccess,onFailed,userContext) {EFSchools.Englishtown.Community.UI.NotifierService._staticInstance.MemberStatus(memberId,onSuccess,onFailed,userContext); }
EFSchools.Englishtown.Community.UI.NotifierService.IsFriend= function(memberId,friendMemberId,onSuccess,onFailed,userContext) {EFSchools.Englishtown.Community.UI.NotifierService._staticInstance.IsFriend(memberId,friendMemberId,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('EFSchools.Englishtown.Community.Notifier');
if (typeof(EFSchools.Englishtown.Community.Notifier.CommunityNotification) === 'undefined') {
EFSchools.Englishtown.Community.Notifier.CommunityNotification=gtc("EFSchools.Englishtown.Community.Notifier.CommunityNotification");
EFSchools.Englishtown.Community.Notifier.CommunityNotification.registerClass('EFSchools.Englishtown.Community.Notifier.CommunityNotification');
}
if (typeof(EFSchools.Englishtown.Community.Notifier.NotifierReplyInfo) === 'undefined') {
EFSchools.Englishtown.Community.Notifier.NotifierReplyInfo=gtc("EFSchools.Englishtown.Community.Notifier.NotifierReplyInfo");
EFSchools.Englishtown.Community.Notifier.NotifierReplyInfo.registerClass('EFSchools.Englishtown.Community.Notifier.NotifierReplyInfo');
}
Type.registerNamespace('EFSchools.Englishtown.Community');
if (typeof(EFSchools.Englishtown.Community.MemberStatus) === 'undefined') {
EFSchools.Englishtown.Community.MemberStatus=gtc("EFSchools.Englishtown.Community.MemberStatus");
EFSchools.Englishtown.Community.MemberStatus.registerClass('EFSchools.Englishtown.Community.MemberStatus');
}
