Type.registerNamespace('DiceBoxWS');
DiceBoxWS.DiceBoxWS=function() {
DiceBoxWS.DiceBoxWS.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
DiceBoxWS.DiceBoxWS.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return DiceBoxWS.DiceBoxWS._staticInstance.get_path();},
GetRoll:function(rollId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetRoll',false,{rollId:rollId},succeededCallback,failedCallback,userContext); },
SearchAlias:function(type,filter,pageNumber,pageSize,descending,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SearchAlias',false,{type:type,filter:filter,pageNumber:pageNumber,pageSize:pageSize,descending:descending},succeededCallback,failedCallback,userContext); },
SearchRoll:function(type,filter,pageNumber,pageSize,descending,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SearchRoll',false,{type:type,filter:filter,pageNumber:pageNumber,pageSize:pageSize,descending:descending},succeededCallback,failedCallback,userContext); },
SearchCount:function(type,filter,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SearchCount',false,{type:type,filter:filter},succeededCallback,failedCallback,userContext); },
RollNoStore:function(expr,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'RollNoStore',false,{expr:expr},succeededCallback,failedCallback,userContext); },
RollNoStoreClassic:function(numberOfDice,sizeOfDice,addToDice,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'RollNoStoreClassic',false,{numberOfDice:numberOfDice,sizeOfDice:sizeOfDice,addToDice:addToDice},succeededCallback,failedCallback,userContext); },
RollClassic:function(alias,numberOfDice,sizeOfDice,addToDice,group,comment,accessCode,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'RollClassic',false,{alias:alias,numberOfDice:numberOfDice,sizeOfDice:sizeOfDice,addToDice:addToDice,group:group,comment:comment,accessCode:accessCode},succeededCallback,failedCallback,userContext); },
Roll:function(alias,expression,group,comment,accessCode,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'Roll',false,{alias:alias,expression:expression,group:group,comment:comment,accessCode:accessCode},succeededCallback,failedCallback,userContext); }}
DiceBoxWS.DiceBoxWS.registerClass('DiceBoxWS.DiceBoxWS',Sys.Net.WebServiceProxy);
DiceBoxWS.DiceBoxWS._staticInstance = new DiceBoxWS.DiceBoxWS();
DiceBoxWS.DiceBoxWS.set_path = function(value) { DiceBoxWS.DiceBoxWS._staticInstance.set_path(value); }
DiceBoxWS.DiceBoxWS.get_path = function() { return DiceBoxWS.DiceBoxWS._staticInstance.get_path(); }
DiceBoxWS.DiceBoxWS.set_timeout = function(value) { DiceBoxWS.DiceBoxWS._staticInstance.set_timeout(value); }
DiceBoxWS.DiceBoxWS.get_timeout = function() { return DiceBoxWS.DiceBoxWS._staticInstance.get_timeout(); }
DiceBoxWS.DiceBoxWS.set_defaultUserContext = function(value) { DiceBoxWS.DiceBoxWS._staticInstance.set_defaultUserContext(value); }
DiceBoxWS.DiceBoxWS.get_defaultUserContext = function() { return DiceBoxWS.DiceBoxWS._staticInstance.get_defaultUserContext(); }
DiceBoxWS.DiceBoxWS.set_defaultSucceededCallback = function(value) { DiceBoxWS.DiceBoxWS._staticInstance.set_defaultSucceededCallback(value); }
DiceBoxWS.DiceBoxWS.get_defaultSucceededCallback = function() { return DiceBoxWS.DiceBoxWS._staticInstance.get_defaultSucceededCallback(); }
DiceBoxWS.DiceBoxWS.set_defaultFailedCallback = function(value) { DiceBoxWS.DiceBoxWS._staticInstance.set_defaultFailedCallback(value); }
DiceBoxWS.DiceBoxWS.get_defaultFailedCallback = function() { return DiceBoxWS.DiceBoxWS._staticInstance.get_defaultFailedCallback(); }
DiceBoxWS.DiceBoxWS.set_path("/DiceBox/DiceBoxWS.asmx");
DiceBoxWS.DiceBoxWS.GetRoll= function(rollId,onSuccess,onFailed,userContext) {DiceBoxWS.DiceBoxWS._staticInstance.GetRoll(rollId,onSuccess,onFailed,userContext); }
DiceBoxWS.DiceBoxWS.SearchAlias= function(type,filter,pageNumber,pageSize,descending,onSuccess,onFailed,userContext) {DiceBoxWS.DiceBoxWS._staticInstance.SearchAlias(type,filter,pageNumber,pageSize,descending,onSuccess,onFailed,userContext); }
DiceBoxWS.DiceBoxWS.SearchRoll= function(type,filter,pageNumber,pageSize,descending,onSuccess,onFailed,userContext) {DiceBoxWS.DiceBoxWS._staticInstance.SearchRoll(type,filter,pageNumber,pageSize,descending,onSuccess,onFailed,userContext); }
DiceBoxWS.DiceBoxWS.SearchCount= function(type,filter,onSuccess,onFailed,userContext) {DiceBoxWS.DiceBoxWS._staticInstance.SearchCount(type,filter,onSuccess,onFailed,userContext); }
DiceBoxWS.DiceBoxWS.RollNoStore= function(expr,onSuccess,onFailed,userContext) {DiceBoxWS.DiceBoxWS._staticInstance.RollNoStore(expr,onSuccess,onFailed,userContext); }
DiceBoxWS.DiceBoxWS.RollNoStoreClassic= function(numberOfDice,sizeOfDice,addToDice,onSuccess,onFailed,userContext) {DiceBoxWS.DiceBoxWS._staticInstance.RollNoStoreClassic(numberOfDice,sizeOfDice,addToDice,onSuccess,onFailed,userContext); }
DiceBoxWS.DiceBoxWS.RollClassic= function(alias,numberOfDice,sizeOfDice,addToDice,group,comment,accessCode,onSuccess,onFailed,userContext) {DiceBoxWS.DiceBoxWS._staticInstance.RollClassic(alias,numberOfDice,sizeOfDice,addToDice,group,comment,accessCode,onSuccess,onFailed,userContext); }
DiceBoxWS.DiceBoxWS.Roll= function(alias,expression,group,comment,accessCode,onSuccess,onFailed,userContext) {DiceBoxWS.DiceBoxWS._staticInstance.Roll(alias,expression,group,comment,accessCode,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(DiceBoxWS.RollRecord) === 'undefined') {
DiceBoxWS.RollRecord=gtc("DiceBoxWS.RollRecord");
DiceBoxWS.RollRecord.registerClass('DiceBoxWS.RollRecord');
}
if (typeof(DiceBoxWS.RollResult) === 'undefined') {
DiceBoxWS.RollResult=gtc("DiceBoxWS.RollResult");
DiceBoxWS.RollResult.registerClass('DiceBoxWS.RollResult');
}
if (typeof(DiceBoxWS.AliasFilter) === 'undefined') {
DiceBoxWS.AliasFilter = function() { throw Error.invalidOperation(); }
DiceBoxWS.AliasFilter.prototype = {NameLike: 0,CreatedAfter: 1,CreatedBefore: 2,IdEquals: 3,IdLessThan: 4,IdMoreThan: 5,NoFilter: 6}
DiceBoxWS.AliasFilter.registerEnum('DiceBoxWS.AliasFilter', true);
}
if (typeof(DiceBoxWS.RollFilter) === 'undefined') {
DiceBoxWS.RollFilter = function() { throw Error.invalidOperation(); }
DiceBoxWS.RollFilter.prototype = {AliasIdIs: 0,AliasLike: 1,CreatedAfter: 2,CreatedBefore: 3,CreatedOn: 4,ExpressionLike: 5,GroupIdIs: 6,GroupNameLike: 7,IdEquals: 8,IdLessThan: 9,IdMoreThan: 10,NoFilter: 11,TotalEquals: 12,TotalLessThan: 13,TotalMoreThan: 14,UserIdIs: 15,UserNameLike: 16}
DiceBoxWS.RollFilter.registerEnum('DiceBoxWS.RollFilter', true);
}

