Type.registerNamespace('ShipScene.Web.Scripts.ScriptServices');
ShipScene.Web.Scripts.ScriptServices.WSCommon=function() {
ShipScene.Web.Scripts.ScriptServices.WSCommon.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
ShipScene.Web.Scripts.ScriptServices.WSCommon.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return ShipScene.Web.Scripts.ScriptServices.WSCommon._staticInstance.get_path();},
Login:function(userName,password,rememberMe,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'Login',false,{userName:userName,password:password,rememberMe:rememberMe},succeededCallback,failedCallback,userContext); },
CurrentUserName:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CurrentUserName',false,{},succeededCallback,failedCallback,userContext); },
Logout:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'Logout',false,{},succeededCallback,failedCallback,userContext); },
GetReportCost:function(reportID,days,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetReportCost',false,{reportID:reportID,days:days},succeededCallback,failedCallback,userContext); },
SubscriberAdd:function(d,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SubscriberAdd',false,{d:d},succeededCallback,failedCallback,userContext); },
GetVessels:function(prefixText,count,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetVessels',false,{prefixText:prefixText,count:count},succeededCallback,failedCallback,userContext); },
GetVessels2:function(prefixText,count,contextKey,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetVessels2',false,{prefixText:prefixText,count:count,contextKey:contextKey},succeededCallback,failedCallback,userContext); },
GetShapes:function(prefixText,count,contextKey,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetShapes',false,{prefixText:prefixText,count:count,contextKey:contextKey},succeededCallback,failedCallback,userContext); },
UpdateNotificationDirection:function(UserNotificationIdentity,inChecked,outChecked,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateNotificationDirection',false,{UserNotificationIdentity:UserNotificationIdentity,inChecked:inChecked,outChecked:outChecked},succeededCallback,failedCallback,userContext); },
UpdateNotificationNameAndActivate:function(UserNotificationIdentity,notificationName,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateNotificationNameAndActivate',false,{UserNotificationIdentity:UserNotificationIdentity,notificationName:notificationName},succeededCallback,failedCallback,userContext); },
AddVesselToUserNotification:function(UserNotificationIdentity,mmsi,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddVesselToUserNotification',false,{UserNotificationIdentity:UserNotificationIdentity,mmsi:mmsi},succeededCallback,failedCallback,userContext); },
GetAllVesselsInUserNotification:function(UserNotificationIdentity,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetAllVesselsInUserNotification',false,{UserNotificationIdentity:UserNotificationIdentity},succeededCallback,failedCallback,userContext); },
RemoveVesselFromUserNotification:function(UserNotificationIdentity,mmsi,vesselGroupID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'RemoveVesselFromUserNotification',false,{UserNotificationIdentity:UserNotificationIdentity,mmsi:mmsi,vesselGroupID:vesselGroupID},succeededCallback,failedCallback,userContext); },
AddShapeToUserNotification:function(UserNotificationIdentity,zoneID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddShapeToUserNotification',false,{UserNotificationIdentity:UserNotificationIdentity,zoneID:zoneID},succeededCallback,failedCallback,userContext); },
GetAllShapesInUserNotification:function(UserNotificationIdentity,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetAllShapesInUserNotification',false,{UserNotificationIdentity:UserNotificationIdentity},succeededCallback,failedCallback,userContext); },
RemoveShapeFromUserNotification:function(UserNotificationIdentity,zoneID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'RemoveShapeFromUserNotification',false,{UserNotificationIdentity:UserNotificationIdentity,zoneID:zoneID},succeededCallback,failedCallback,userContext); }}
ShipScene.Web.Scripts.ScriptServices.WSCommon.registerClass('ShipScene.Web.Scripts.ScriptServices.WSCommon',Sys.Net.WebServiceProxy);
ShipScene.Web.Scripts.ScriptServices.WSCommon._staticInstance = new ShipScene.Web.Scripts.ScriptServices.WSCommon();
ShipScene.Web.Scripts.ScriptServices.WSCommon.set_path = function(value) { ShipScene.Web.Scripts.ScriptServices.WSCommon._staticInstance.set_path(value); }
ShipScene.Web.Scripts.ScriptServices.WSCommon.get_path = function() { return ShipScene.Web.Scripts.ScriptServices.WSCommon._staticInstance.get_path(); }
ShipScene.Web.Scripts.ScriptServices.WSCommon.set_timeout = function(value) { ShipScene.Web.Scripts.ScriptServices.WSCommon._staticInstance.set_timeout(value); }
ShipScene.Web.Scripts.ScriptServices.WSCommon.get_timeout = function() { return ShipScene.Web.Scripts.ScriptServices.WSCommon._staticInstance.get_timeout(); }
ShipScene.Web.Scripts.ScriptServices.WSCommon.set_defaultUserContext = function(value) { ShipScene.Web.Scripts.ScriptServices.WSCommon._staticInstance.set_defaultUserContext(value); }
ShipScene.Web.Scripts.ScriptServices.WSCommon.get_defaultUserContext = function() { return ShipScene.Web.Scripts.ScriptServices.WSCommon._staticInstance.get_defaultUserContext(); }
ShipScene.Web.Scripts.ScriptServices.WSCommon.set_defaultSucceededCallback = function(value) { ShipScene.Web.Scripts.ScriptServices.WSCommon._staticInstance.set_defaultSucceededCallback(value); }
ShipScene.Web.Scripts.ScriptServices.WSCommon.get_defaultSucceededCallback = function() { return ShipScene.Web.Scripts.ScriptServices.WSCommon._staticInstance.get_defaultSucceededCallback(); }
ShipScene.Web.Scripts.ScriptServices.WSCommon.set_defaultFailedCallback = function(value) { ShipScene.Web.Scripts.ScriptServices.WSCommon._staticInstance.set_defaultFailedCallback(value); }
ShipScene.Web.Scripts.ScriptServices.WSCommon.get_defaultFailedCallback = function() { return ShipScene.Web.Scripts.ScriptServices.WSCommon._staticInstance.get_defaultFailedCallback(); }
ShipScene.Web.Scripts.ScriptServices.WSCommon.set_enableJsonp = function(value) { ShipScene.Web.Scripts.ScriptServices.WSCommon._staticInstance.set_enableJsonp(value); }
ShipScene.Web.Scripts.ScriptServices.WSCommon.get_enableJsonp = function() { return ShipScene.Web.Scripts.ScriptServices.WSCommon._staticInstance.get_enableJsonp(); }
ShipScene.Web.Scripts.ScriptServices.WSCommon.set_jsonpCallbackParameter = function(value) { ShipScene.Web.Scripts.ScriptServices.WSCommon._staticInstance.set_jsonpCallbackParameter(value); }
ShipScene.Web.Scripts.ScriptServices.WSCommon.get_jsonpCallbackParameter = function() { return ShipScene.Web.Scripts.ScriptServices.WSCommon._staticInstance.get_jsonpCallbackParameter(); }
ShipScene.Web.Scripts.ScriptServices.WSCommon.set_path("/Scripts/ScriptServices/WSCommon.asmx");
ShipScene.Web.Scripts.ScriptServices.WSCommon.Login= function(userName,password,rememberMe,onSuccess,onFailed,userContext) {ShipScene.Web.Scripts.ScriptServices.WSCommon._staticInstance.Login(userName,password,rememberMe,onSuccess,onFailed,userContext); }
ShipScene.Web.Scripts.ScriptServices.WSCommon.CurrentUserName= function(onSuccess,onFailed,userContext) {ShipScene.Web.Scripts.ScriptServices.WSCommon._staticInstance.CurrentUserName(onSuccess,onFailed,userContext); }
ShipScene.Web.Scripts.ScriptServices.WSCommon.Logout= function(onSuccess,onFailed,userContext) {ShipScene.Web.Scripts.ScriptServices.WSCommon._staticInstance.Logout(onSuccess,onFailed,userContext); }
ShipScene.Web.Scripts.ScriptServices.WSCommon.GetReportCost= function(reportID,days,onSuccess,onFailed,userContext) {ShipScene.Web.Scripts.ScriptServices.WSCommon._staticInstance.GetReportCost(reportID,days,onSuccess,onFailed,userContext); }
ShipScene.Web.Scripts.ScriptServices.WSCommon.SubscriberAdd= function(d,onSuccess,onFailed,userContext) {ShipScene.Web.Scripts.ScriptServices.WSCommon._staticInstance.SubscriberAdd(d,onSuccess,onFailed,userContext); }
ShipScene.Web.Scripts.ScriptServices.WSCommon.GetVessels= function(prefixText,count,onSuccess,onFailed,userContext) {ShipScene.Web.Scripts.ScriptServices.WSCommon._staticInstance.GetVessels(prefixText,count,onSuccess,onFailed,userContext); }
ShipScene.Web.Scripts.ScriptServices.WSCommon.GetVessels2= function(prefixText,count,contextKey,onSuccess,onFailed,userContext) {ShipScene.Web.Scripts.ScriptServices.WSCommon._staticInstance.GetVessels2(prefixText,count,contextKey,onSuccess,onFailed,userContext); }
ShipScene.Web.Scripts.ScriptServices.WSCommon.GetShapes= function(prefixText,count,contextKey,onSuccess,onFailed,userContext) {ShipScene.Web.Scripts.ScriptServices.WSCommon._staticInstance.GetShapes(prefixText,count,contextKey,onSuccess,onFailed,userContext); }
ShipScene.Web.Scripts.ScriptServices.WSCommon.UpdateNotificationDirection= function(UserNotificationIdentity,inChecked,outChecked,onSuccess,onFailed,userContext) {ShipScene.Web.Scripts.ScriptServices.WSCommon._staticInstance.UpdateNotificationDirection(UserNotificationIdentity,inChecked,outChecked,onSuccess,onFailed,userContext); }
ShipScene.Web.Scripts.ScriptServices.WSCommon.UpdateNotificationNameAndActivate= function(UserNotificationIdentity,notificationName,onSuccess,onFailed,userContext) {ShipScene.Web.Scripts.ScriptServices.WSCommon._staticInstance.UpdateNotificationNameAndActivate(UserNotificationIdentity,notificationName,onSuccess,onFailed,userContext); }
ShipScene.Web.Scripts.ScriptServices.WSCommon.AddVesselToUserNotification= function(UserNotificationIdentity,mmsi,onSuccess,onFailed,userContext) {ShipScene.Web.Scripts.ScriptServices.WSCommon._staticInstance.AddVesselToUserNotification(UserNotificationIdentity,mmsi,onSuccess,onFailed,userContext); }
ShipScene.Web.Scripts.ScriptServices.WSCommon.GetAllVesselsInUserNotification= function(UserNotificationIdentity,onSuccess,onFailed,userContext) {ShipScene.Web.Scripts.ScriptServices.WSCommon._staticInstance.GetAllVesselsInUserNotification(UserNotificationIdentity,onSuccess,onFailed,userContext); }
ShipScene.Web.Scripts.ScriptServices.WSCommon.RemoveVesselFromUserNotification= function(UserNotificationIdentity,mmsi,vesselGroupID,onSuccess,onFailed,userContext) {ShipScene.Web.Scripts.ScriptServices.WSCommon._staticInstance.RemoveVesselFromUserNotification(UserNotificationIdentity,mmsi,vesselGroupID,onSuccess,onFailed,userContext); }
ShipScene.Web.Scripts.ScriptServices.WSCommon.AddShapeToUserNotification= function(UserNotificationIdentity,zoneID,onSuccess,onFailed,userContext) {ShipScene.Web.Scripts.ScriptServices.WSCommon._staticInstance.AddShapeToUserNotification(UserNotificationIdentity,zoneID,onSuccess,onFailed,userContext); }
ShipScene.Web.Scripts.ScriptServices.WSCommon.GetAllShapesInUserNotification= function(UserNotificationIdentity,onSuccess,onFailed,userContext) {ShipScene.Web.Scripts.ScriptServices.WSCommon._staticInstance.GetAllShapesInUserNotification(UserNotificationIdentity,onSuccess,onFailed,userContext); }
ShipScene.Web.Scripts.ScriptServices.WSCommon.RemoveShapeFromUserNotification= function(UserNotificationIdentity,zoneID,onSuccess,onFailed,userContext) {ShipScene.Web.Scripts.ScriptServices.WSCommon._staticInstance.RemoveShapeFromUserNotification(UserNotificationIdentity,zoneID,onSuccess,onFailed,userContext); }

