Type.registerNamespace('EventEagle');
EventEagle.EventEagleService=function() {
EventEagle.EventEagleService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
EventEagle.EventEagleService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return EventEagle.EventEagleService._staticInstance.get_path();},
GetTrackingEventDetails:function(uniqueName,succeededCallback, failedCallback, userContext) {
/// <param name="uniqueName" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetTrackingEventDetails',false,{uniqueName:uniqueName},succeededCallback,failedCallback,userContext); },
GetTrackingEvent:function(succeededCallback, failedCallback, userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetTrackingEvent',false,{},succeededCallback,failedCallback,userContext); },
GetAllDevices:function(succeededCallback, failedCallback, userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetAllDevices',false,{},succeededCallback,failedCallback,userContext); },
GetAllDeviceLocations:function(succeededCallback, failedCallback, userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetAllDeviceLocations',false,{},succeededCallback,failedCallback,userContext); },
GetDeviceLocations:function(deviceid,startDate,endDate,succeededCallback, failedCallback, userContext) {
/// <param name="deviceid" type="Number">System.Int32</param>
/// <param name="startDate" type="String">System.String</param>
/// <param name="endDate" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetDeviceLocations',false,{deviceid:deviceid,startDate:startDate,endDate:endDate},succeededCallback,failedCallback,userContext); },
SaveTweets:function(history,succeededCallback, failedCallback, userContext) {
/// <param name="history" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'SaveTweets',false,{history:history},succeededCallback,failedCallback,userContext); },
GetAllDevicesTest:function(succeededCallback, failedCallback, userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetAllDevicesTest',false,{},succeededCallback,failedCallback,userContext); }}
EventEagle.EventEagleService.registerClass('EventEagle.EventEagleService',Sys.Net.WebServiceProxy);
EventEagle.EventEagleService._staticInstance = new EventEagle.EventEagleService();
EventEagle.EventEagleService.set_path = function(value) {
EventEagle.EventEagleService._staticInstance.set_path(value); }
EventEagle.EventEagleService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return EventEagle.EventEagleService._staticInstance.get_path();}
EventEagle.EventEagleService.set_timeout = function(value) {
EventEagle.EventEagleService._staticInstance.set_timeout(value); }
EventEagle.EventEagleService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return EventEagle.EventEagleService._staticInstance.get_timeout(); }
EventEagle.EventEagleService.set_defaultUserContext = function(value) { 
EventEagle.EventEagleService._staticInstance.set_defaultUserContext(value); }
EventEagle.EventEagleService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return EventEagle.EventEagleService._staticInstance.get_defaultUserContext(); }
EventEagle.EventEagleService.set_defaultSucceededCallback = function(value) { 
 EventEagle.EventEagleService._staticInstance.set_defaultSucceededCallback(value); }
EventEagle.EventEagleService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return EventEagle.EventEagleService._staticInstance.get_defaultSucceededCallback(); }
EventEagle.EventEagleService.set_defaultFailedCallback = function(value) { 
EventEagle.EventEagleService._staticInstance.set_defaultFailedCallback(value); }
EventEagle.EventEagleService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return EventEagle.EventEagleService._staticInstance.get_defaultFailedCallback(); }
EventEagle.EventEagleService.set_path("/WebService/EventEagleService.asmx");
EventEagle.EventEagleService.GetTrackingEventDetails= function(uniqueName,onSuccess,onFailed,userContext) {
/// <param name="uniqueName" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
EventEagle.EventEagleService._staticInstance.GetTrackingEventDetails(uniqueName,onSuccess,onFailed,userContext); }
EventEagle.EventEagleService.GetTrackingEvent= function(onSuccess,onFailed,userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
EventEagle.EventEagleService._staticInstance.GetTrackingEvent(onSuccess,onFailed,userContext); }
EventEagle.EventEagleService.GetAllDevices= function(onSuccess,onFailed,userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
EventEagle.EventEagleService._staticInstance.GetAllDevices(onSuccess,onFailed,userContext); }
EventEagle.EventEagleService.GetAllDeviceLocations= function(onSuccess,onFailed,userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
EventEagle.EventEagleService._staticInstance.GetAllDeviceLocations(onSuccess,onFailed,userContext); }
EventEagle.EventEagleService.GetDeviceLocations= function(deviceid,startDate,endDate,onSuccess,onFailed,userContext) {
/// <param name="deviceid" type="Number">System.Int32</param>
/// <param name="startDate" type="String">System.String</param>
/// <param name="endDate" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
EventEagle.EventEagleService._staticInstance.GetDeviceLocations(deviceid,startDate,endDate,onSuccess,onFailed,userContext); }
EventEagle.EventEagleService.SaveTweets= function(history,onSuccess,onFailed,userContext) {
/// <param name="history" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
EventEagle.EventEagleService._staticInstance.SaveTweets(history,onSuccess,onFailed,userContext); }
EventEagle.EventEagleService.GetAllDevicesTest= function(onSuccess,onFailed,userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
EventEagle.EventEagleService._staticInstance.GetAllDevicesTest(onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Alpha.Customers.TrackingEvent');
if (typeof(Alpha.Customers.TrackingEvent.TrackingEvent) === 'undefined') {
Alpha.Customers.TrackingEvent.TrackingEvent=gtc("Alpha.Customers.TrackingEvent.TrackingEvent");
Alpha.Customers.TrackingEvent.TrackingEvent.registerClass('Alpha.Customers.TrackingEvent.TrackingEvent');
}
Type.registerNamespace('Alpha.Devices');
if (typeof(Alpha.Devices.AMSAssetDevice) === 'undefined') {
Alpha.Devices.AMSAssetDevice=gtc("Alpha.Devices.AMSAssetDevice");
Alpha.Devices.AMSAssetDevice.registerClass('Alpha.Devices.AMSAssetDevice');
}
if (typeof(Alpha.Devices.DeviceHost) === 'undefined') {
Alpha.Devices.DeviceHost=gtc("Alpha.Devices.DeviceHost");
Alpha.Devices.DeviceHost.registerClass('Alpha.Devices.DeviceHost');
}
Type.registerNamespace('Alpha.Locations');
if (typeof(Alpha.Locations.DeviceLocation) === 'undefined') {
Alpha.Locations.DeviceLocation=gtc("Alpha.Locations.DeviceLocation");
Alpha.Locations.DeviceLocation.registerClass('Alpha.Locations.DeviceLocation');
}
if (typeof(Alpha.Devices.Battery2455) === 'undefined') {
Alpha.Devices.Battery2455=gtc("Alpha.Devices.Battery2455");
Alpha.Devices.Battery2455.registerClass('Alpha.Devices.Battery2455');
}
if (typeof(Alpha.Devices.Battery2355) === 'undefined') {
Alpha.Devices.Battery2355=gtc("Alpha.Devices.Battery2355");
Alpha.Devices.Battery2355.registerClass('Alpha.Devices.Battery2355');
}
Type.registerNamespace('Alpha.Customers');
if (typeof(Alpha.Customers.Customer) === 'undefined') {
Alpha.Customers.Customer=gtc("Alpha.Customers.Customer");
Alpha.Customers.Customer.registerClass('Alpha.Customers.Customer');
}
if (typeof(Alpha.Customers.Partner) === 'undefined') {
Alpha.Customers.Partner=gtc("Alpha.Customers.Partner");
Alpha.Customers.Partner.registerClass('Alpha.Customers.Partner');
}
if (typeof(Alpha.Devices.DeviceOptionalParameter) === 'undefined') {
Alpha.Devices.DeviceOptionalParameter=gtc("Alpha.Devices.DeviceOptionalParameter");
Alpha.Devices.DeviceOptionalParameter.registerClass('Alpha.Devices.DeviceOptionalParameter');
}

