var DataService=function() {
DataService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
DataService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return DataService._staticInstance.get_path();},
SelectCultures: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(), 'SelectCultures',false,{},succeededCallback,failedCallback,userContext); },
SelectTimeZones: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(), 'SelectTimeZones',false,{},succeededCallback,failedCallback,userContext); },
SelectDrawings:function(sp,succeededCallback, failedCallback, userContext) {
/// <param name="sp" type="FonbetEngine.DAL.SelectParams">FonbetEngine.DAL.SelectParams</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(), 'SelectDrawings',true,{sp:sp},succeededCallback,failedCallback,userContext); },
GetDrawing:function(id,culture,succeededCallback, failedCallback, userContext) {
/// <param name="id" type="Number">System.Int32</param>
/// <param name="culture" 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(), 'GetDrawing',false,{id:id,culture:culture},succeededCallback,failedCallback,userContext); },
CalculateDetails:function(id,succeededCallback, failedCallback, userContext) {
/// <param name="id" type="Number">System.Int32</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(), 'CalculateDetails',false,{id:id},succeededCallback,failedCallback,userContext); },
CalculateCoupons:function(options,succeededCallback, failedCallback, userContext) {
/// <param name="options" type="FonbetEngine.DAL.SelectCouponsParams">FonbetEngine.DAL.SelectCouponsParams</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(), 'CalculateCoupons',false,{options:options},succeededCallback,failedCallback,userContext); },
CalculatePackage:function(drawingId,userId,winCode,succeededCallback, failedCallback, userContext) {
/// <param name="drawingId" type="Number">System.Int32</param>
/// <param name="userId" type="String">System.String</param>
/// <param name="winCode" 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(), 'CalculatePackage',false,{drawingId:drawingId,userId:userId,winCode:winCode},succeededCallback,failedCallback,userContext); },
SelectWinCoupons:function(options,succeededCallback, failedCallback, userContext) {
/// <param name="options" type="FonbetEngine.DAL.SelectCouponsParams">FonbetEngine.DAL.SelectCouponsParams</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(), 'SelectWinCoupons',false,{options:options},succeededCallback,failedCallback,userContext); },
FindCoupons:function(options,succeededCallback, failedCallback, userContext) {
/// <param name="options" type="FonbetEngine.DAL.SelectCouponsParams">FonbetEngine.DAL.SelectCouponsParams</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(), 'FindCoupons',false,{options:options},succeededCallback,failedCallback,userContext); },
CreateVirtualPackage:function(drawingId,raw,succeededCallback, failedCallback, userContext) {
/// <param name="drawingId" type="Number">System.Int32</param>
/// <param name="raw" type="Array">System.Collections.Generic.List`1[[FonbetEntity.Coupon, FonbetEntity, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]</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(), 'CreateVirtualPackage',false,{drawingId:drawingId,raw:raw},succeededCallback,failedCallback,userContext); },
GetStakeDistibution:function(drawingId,currency,succeededCallback, failedCallback, userContext) {
/// <param name="drawingId" type="Number">System.Int32</param>
/// <param name="currency" 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(), 'GetStakeDistibution',false,{drawingId:drawingId,currency:currency},succeededCallback,failedCallback,userContext); },
GetCouponDistribution:function(drawingId,currency,succeededCallback, failedCallback, userContext) {
/// <param name="drawingId" type="Number">System.Int32</param>
/// <param name="currency" 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(), 'GetCouponDistribution',false,{drawingId:drawingId,currency:currency},succeededCallback,failedCallback,userContext); },
GetPackageDistribution:function(drawingId,currency,succeededCallback, failedCallback, userContext) {
/// <param name="drawingId" type="Number">System.Int32</param>
/// <param name="currency" 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(), 'GetPackageDistribution',false,{drawingId:drawingId,currency:currency},succeededCallback,failedCallback,userContext); },
GetStakeDict:function(options,succeededCallback, failedCallback, userContext) {
/// <param name="options" type="FonbetEngine.DAL.SelectStakeDictParams">FonbetEngine.DAL.SelectStakeDictParams</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(), 'GetStakeDict',false,{options:options},succeededCallback,failedCallback,userContext); },
GetMaxPrizeCoupons:function(options,succeededCallback, failedCallback, userContext) {
/// <param name="options" type="FonbetEngine.DAL.SelectCouponsParams">FonbetEngine.DAL.SelectCouponsParams</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(), 'GetMaxPrizeCoupons',false,{options:options},succeededCallback,failedCallback,userContext); },
SelectStakesInterval:function(options,succeededCallback, failedCallback, userContext) {
/// <param name="options" type="FonbetEngine.DAL.SelectCouponsIntervalParams">FonbetEngine.DAL.SelectCouponsIntervalParams</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(), 'SelectStakesInterval',false,{options:options},succeededCallback,failedCallback,userContext); },
SelectCouponsInterval:function(options,succeededCallback, failedCallback, userContext) {
/// <param name="options" type="FonbetEngine.DAL.SelectCouponsIntervalParams">FonbetEngine.DAL.SelectCouponsIntervalParams</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(), 'SelectCouponsInterval',false,{options:options},succeededCallback,failedCallback,userContext); },
SelectPackageInterval:function(options,succeededCallback, failedCallback, userContext) {
/// <param name="options" type="FonbetEngine.DAL.SelectCouponsIntervalParams">FonbetEngine.DAL.SelectCouponsIntervalParams</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(), 'SelectPackageInterval',false,{options:options},succeededCallback,failedCallback,userContext); },
GetDrawingVersion:function(id,succeededCallback, failedCallback, userContext) {
/// <param name="id" type="Number">System.Int32</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(), 'GetDrawingVersion',false,{id:id},succeededCallback,failedCallback,userContext); },
GetDrawingsMaxVersion: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(), 'GetDrawingsMaxVersion',false,{},succeededCallback,failedCallback,userContext); }}
DataService.registerClass('DataService',Sys.Net.WebServiceProxy);
DataService._staticInstance = new DataService();
DataService.set_path = function(value) {
DataService._staticInstance.set_path(value); }
DataService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return DataService._staticInstance.get_path();}
DataService.set_timeout = function(value) {
DataService._staticInstance.set_timeout(value); }
DataService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return DataService._staticInstance.get_timeout(); }
DataService.set_defaultUserContext = function(value) { 
DataService._staticInstance.set_defaultUserContext(value); }
DataService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return DataService._staticInstance.get_defaultUserContext(); }
DataService.set_defaultSucceededCallback = function(value) { 
 DataService._staticInstance.set_defaultSucceededCallback(value); }
DataService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return DataService._staticInstance.get_defaultSucceededCallback(); }
DataService.set_defaultFailedCallback = function(value) { 
DataService._staticInstance.set_defaultFailedCallback(value); }
DataService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return DataService._staticInstance.get_defaultFailedCallback(); }
DataService.set_path("/DataService.svc");
DataService.SelectCultures= 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>
DataService._staticInstance.SelectCultures(onSuccess,onFailed,userContext); }
DataService.SelectTimeZones= 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>
DataService._staticInstance.SelectTimeZones(onSuccess,onFailed,userContext); }
DataService.SelectDrawings= function(sp,onSuccess,onFailed,userContext) {
/// <param name="sp" type="FonbetEngine.DAL.SelectParams">FonbetEngine.DAL.SelectParams</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>
DataService._staticInstance.SelectDrawings(sp,onSuccess,onFailed,userContext); }
DataService.GetDrawing= function(id,culture,onSuccess,onFailed,userContext) {
/// <param name="id" type="Number">System.Int32</param>
/// <param name="culture" 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>
DataService._staticInstance.GetDrawing(id,culture,onSuccess,onFailed,userContext); }
DataService.CalculateDetails= function(id,onSuccess,onFailed,userContext) {
/// <param name="id" type="Number">System.Int32</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>
DataService._staticInstance.CalculateDetails(id,onSuccess,onFailed,userContext); }
DataService.CalculateCoupons= function(options,onSuccess,onFailed,userContext) {
/// <param name="options" type="FonbetEngine.DAL.SelectCouponsParams">FonbetEngine.DAL.SelectCouponsParams</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>
DataService._staticInstance.CalculateCoupons(options,onSuccess,onFailed,userContext); }
DataService.CalculatePackage= function(drawingId,userId,winCode,onSuccess,onFailed,userContext) {
/// <param name="drawingId" type="Number">System.Int32</param>
/// <param name="userId" type="String">System.String</param>
/// <param name="winCode" 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>
DataService._staticInstance.CalculatePackage(drawingId,userId,winCode,onSuccess,onFailed,userContext); }
DataService.SelectWinCoupons= function(options,onSuccess,onFailed,userContext) {
/// <param name="options" type="FonbetEngine.DAL.SelectCouponsParams">FonbetEngine.DAL.SelectCouponsParams</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>
DataService._staticInstance.SelectWinCoupons(options,onSuccess,onFailed,userContext); }
DataService.FindCoupons= function(options,onSuccess,onFailed,userContext) {
/// <param name="options" type="FonbetEngine.DAL.SelectCouponsParams">FonbetEngine.DAL.SelectCouponsParams</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>
DataService._staticInstance.FindCoupons(options,onSuccess,onFailed,userContext); }
DataService.CreateVirtualPackage= function(drawingId,raw,onSuccess,onFailed,userContext) {
/// <param name="drawingId" type="Number">System.Int32</param>
/// <param name="raw" type="Array">System.Collections.Generic.List`1[[FonbetEntity.Coupon, FonbetEntity, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]</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>
DataService._staticInstance.CreateVirtualPackage(drawingId,raw,onSuccess,onFailed,userContext); }
DataService.GetStakeDistibution= function(drawingId,currency,onSuccess,onFailed,userContext) {
/// <param name="drawingId" type="Number">System.Int32</param>
/// <param name="currency" 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>
DataService._staticInstance.GetStakeDistibution(drawingId,currency,onSuccess,onFailed,userContext); }
DataService.GetCouponDistribution= function(drawingId,currency,onSuccess,onFailed,userContext) {
/// <param name="drawingId" type="Number">System.Int32</param>
/// <param name="currency" 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>
DataService._staticInstance.GetCouponDistribution(drawingId,currency,onSuccess,onFailed,userContext); }
DataService.GetPackageDistribution= function(drawingId,currency,onSuccess,onFailed,userContext) {
/// <param name="drawingId" type="Number">System.Int32</param>
/// <param name="currency" 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>
DataService._staticInstance.GetPackageDistribution(drawingId,currency,onSuccess,onFailed,userContext); }
DataService.GetStakeDict= function(options,onSuccess,onFailed,userContext) {
/// <param name="options" type="FonbetEngine.DAL.SelectStakeDictParams">FonbetEngine.DAL.SelectStakeDictParams</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>
DataService._staticInstance.GetStakeDict(options,onSuccess,onFailed,userContext); }
DataService.GetMaxPrizeCoupons= function(options,onSuccess,onFailed,userContext) {
/// <param name="options" type="FonbetEngine.DAL.SelectCouponsParams">FonbetEngine.DAL.SelectCouponsParams</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>
DataService._staticInstance.GetMaxPrizeCoupons(options,onSuccess,onFailed,userContext); }
DataService.SelectStakesInterval= function(options,onSuccess,onFailed,userContext) {
/// <param name="options" type="FonbetEngine.DAL.SelectCouponsIntervalParams">FonbetEngine.DAL.SelectCouponsIntervalParams</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>
DataService._staticInstance.SelectStakesInterval(options,onSuccess,onFailed,userContext); }
DataService.SelectCouponsInterval= function(options,onSuccess,onFailed,userContext) {
/// <param name="options" type="FonbetEngine.DAL.SelectCouponsIntervalParams">FonbetEngine.DAL.SelectCouponsIntervalParams</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>
DataService._staticInstance.SelectCouponsInterval(options,onSuccess,onFailed,userContext); }
DataService.SelectPackageInterval= function(options,onSuccess,onFailed,userContext) {
/// <param name="options" type="FonbetEngine.DAL.SelectCouponsIntervalParams">FonbetEngine.DAL.SelectCouponsIntervalParams</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>
DataService._staticInstance.SelectPackageInterval(options,onSuccess,onFailed,userContext); }
DataService.GetDrawingVersion= function(id,onSuccess,onFailed,userContext) {
/// <param name="id" type="Number">System.Int32</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>
DataService._staticInstance.GetDrawingVersion(id,onSuccess,onFailed,userContext); }
DataService.GetDrawingsMaxVersion= 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>
DataService._staticInstance.GetDrawingsMaxVersion(onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('FonbetEntity');
if (typeof(FonbetEntity.CultureItem) === 'undefined') {
FonbetEntity.CultureItem=gtc("CultureItem:http://schemas.datacontract.org/2004/07/FonbetEntity");
FonbetEntity.CultureItem.registerClass('FonbetEntity.CultureItem');
}
if (typeof(FonbetEntity.TimeZoneItem) === 'undefined') {
FonbetEntity.TimeZoneItem=gtc("TimeZoneItem:http://schemas.datacontract.org/2004/07/FonbetEntity");
FonbetEntity.TimeZoneItem.registerClass('FonbetEntity.TimeZoneItem');
}
Type.registerNamespace('FonbetEngine.DAL');
if (typeof(FonbetEngine.DAL.SelectParams) === 'undefined') {
FonbetEngine.DAL.SelectParams=gtc("SelectParams:http://schemas.datacontract.org/2004/07/FonbetEngine.DAL");
FonbetEngine.DAL.SelectParams.registerClass('FonbetEngine.DAL.SelectParams');
}
if (typeof(FonbetEngine.DAL.SelectResultOfDrawingDrawingSelectSummaryxHGXhB2y) === 'undefined') {
FonbetEngine.DAL.SelectResultOfDrawingDrawingSelectSummaryxHGXhB2y=gtc("SelectResultOfDrawingDrawingSelectSummaryxHGXhB2y:http://schemas.datacontract.org/2004/07/FonbetEngine.DAL");
FonbetEngine.DAL.SelectResultOfDrawingDrawingSelectSummaryxHGXhB2y.registerClass('FonbetEngine.DAL.SelectResultOfDrawingDrawingSelectSummaryxHGXhB2y');
}
if (typeof(FonbetEngine.DAL.SelectSummary) === 'undefined') {
FonbetEngine.DAL.SelectSummary=gtc("SelectSummary:http://schemas.datacontract.org/2004/07/FonbetEngine.DAL");
FonbetEngine.DAL.SelectSummary.registerClass('FonbetEngine.DAL.SelectSummary');
}
if (typeof(FonbetEntity.Drawing) === 'undefined') {
FonbetEntity.Drawing=gtc("Drawing:http://schemas.datacontract.org/2004/07/FonbetEntity");
FonbetEntity.Drawing.registerClass('FonbetEntity.Drawing');
}
if (typeof(FonbetEntity.DrawingDetail) === 'undefined') {
FonbetEntity.DrawingDetail=gtc("DrawingDetail:http://schemas.datacontract.org/2004/07/FonbetEntity");
FonbetEntity.DrawingDetail.registerClass('FonbetEntity.DrawingDetail');
}
if (typeof(FonbetEntity.Result) === 'undefined') {
FonbetEntity.Result=gtc("Result:http://schemas.datacontract.org/2004/07/FonbetEntity");
FonbetEntity.Result.registerClass('FonbetEntity.Result');
}
if (typeof(FonbetEntity.Coupon) === 'undefined') {
FonbetEntity.Coupon=gtc("Coupon:http://schemas.datacontract.org/2004/07/FonbetEntity");
FonbetEntity.Coupon.registerClass('FonbetEntity.Coupon');
}
if (typeof(FonbetEntity.Money) === 'undefined') {
FonbetEntity.Money=gtc("Money:http://schemas.datacontract.org/2004/07/FonbetEntity");
FonbetEntity.Money.registerClass('FonbetEntity.Money');
}
if (typeof(FonbetEntity.Option) === 'undefined') {
FonbetEntity.Option=gtc("Option:http://schemas.datacontract.org/2004/07/FonbetEntity");
FonbetEntity.Option.registerClass('FonbetEntity.Option');
}
if (typeof(FonbetEntity.ResultItem) === 'undefined') {
FonbetEntity.ResultItem=gtc("ResultItem:http://schemas.datacontract.org/2004/07/FonbetEntity");
FonbetEntity.ResultItem.registerClass('FonbetEntity.ResultItem');
}
if (typeof(FonbetEntity.Event) === 'undefined') {
FonbetEntity.Event=gtc("Event:http://schemas.datacontract.org/2004/07/FonbetEntity");
FonbetEntity.Event.registerClass('FonbetEntity.Event');
}
if (typeof(FonbetEntity.EventStatItem) === 'undefined') {
FonbetEntity.EventStatItem=gtc("EventStatItem:http://schemas.datacontract.org/2004/07/FonbetEntity");
FonbetEntity.EventStatItem.registerClass('FonbetEntity.EventStatItem');
}
Type.registerNamespace('FonbetEngine');
if (typeof(FonbetEngine.DrawingSelectSummary) === 'undefined') {
FonbetEngine.DrawingSelectSummary=gtc("DrawingSelectSummary:http://schemas.datacontract.org/2004/07/FonbetEngine");
FonbetEngine.DrawingSelectSummary.registerClass('FonbetEngine.DrawingSelectSummary');
}
if (typeof(FonbetEngine.TimeRest) === 'undefined') {
FonbetEngine.TimeRest=gtc("TimeRest:http://schemas.datacontract.org/2004/07/FonbetEngine");
FonbetEngine.TimeRest.registerClass('FonbetEngine.TimeRest');
}
if (typeof(FonbetEngine.DrawingContainer) === 'undefined') {
FonbetEngine.DrawingContainer=gtc("DrawingContainer:http://schemas.datacontract.org/2004/07/FonbetEngine");
FonbetEngine.DrawingContainer.registerClass('FonbetEngine.DrawingContainer');
}
if (typeof(FonbetEngine.DAL.SelectCouponsParams) === 'undefined') {
FonbetEngine.DAL.SelectCouponsParams=gtc("SelectCouponsParams:http://schemas.datacontract.org/2004/07/FonbetEngine.DAL");
FonbetEngine.DAL.SelectCouponsParams.registerClass('FonbetEngine.DAL.SelectCouponsParams');
}
if (typeof(FonbetEngine.DAL.SelectResultOfCouponCalcSelectSummaryxHGXhB2y) === 'undefined') {
FonbetEngine.DAL.SelectResultOfCouponCalcSelectSummaryxHGXhB2y=gtc("SelectResultOfCouponCalcSelectSummaryxHGXhB2y:http://schemas.datacontract.org/2004/07/FonbetEngine.DAL");
FonbetEngine.DAL.SelectResultOfCouponCalcSelectSummaryxHGXhB2y.registerClass('FonbetEngine.DAL.SelectResultOfCouponCalcSelectSummaryxHGXhB2y');
}
if (typeof(FonbetEngine.CalcSelectSummary) === 'undefined') {
FonbetEngine.CalcSelectSummary=gtc("CalcSelectSummary:http://schemas.datacontract.org/2004/07/FonbetEngine");
FonbetEngine.CalcSelectSummary.registerClass('FonbetEngine.CalcSelectSummary');
}
if (typeof(FonbetEngine.DAL.SelectResultOfWinCouponSelectSummaryWVcc8KbY) === 'undefined') {
FonbetEngine.DAL.SelectResultOfWinCouponSelectSummaryWVcc8KbY=gtc("SelectResultOfWinCouponSelectSummaryWVcc8KbY:http://schemas.datacontract.org/2004/07/FonbetEngine.DAL");
FonbetEngine.DAL.SelectResultOfWinCouponSelectSummaryWVcc8KbY.registerClass('FonbetEngine.DAL.SelectResultOfWinCouponSelectSummaryWVcc8KbY');
}
if (typeof(FonbetEntity.WinCoupon) === 'undefined') {
FonbetEntity.WinCoupon=gtc("WinCoupon:http://schemas.datacontract.org/2004/07/FonbetEntity");
FonbetEntity.WinCoupon.registerClass('FonbetEntity.WinCoupon');
}
if (typeof(FonbetEntity.Distrib) === 'undefined') {
FonbetEntity.Distrib=gtc("Distrib:http://schemas.datacontract.org/2004/07/FonbetEntity");
FonbetEntity.Distrib.registerClass('FonbetEntity.Distrib');
}
if (typeof(FonbetEngine.DAL.SelectStakeDictParams) === 'undefined') {
FonbetEngine.DAL.SelectStakeDictParams=gtc("SelectStakeDictParams:http://schemas.datacontract.org/2004/07/FonbetEngine.DAL");
FonbetEngine.DAL.SelectStakeDictParams.registerClass('FonbetEngine.DAL.SelectStakeDictParams');
}
if (typeof(FonbetEngine.DAL.SelectResultOfStakeDictSelectSummaryWVcc8KbY) === 'undefined') {
FonbetEngine.DAL.SelectResultOfStakeDictSelectSummaryWVcc8KbY=gtc("SelectResultOfStakeDictSelectSummaryWVcc8KbY:http://schemas.datacontract.org/2004/07/FonbetEngine.DAL");
FonbetEngine.DAL.SelectResultOfStakeDictSelectSummaryWVcc8KbY.registerClass('FonbetEngine.DAL.SelectResultOfStakeDictSelectSummaryWVcc8KbY');
}
if (typeof(FonbetEntity.StakeDict) === 'undefined') {
FonbetEntity.StakeDict=gtc("StakeDict:http://schemas.datacontract.org/2004/07/FonbetEntity");
FonbetEntity.StakeDict.registerClass('FonbetEntity.StakeDict');
}
if (typeof(FonbetEngine.DAL.SelectCouponsIntervalParams) === 'undefined') {
FonbetEngine.DAL.SelectCouponsIntervalParams=gtc("SelectCouponsIntervalParams:http://schemas.datacontract.org/2004/07/FonbetEngine.DAL");
FonbetEngine.DAL.SelectCouponsIntervalParams.registerClass('FonbetEngine.DAL.SelectCouponsIntervalParams');
}
if (typeof(FonbetEntity.DrawingState) === 'undefined') {
FonbetEntity.DrawingState = function() { throw Error.invalidOperation(); }
FonbetEntity.DrawingState.prototype = {Cancelled: 0,Closed: 1,Active: 2,Waiting: 3}
FonbetEntity.DrawingState.registerEnum('FonbetEntity.DrawingState', true);
}

