var iSpy=function() {
iSpy.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
iSpy.prototype={
TestConnection:function(Username,Password,Port,Identifier,succeededCallback, failedCallback, userContext) {
return this._invoke(iSpy.get_path(), 'TestConnection',false,{Username:Username,Password:Password,Port:Port,Identifier:Identifier},succeededCallback,failedCallback,userContext); },
RemoteAddress:function(succeededCallback, failedCallback, userContext) {
return this._invoke(iSpy.get_path(), 'RemoteAddress',false,{},succeededCallback,failedCallback,userContext); },
Connect:function(Username,Password,Port,Identifier,succeededCallback, failedCallback, userContext) {
return this._invoke(iSpy.get_path(), 'Connect',false,{Username:Username,Password:Password,Port:Port,Identifier:Identifier},succeededCallback,failedCallback,userContext); },
Ping:function(succeededCallback, failedCallback, userContext) {
return this._invoke(iSpy.get_path(), 'Ping',false,{},succeededCallback,failedCallback,userContext); },
Disconnect:function(Username,Password,Port,succeededCallback, failedCallback, userContext) {
return this._invoke(iSpy.get_path(), 'Disconnect',false,{Username:Username,Password:Password,Port:Port},succeededCallback,failedCallback,userContext); },
NewContent:function(Username,Password,Port,UserObjectID,ObjectTypeID,succeededCallback, failedCallback, userContext) {
return this._invoke(iSpy.get_path(), 'NewContent',false,{Username:Username,Password:Password,Port:Port,UserObjectID:UserObjectID,ObjectTypeID:ObjectTypeID},succeededCallback,failedCallback,userContext); },
ForceSync:function(Username,Password,Port,Settings,succeededCallback, failedCallback, userContext) {
return this._invoke(iSpy.get_path(), 'ForceSync',false,{Username:Username,Password:Password,Port:Port,Settings:Settings},succeededCallback,failedCallback,userContext); },
GetVideoList:function(CameraID,Port,AuthenticationCode,succeededCallback, failedCallback, userContext) {
return this._invoke(iSpy.get_path(), 'GetVideoList',false,{CameraID:CameraID,Port:Port,AuthenticationCode:AuthenticationCode},succeededCallback,failedCallback,userContext); },
GetVideoListGroup:function(CameraID,AuthenticationCode,iSpyID,succeededCallback, failedCallback, userContext) {
return this._invoke(iSpy.get_path(), 'GetVideoListGroup',false,{CameraID:CameraID,AuthenticationCode:AuthenticationCode,iSpyID:iSpyID},succeededCallback,failedCallback,userContext); },
SetNotification:function(ObjectTypeID,ObjectID,Port,Notify,AuthenticationCode,succeededCallback, failedCallback, userContext) {
return this._invoke(iSpy.get_path(), 'SetNotification',false,{ObjectTypeID:ObjectTypeID,ObjectID:ObjectID,Port:Port,Notify:Notify,AuthenticationCode:AuthenticationCode},succeededCallback,failedCallback,userContext); },
GetAudioList:function(MicrophoneID,Port,AuthenticationCode,succeededCallback, failedCallback, userContext) {
return this._invoke(iSpy.get_path(), 'GetAudioList',false,{MicrophoneID:MicrophoneID,Port:Port,AuthenticationCode:AuthenticationCode},succeededCallback,failedCallback,userContext); },
GetAudioListGroup:function(MicrophoneID,AuthenticationCode,iSpyID,succeededCallback, failedCallback, userContext) {
return this._invoke(iSpy.get_path(), 'GetAudioListGroup',false,{MicrophoneID:MicrophoneID,AuthenticationCode:AuthenticationCode,iSpyID:iSpyID},succeededCallback,failedCallback,userContext); },
SendCommand:function(command,Port,AuthenticationCode,succeededCallback, failedCallback, userContext) {
return this._invoke(iSpy.get_path(), 'SendCommand',false,{command:command,Port:Port,AuthenticationCode:AuthenticationCode},succeededCallback,failedCallback,userContext); },
ApproveUser:function(UserID,succeededCallback, failedCallback, userContext) {
return this._invoke(iSpy.get_path(), 'ApproveUser',false,{UserID:UserID},succeededCallback,failedCallback,userContext); },
RemoveUser:function(UserID,succeededCallback, failedCallback, userContext) {
return this._invoke(iSpy.get_path(), 'RemoveUser',false,{UserID:UserID},succeededCallback,failedCallback,userContext); },
RemoveObject:function(ObjectTypeID,ObjectID,Port,succeededCallback, failedCallback, userContext) {
return this._invoke(iSpy.get_path(), 'RemoveObject',false,{ObjectTypeID:ObjectTypeID,ObjectID:ObjectID,Port:Port},succeededCallback,failedCallback,userContext); },
SendInvites:function(EmailAddresses,succeededCallback, failedCallback, userContext) {
return this._invoke(iSpy.get_path(), 'SendInvites',false,{EmailAddresses:EmailAddresses},succeededCallback,failedCallback,userContext); },
GetChat:function(ChatCount,succeededCallback, failedCallback, userContext) {
return this._invoke(iSpy.get_path(), 'GetChat',false,{ChatCount:ChatCount},succeededCallback,failedCallback,userContext); },
AddChat:function(Chattext,succeededCallback, failedCallback, userContext) {
return this._invoke(iSpy.get_path(), 'AddChat',false,{Chattext:Chattext},succeededCallback,failedCallback,userContext); },
UpdateObjectDescription:function(ObjectTypeID,ObjectID,Port,Description,succeededCallback, failedCallback, userContext) {
return this._invoke(iSpy.get_path(), 'UpdateObjectDescription',false,{ObjectTypeID:ObjectTypeID,ObjectID:ObjectID,Port:Port,Description:Description},succeededCallback,failedCallback,userContext); },
SendAlert:function(Username,Password,AlertSubject,AlertBody,succeededCallback, failedCallback, userContext) {
return this._invoke(iSpy.get_path(), 'SendAlert',false,{Username:Username,Password:Password,AlertSubject:AlertSubject,AlertBody:AlertBody},succeededCallback,failedCallback,userContext); },
SendAlertWithImage:function(Username,Password,AlertSubject,AlertBody,CameraID,Port,AuthenticationCode,succeededCallback, failedCallback, userContext) {
return this._invoke(iSpy.get_path(), 'SendAlertWithImage',false,{Username:Username,Password:Password,AlertSubject:AlertSubject,AlertBody:AlertBody,CameraID:CameraID,Port:Port,AuthenticationCode:AuthenticationCode},succeededCallback,failedCallback,userContext); },
SendFrameGrab:function(Username,Password,Subject,Body,CameraID,Port,AuthenticationCode,succeededCallback, failedCallback, userContext) {
return this._invoke(iSpy.get_path(), 'SendFrameGrab',false,{Username:Username,Password:Password,Subject:Subject,Body:Body,CameraID:CameraID,Port:Port,AuthenticationCode:AuthenticationCode},succeededCallback,failedCallback,userContext); },
ProductLatestVersionGet:function(ProductID,succeededCallback, failedCallback, userContext) {
return this._invoke(iSpy.get_path(), 'ProductLatestVersionGet',false,{ProductID:ProductID},succeededCallback,failedCallback,userContext); },
SendSMS:function(Username,Password,SMSNumber,Message,succeededCallback, failedCallback, userContext) {
return this._invoke(iSpy.get_path(), 'SendSMS',false,{Username:Username,Password:Password,SMSNumber:SMSNumber,Message:Message},succeededCallback,failedCallback,userContext); }}
iSpy.registerClass('iSpy',Sys.Net.WebServiceProxy);
iSpy._staticInstance = new iSpy();
iSpy.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; iSpy._staticInstance._path = value; }
iSpy.get_path = function() { return iSpy._staticInstance._path; }
iSpy.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); }
iSpy._staticInstance._timeout = value; }
iSpy.get_timeout = function() { 
return iSpy._staticInstance._timeout; }
iSpy.set_defaultUserContext = function(value) { 
iSpy._staticInstance._userContext = value; }
iSpy.get_defaultUserContext = function() { 
return iSpy._staticInstance._userContext; }
iSpy.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; iSpy._staticInstance._succeeded = value; }
iSpy.get_defaultSucceededCallback = function() { 
return iSpy._staticInstance._succeeded; }
iSpy.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; iSpy._staticInstance._failed = value; }
iSpy.get_defaultFailedCallback = function() { 
return iSpy._staticInstance._failed; }
iSpy.set_path("/Webservices/iSpy.asmx");
iSpy.TestConnection= function(Username,Password,Port,Identifier,onSuccess,onFailed,userContext) {iSpy._staticInstance.TestConnection(Username,Password,Port,Identifier,onSuccess,onFailed,userContext); }
iSpy.RemoteAddress= function(onSuccess,onFailed,userContext) {iSpy._staticInstance.RemoteAddress(onSuccess,onFailed,userContext); }
iSpy.Connect= function(Username,Password,Port,Identifier,onSuccess,onFailed,userContext) {iSpy._staticInstance.Connect(Username,Password,Port,Identifier,onSuccess,onFailed,userContext); }
iSpy.Ping= function(onSuccess,onFailed,userContext) {iSpy._staticInstance.Ping(onSuccess,onFailed,userContext); }
iSpy.Disconnect= function(Username,Password,Port,onSuccess,onFailed,userContext) {iSpy._staticInstance.Disconnect(Username,Password,Port,onSuccess,onFailed,userContext); }
iSpy.NewContent= function(Username,Password,Port,UserObjectID,ObjectTypeID,onSuccess,onFailed,userContext) {iSpy._staticInstance.NewContent(Username,Password,Port,UserObjectID,ObjectTypeID,onSuccess,onFailed,userContext); }
iSpy.ForceSync= function(Username,Password,Port,Settings,onSuccess,onFailed,userContext) {iSpy._staticInstance.ForceSync(Username,Password,Port,Settings,onSuccess,onFailed,userContext); }
iSpy.GetVideoList= function(CameraID,Port,AuthenticationCode,onSuccess,onFailed,userContext) {iSpy._staticInstance.GetVideoList(CameraID,Port,AuthenticationCode,onSuccess,onFailed,userContext); }
iSpy.GetVideoListGroup= function(CameraID,AuthenticationCode,iSpyID,onSuccess,onFailed,userContext) {iSpy._staticInstance.GetVideoListGroup(CameraID,AuthenticationCode,iSpyID,onSuccess,onFailed,userContext); }
iSpy.SetNotification= function(ObjectTypeID,ObjectID,Port,Notify,AuthenticationCode,onSuccess,onFailed,userContext) {iSpy._staticInstance.SetNotification(ObjectTypeID,ObjectID,Port,Notify,AuthenticationCode,onSuccess,onFailed,userContext); }
iSpy.GetAudioList= function(MicrophoneID,Port,AuthenticationCode,onSuccess,onFailed,userContext) {iSpy._staticInstance.GetAudioList(MicrophoneID,Port,AuthenticationCode,onSuccess,onFailed,userContext); }
iSpy.GetAudioListGroup= function(MicrophoneID,AuthenticationCode,iSpyID,onSuccess,onFailed,userContext) {iSpy._staticInstance.GetAudioListGroup(MicrophoneID,AuthenticationCode,iSpyID,onSuccess,onFailed,userContext); }
iSpy.SendCommand= function(command,Port,AuthenticationCode,onSuccess,onFailed,userContext) {iSpy._staticInstance.SendCommand(command,Port,AuthenticationCode,onSuccess,onFailed,userContext); }
iSpy.ApproveUser= function(UserID,onSuccess,onFailed,userContext) {iSpy._staticInstance.ApproveUser(UserID,onSuccess,onFailed,userContext); }
iSpy.RemoveUser= function(UserID,onSuccess,onFailed,userContext) {iSpy._staticInstance.RemoveUser(UserID,onSuccess,onFailed,userContext); }
iSpy.RemoveObject= function(ObjectTypeID,ObjectID,Port,onSuccess,onFailed,userContext) {iSpy._staticInstance.RemoveObject(ObjectTypeID,ObjectID,Port,onSuccess,onFailed,userContext); }
iSpy.SendInvites= function(EmailAddresses,onSuccess,onFailed,userContext) {iSpy._staticInstance.SendInvites(EmailAddresses,onSuccess,onFailed,userContext); }
iSpy.GetChat= function(ChatCount,onSuccess,onFailed,userContext) {iSpy._staticInstance.GetChat(ChatCount,onSuccess,onFailed,userContext); }
iSpy.AddChat= function(Chattext,onSuccess,onFailed,userContext) {iSpy._staticInstance.AddChat(Chattext,onSuccess,onFailed,userContext); }
iSpy.UpdateObjectDescription= function(ObjectTypeID,ObjectID,Port,Description,onSuccess,onFailed,userContext) {iSpy._staticInstance.UpdateObjectDescription(ObjectTypeID,ObjectID,Port,Description,onSuccess,onFailed,userContext); }
iSpy.SendAlert= function(Username,Password,AlertSubject,AlertBody,onSuccess,onFailed,userContext) {iSpy._staticInstance.SendAlert(Username,Password,AlertSubject,AlertBody,onSuccess,onFailed,userContext); }
iSpy.SendAlertWithImage= function(Username,Password,AlertSubject,AlertBody,CameraID,Port,AuthenticationCode,onSuccess,onFailed,userContext) {iSpy._staticInstance.SendAlertWithImage(Username,Password,AlertSubject,AlertBody,CameraID,Port,AuthenticationCode,onSuccess,onFailed,userContext); }
iSpy.SendFrameGrab= function(Username,Password,Subject,Body,CameraID,Port,AuthenticationCode,onSuccess,onFailed,userContext) {iSpy._staticInstance.SendFrameGrab(Username,Password,Subject,Body,CameraID,Port,AuthenticationCode,onSuccess,onFailed,userContext); }
iSpy.ProductLatestVersionGet= function(ProductID,onSuccess,onFailed,userContext) {iSpy._staticInstance.ProductLatestVersionGet(ProductID,onSuccess,onFailed,userContext); }
iSpy.SendSMS= function(Username,Password,SMSNumber,Message,onSuccess,onFailed,userContext) {iSpy._staticInstance.SendSMS(Username,Password,SMSNumber,Message,onSuccess,onFailed,userContext); }
