Type.registerNamespace('CodeBlack');
CodeBlack.SavePosition=function() {
CodeBlack.SavePosition.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
CodeBlack.SavePosition.prototype={
SaveToTable:function(itemType,itemIndex,position,succeededCallback, failedCallback, userContext) {
return this._invoke(CodeBlack.SavePosition.get_path(), 'SaveToTable',false,{itemType:itemType,itemIndex:itemIndex,position:position},succeededCallback,failedCallback,userContext); },
GetPosition:function(itemIndex,succeededCallback, failedCallback, userContext) {
return this._invoke(CodeBlack.SavePosition.get_path(), 'GetPosition',false,{itemIndex:itemIndex},succeededCallback,failedCallback,userContext); }}
CodeBlack.SavePosition.registerClass('CodeBlack.SavePosition',Sys.Net.WebServiceProxy);
CodeBlack.SavePosition._staticInstance = new CodeBlack.SavePosition();
CodeBlack.SavePosition.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; CodeBlack.SavePosition._staticInstance._path = value; }
CodeBlack.SavePosition.get_path = function() { return CodeBlack.SavePosition._staticInstance._path; }
CodeBlack.SavePosition.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); }
CodeBlack.SavePosition._staticInstance._timeout = value; }
CodeBlack.SavePosition.get_timeout = function() { 
return CodeBlack.SavePosition._staticInstance._timeout; }
CodeBlack.SavePosition.set_defaultUserContext = function(value) { 
CodeBlack.SavePosition._staticInstance._userContext = value; }
CodeBlack.SavePosition.get_defaultUserContext = function() { 
return CodeBlack.SavePosition._staticInstance._userContext; }
CodeBlack.SavePosition.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; CodeBlack.SavePosition._staticInstance._succeeded = value; }
CodeBlack.SavePosition.get_defaultSucceededCallback = function() { 
return CodeBlack.SavePosition._staticInstance._succeeded; }
CodeBlack.SavePosition.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; CodeBlack.SavePosition._staticInstance._failed = value; }
CodeBlack.SavePosition.get_defaultFailedCallback = function() { 
return CodeBlack.SavePosition._staticInstance._failed; }
CodeBlack.SavePosition.set_path("/SavePosition.asmx");
CodeBlack.SavePosition.SaveToTable= function(itemType,itemIndex,position,onSuccess,onFailed,userContext) {CodeBlack.SavePosition._staticInstance.SaveToTable(itemType,itemIndex,position,onSuccess,onFailed,userContext); }
CodeBlack.SavePosition.GetPosition= function(itemIndex,onSuccess,onFailed,userContext) {CodeBlack.SavePosition._staticInstance.GetPosition(itemIndex,onSuccess,onFailed,userContext); }
