var InstantMessageService=function() {
InstantMessageService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
InstantMessageService.prototype={
GetAll:function(accountID,isNew,succeededCallback, failedCallback, userContext) {
return this._invoke(InstantMessageService.get_path(), 'GetAll',false,{accountID:accountID,isNew:isNew},succeededCallback,failedCallback,userContext); },
Delete:function(instantMessageID,accountID,succeededCallback, failedCallback, userContext) {
return this._invoke(InstantMessageService.get_path(), 'Delete',false,{instantMessageID:instantMessageID,accountID:accountID},succeededCallback,failedCallback,userContext); },
Create:function(fromAccountID,toAccountID,isVideo,succeededCallback, failedCallback, userContext) {
return this._invoke(InstantMessageService.get_path(), 'Create',false,{fromAccountID:fromAccountID,toAccountID:toAccountID,isVideo:isVideo},succeededCallback,failedCallback,userContext); },
Update:function(instantMessageID,accountID,windowState,succeededCallback, failedCallback, userContext) {
return this._invoke(InstantMessageService.get_path(), 'Update',false,{instantMessageID:instantMessageID,accountID:accountID,windowState:windowState},succeededCallback,failedCallback,userContext); }}
InstantMessageService.registerClass('InstantMessageService',Sys.Net.WebServiceProxy);
InstantMessageService._staticInstance = new InstantMessageService();
InstantMessageService.set_path = function(value) { InstantMessageService._staticInstance._path = value; }
InstantMessageService.get_path = function() { return InstantMessageService._staticInstance._path; }
InstantMessageService.set_timeout = function(value) { InstantMessageService._staticInstance._timeout = value; }
InstantMessageService.get_timeout = function() { return InstantMessageService._staticInstance._timeout; }
InstantMessageService.set_defaultUserContext = function(value) { InstantMessageService._staticInstance._userContext = value; }
InstantMessageService.get_defaultUserContext = function() { return InstantMessageService._staticInstance._userContext; }
InstantMessageService.set_defaultSucceededCallback = function(value) { InstantMessageService._staticInstance._succeeded = value; }
InstantMessageService.get_defaultSucceededCallback = function() { return InstantMessageService._staticInstance._succeeded; }
InstantMessageService.set_defaultFailedCallback = function(value) { InstantMessageService._staticInstance._failed = value; }
InstantMessageService.get_defaultFailedCallback = function() { return InstantMessageService._staticInstance._failed; }
InstantMessageService.set_path("/WebServices/InstantMessageService.asmx");
InstantMessageService.GetAll= function(accountID,isNew,onSuccess,onFailed,userContext) {InstantMessageService._staticInstance.GetAll(accountID,isNew,onSuccess,onFailed,userContext); }
InstantMessageService.Delete= function(instantMessageID,accountID,onSuccess,onFailed,userContext) {InstantMessageService._staticInstance.Delete(instantMessageID,accountID,onSuccess,onFailed,userContext); }
InstantMessageService.Create= function(fromAccountID,toAccountID,isVideo,onSuccess,onFailed,userContext) {InstantMessageService._staticInstance.Create(fromAccountID,toAccountID,isVideo,onSuccess,onFailed,userContext); }
InstantMessageService.Update= function(instantMessageID,accountID,windowState,onSuccess,onFailed,userContext) {InstantMessageService._staticInstance.Update(instantMessageID,accountID,windowState,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('WorldVuer.Data');
if (typeof(WorldVuer.Data.InstantMessage) === 'undefined') {
WorldVuer.Data.InstantMessage=gtc("WorldVuer.Data.InstantMessage");
WorldVuer.Data.InstantMessage.registerClass('WorldVuer.Data.InstantMessage');
}
if (typeof(WorldVuer.Data.ChatWindowState) === 'undefined') {
WorldVuer.Data.ChatWindowState = function() { throw Error.invalidOperation(); }
WorldVuer.Data.ChatWindowState.prototype = {None: 0,New: 1,Open: 2,Video: 3,Closed: 4}
WorldVuer.Data.ChatWindowState.registerEnum('WorldVuer.Data.ChatWindowState', true);
}
