var SelectionService=function() {
SelectionService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
SelectionService.prototype={
GetSelectionLink:function(panelID,prnCode,ptyRef,selected,succeededCallback, failedCallback, userContext) {
return this._invoke(SelectionService.get_path(), 'GetSelectionLink',false,{panelID:panelID,prnCode:prnCode,ptyRef:ptyRef,selected:selected},succeededCallback,failedCallback,userContext); },
GetPanels:function(panelsToUpdate,succeededCallback, failedCallback, userContext) {
return this._invoke(SelectionService.get_path(), 'GetPanels',false,{panelsToUpdate:panelsToUpdate},succeededCallback,failedCallback,userContext); },
AddOrRemoveOffer:function(panelID,prnCode,ptyRef,remove,succeededCallback, failedCallback, userContext) {
return this._invoke(SelectionService.get_path(), 'AddOrRemoveOffer',false,{panelID:panelID,prnCode:prnCode,ptyRef:ptyRef,remove:remove},succeededCallback,failedCallback,userContext); },
RemoveOffer:function(prnCode,ptyRef,succeededCallback, failedCallback, userContext) {
return this._invoke(SelectionService.get_path(), 'RemoveOffer',false,{prnCode:prnCode,ptyRef:ptyRef},succeededCallback,failedCallback,userContext); },
RemoveAllOffers:function(succeededCallback, failedCallback, userContext) {
return this._invoke(SelectionService.get_path(), 'RemoveAllOffers',false,{},succeededCallback,failedCallback,userContext); }}
SelectionService.registerClass('SelectionService',Sys.Net.WebServiceProxy);
SelectionService._staticInstance = new SelectionService();
SelectionService.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; SelectionService._staticInstance._path = value; }
SelectionService.get_path = function() { return SelectionService._staticInstance._path; }
SelectionService.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); }
SelectionService._staticInstance._timeout = value; }
SelectionService.get_timeout = function() { 
return SelectionService._staticInstance._timeout; }
SelectionService.set_defaultUserContext = function(value) { 
SelectionService._staticInstance._userContext = value; }
SelectionService.get_defaultUserContext = function() { 
return SelectionService._staticInstance._userContext; }
SelectionService.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; SelectionService._staticInstance._succeeded = value; }
SelectionService.get_defaultSucceededCallback = function() { 
return SelectionService._staticInstance._succeeded; }
SelectionService.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; SelectionService._staticInstance._failed = value; }
SelectionService.get_defaultFailedCallback = function() { 
return SelectionService._staticInstance._failed; }
SelectionService.set_path("/SelectionService.asmx");
SelectionService.GetSelectionLink= function(panelID,prnCode,ptyRef,selected,onSuccess,onFailed,userContext) {SelectionService._staticInstance.GetSelectionLink(panelID,prnCode,ptyRef,selected,onSuccess,onFailed,userContext); }
SelectionService.GetPanels= function(panelsToUpdate,onSuccess,onFailed,userContext) {SelectionService._staticInstance.GetPanels(panelsToUpdate,onSuccess,onFailed,userContext); }
SelectionService.AddOrRemoveOffer= function(panelID,prnCode,ptyRef,remove,onSuccess,onFailed,userContext) {SelectionService._staticInstance.AddOrRemoveOffer(panelID,prnCode,ptyRef,remove,onSuccess,onFailed,userContext); }
SelectionService.RemoveOffer= function(prnCode,ptyRef,onSuccess,onFailed,userContext) {SelectionService._staticInstance.RemoveOffer(prnCode,ptyRef,onSuccess,onFailed,userContext); }
SelectionService.RemoveAllOffers= function(onSuccess,onFailed,userContext) {SelectionService._staticInstance.RemoveAllOffers(onSuccess,onFailed,userContext); }
