var MachinesService=function() {
MachinesService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
MachinesService.prototype={
GetMachineDetails:function(machineID,succeededCallback, failedCallback, userContext) {
return this._invoke(MachinesService.get_path(), 'GetMachineDetails',false,{machineID:machineID},succeededCallback,failedCallback,userContext); },
GetAllMachines:function(succeededCallback, failedCallback, userContext) {
return this._invoke(MachinesService.get_path(), 'GetAllMachines',false,{},succeededCallback,failedCallback,userContext); },
GetBlock:function(longitude,latitude,succeededCallback, failedCallback, userContext) {
return this._invoke(MachinesService.get_path(), 'GetBlock',false,{longitude:longitude,latitude:latitude},succeededCallback,failedCallback,userContext); },
GetBlockEndPoints:function(blockID,succeededCallback, failedCallback, userContext) {
return this._invoke(MachinesService.get_path(), 'GetBlockEndPoints',false,{blockID:blockID},succeededCallback,failedCallback,userContext); },
GetMachinesInCategory:function(groupIDs,lng,lat,campusID,succeededCallback, failedCallback, userContext) {
return this._invoke(MachinesService.get_path(), 'GetMachinesInCategory',false,{groupIDs:groupIDs,lng:lng,lat:lat,campusID:campusID},succeededCallback,failedCallback,userContext); },
GetMachinesInCategoryWithoutLocation:function(groupIDs,campusID,succeededCallback, failedCallback, userContext) {
return this._invoke(MachinesService.get_path(), 'GetMachinesInCategoryWithoutLocation',false,{groupIDs:groupIDs,campusID:campusID},succeededCallback,failedCallback,userContext); },
GetAllBLocks:function(campusID,succeededCallback, failedCallback, userContext) {
return this._invoke(MachinesService.get_path(), 'GetAllBLocks',false,{campusID:campusID},succeededCallback,failedCallback,userContext); },
SubmitNewBlock:function(campusID,blockname,leftTopLat,leftTopLong,rightTopLat,rightTopLong,leftBottomLat,leftBottomLong,rightBottomLat,rightBottomLong,succeededCallback, failedCallback, userContext) {
return this._invoke(MachinesService.get_path(), 'SubmitNewBlock',false,{campusID:campusID,blockname:blockname,leftTopLat:leftTopLat,leftTopLong:leftTopLong,rightTopLat:rightTopLat,rightTopLong:rightTopLong,leftBottomLat:leftBottomLat,leftBottomLong:leftBottomLong,rightBottomLat:rightBottomLat,rightBottomLong:rightBottomLong},succeededCallback,failedCallback,userContext); },
UpdateBlock:function(blockID,blockname,leftTopLat,leftTopLong,rightTopLat,rightTopLong,leftBottomLat,leftBottomLong,rightBottomLat,rightBottomLong,succeededCallback, failedCallback, userContext) {
return this._invoke(MachinesService.get_path(), 'UpdateBlock',false,{blockID:blockID,blockname:blockname,leftTopLat:leftTopLat,leftTopLong:leftTopLong,rightTopLat:rightTopLat,rightTopLong:rightTopLong,leftBottomLat:leftBottomLat,leftBottomLong:leftBottomLong,rightBottomLat:rightBottomLat,rightBottomLong:rightBottomLong},succeededCallback,failedCallback,userContext); },
DeleteBlock:function(blockID,succeededCallback, failedCallback, userContext) {
return this._invoke(MachinesService.get_path(), 'DeleteBlock',false,{blockID:blockID},succeededCallback,failedCallback,userContext); },
SubmitNewMachineWithImage:function(machineNo,description,longitude,latitude,floor,typeID,imageID,succeededCallback, failedCallback, userContext) {
return this._invoke(MachinesService.get_path(), 'SubmitNewMachineWithImage',false,{machineNo:machineNo,description:description,longitude:longitude,latitude:latitude,floor:floor,typeID:typeID,imageID:imageID},succeededCallback,failedCallback,userContext); },
SubmitNewMachineWithDefaultImage:function(machineNo,description,longitude,latitude,floor,typeID,succeededCallback, failedCallback, userContext) {
return this._invoke(MachinesService.get_path(), 'SubmitNewMachineWithDefaultImage',false,{machineNo:machineNo,description:description,longitude:longitude,latitude:latitude,floor:floor,typeID:typeID},succeededCallback,failedCallback,userContext); },
UpdateMachine:function(machineID,machineNo,description,longitude,latitude,floor,typeID,imageID,active,succeededCallback, failedCallback, userContext) {
return this._invoke(MachinesService.get_path(), 'UpdateMachine',false,{machineID:machineID,machineNo:machineNo,description:description,longitude:longitude,latitude:latitude,floor:floor,typeID:typeID,imageID:imageID,active:active},succeededCallback,failedCallback,userContext); }}
MachinesService.registerClass('MachinesService',Sys.Net.WebServiceProxy);
MachinesService._staticInstance = new MachinesService();
MachinesService.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; MachinesService._staticInstance._path = value; }
MachinesService.get_path = function() { return MachinesService._staticInstance._path; }
MachinesService.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); }
MachinesService._staticInstance._timeout = value; }
MachinesService.get_timeout = function() { 
return MachinesService._staticInstance._timeout; }
MachinesService.set_defaultUserContext = function(value) { 
MachinesService._staticInstance._userContext = value; }
MachinesService.get_defaultUserContext = function() { 
return MachinesService._staticInstance._userContext; }
MachinesService.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; MachinesService._staticInstance._succeeded = value; }
MachinesService.get_defaultSucceededCallback = function() { 
return MachinesService._staticInstance._succeeded; }
MachinesService.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; MachinesService._staticInstance._failed = value; }
MachinesService.get_defaultFailedCallback = function() { 
return MachinesService._staticInstance._failed; }
MachinesService.set_path("/MachinesService.asmx");
MachinesService.GetMachineDetails= function(machineID,onSuccess,onFailed,userContext) {MachinesService._staticInstance.GetMachineDetails(machineID,onSuccess,onFailed,userContext); }
MachinesService.GetAllMachines= function(onSuccess,onFailed,userContext) {MachinesService._staticInstance.GetAllMachines(onSuccess,onFailed,userContext); }
MachinesService.GetBlock= function(longitude,latitude,onSuccess,onFailed,userContext) {MachinesService._staticInstance.GetBlock(longitude,latitude,onSuccess,onFailed,userContext); }
MachinesService.GetBlockEndPoints= function(blockID,onSuccess,onFailed,userContext) {MachinesService._staticInstance.GetBlockEndPoints(blockID,onSuccess,onFailed,userContext); }
MachinesService.GetMachinesInCategory= function(groupIDs,lng,lat,campusID,onSuccess,onFailed,userContext) {MachinesService._staticInstance.GetMachinesInCategory(groupIDs,lng,lat,campusID,onSuccess,onFailed,userContext); }
MachinesService.GetMachinesInCategoryWithoutLocation= function(groupIDs,campusID,onSuccess,onFailed,userContext) {MachinesService._staticInstance.GetMachinesInCategoryWithoutLocation(groupIDs,campusID,onSuccess,onFailed,userContext); }
MachinesService.GetAllBLocks= function(campusID,onSuccess,onFailed,userContext) {MachinesService._staticInstance.GetAllBLocks(campusID,onSuccess,onFailed,userContext); }
MachinesService.SubmitNewBlock= function(campusID,blockname,leftTopLat,leftTopLong,rightTopLat,rightTopLong,leftBottomLat,leftBottomLong,rightBottomLat,rightBottomLong,onSuccess,onFailed,userContext) {MachinesService._staticInstance.SubmitNewBlock(campusID,blockname,leftTopLat,leftTopLong,rightTopLat,rightTopLong,leftBottomLat,leftBottomLong,rightBottomLat,rightBottomLong,onSuccess,onFailed,userContext); }
MachinesService.UpdateBlock= function(blockID,blockname,leftTopLat,leftTopLong,rightTopLat,rightTopLong,leftBottomLat,leftBottomLong,rightBottomLat,rightBottomLong,onSuccess,onFailed,userContext) {MachinesService._staticInstance.UpdateBlock(blockID,blockname,leftTopLat,leftTopLong,rightTopLat,rightTopLong,leftBottomLat,leftBottomLong,rightBottomLat,rightBottomLong,onSuccess,onFailed,userContext); }
MachinesService.DeleteBlock= function(blockID,onSuccess,onFailed,userContext) {MachinesService._staticInstance.DeleteBlock(blockID,onSuccess,onFailed,userContext); }
MachinesService.SubmitNewMachineWithImage= function(machineNo,description,longitude,latitude,floor,typeID,imageID,onSuccess,onFailed,userContext) {MachinesService._staticInstance.SubmitNewMachineWithImage(machineNo,description,longitude,latitude,floor,typeID,imageID,onSuccess,onFailed,userContext); }
MachinesService.SubmitNewMachineWithDefaultImage= function(machineNo,description,longitude,latitude,floor,typeID,onSuccess,onFailed,userContext) {MachinesService._staticInstance.SubmitNewMachineWithDefaultImage(machineNo,description,longitude,latitude,floor,typeID,onSuccess,onFailed,userContext); }
MachinesService.UpdateMachine= function(machineID,machineNo,description,longitude,latitude,floor,typeID,imageID,active,onSuccess,onFailed,userContext) {MachinesService._staticInstance.UpdateMachine(machineID,machineNo,description,longitude,latitude,floor,typeID,imageID,active,onSuccess,onFailed,userContext); }
