/* Options: Date: 2025-11-09 11:06:13 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://s4w2.api.bettor.cc //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetGameConfig.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class CountdownConfiguration implements IConvertible { int? lockdownStepFromEnd; int? assertLockdownStepFromEnd; CountdownConfiguration({this.lockdownStepFromEnd,this.assertLockdownStepFromEnd}); CountdownConfiguration.fromJson(Map json) { fromMap(json); } fromMap(Map json) { lockdownStepFromEnd = json['lockdownStepFromEnd']; assertLockdownStepFromEnd = json['assertLockdownStepFromEnd']; return this; } Map toJson() => { 'lockdownStepFromEnd': lockdownStepFromEnd, 'assertLockdownStepFromEnd': assertLockdownStepFromEnd }; getTypeName() => "CountdownConfiguration"; TypeContext? context = _ctx; } class DrawConfiguration implements IConvertible { int? introIntervalInMs; int? animationIntervalInMs; int? outroIntervalInMs; DrawConfiguration({this.introIntervalInMs,this.animationIntervalInMs,this.outroIntervalInMs}); DrawConfiguration.fromJson(Map json) { fromMap(json); } fromMap(Map json) { introIntervalInMs = json['introIntervalInMs']; animationIntervalInMs = json['animationIntervalInMs']; outroIntervalInMs = json['outroIntervalInMs']; return this; } Map toJson() => { 'introIntervalInMs': introIntervalInMs, 'animationIntervalInMs': animationIntervalInMs, 'outroIntervalInMs': outroIntervalInMs }; getTypeName() => "DrawConfiguration"; TypeContext? context = _ctx; } class RTPStrategies { static const RTPStrategies RNG = const RTPStrategies._(0); static const RTPStrategies Accumulator = const RTPStrategies._(1); final int _value; const RTPStrategies._(this._value); int get value => _value; static List get values => const [RNG,Accumulator]; } class HappyHourConfiguration implements IConvertible { bool? isHappyHour; double? oddsModifier; double? roundPoolBonusPct; HappyHourConfiguration({this.isHappyHour,this.oddsModifier,this.roundPoolBonusPct}); HappyHourConfiguration.fromJson(Map json) { fromMap(json); } fromMap(Map json) { isHappyHour = json['isHappyHour']; oddsModifier = JsonConverters.toDouble(json['oddsModifier']); roundPoolBonusPct = JsonConverters.toDouble(json['roundPoolBonusPct']); return this; } Map toJson() => { 'isHappyHour': isHappyHour, 'oddsModifier': oddsModifier, 'roundPoolBonusPct': roundPoolBonusPct }; getTypeName() => "HappyHourConfiguration"; TypeContext? context = _ctx; } class RoundConfiguration implements IConvertible { RecordList? coefficients; bool? isDoubleTripleActive; bool? isJackpot5Active; int? countdownDurationInSeconds; CountdownConfiguration? countdownConfiguration; DrawConfiguration? drawConfiguration; int? resultsDurationInSeconds; RTPStrategies? rtpStrategy; HappyHourConfiguration? happyHourConfiguration; RoundConfiguration({this.coefficients,this.isDoubleTripleActive,this.isJackpot5Active,this.countdownDurationInSeconds,this.countdownConfiguration,this.drawConfiguration,this.resultsDurationInSeconds,this.rtpStrategy,this.happyHourConfiguration}); RoundConfiguration.fromJson(Map json) { fromMap(json); } fromMap(Map json) { coefficients = JsonConverters.fromJson(json['coefficients'],'RecordList',context!); isDoubleTripleActive = json['isDoubleTripleActive']; isJackpot5Active = json['isJackpot5Active']; countdownDurationInSeconds = json['countdownDurationInSeconds']; countdownConfiguration = JsonConverters.fromJson(json['countdownConfiguration'],'CountdownConfiguration',context!); drawConfiguration = JsonConverters.fromJson(json['drawConfiguration'],'DrawConfiguration',context!); resultsDurationInSeconds = json['resultsDurationInSeconds']; rtpStrategy = JsonConverters.fromJson(json['rtpStrategy'],'RTPStrategies',context!); happyHourConfiguration = JsonConverters.fromJson(json['happyHourConfiguration'],'HappyHourConfiguration',context!); return this; } Map toJson() => { 'coefficients': JsonConverters.toJson(coefficients,'RecordList',context!), 'isDoubleTripleActive': isDoubleTripleActive, 'isJackpot5Active': isJackpot5Active, 'countdownDurationInSeconds': countdownDurationInSeconds, 'countdownConfiguration': JsonConverters.toJson(countdownConfiguration,'CountdownConfiguration',context!), 'drawConfiguration': JsonConverters.toJson(drawConfiguration,'DrawConfiguration',context!), 'resultsDurationInSeconds': resultsDurationInSeconds, 'rtpStrategy': JsonConverters.toJson(rtpStrategy,'RTPStrategies',context!), 'happyHourConfiguration': JsonConverters.toJson(happyHourConfiguration,'HappyHourConfiguration',context!) }; getTypeName() => "RoundConfiguration"; TypeContext? context = _ctx; } class TimePoint implements IConvertible { int? hour; int? minute; TimePoint({this.hour,this.minute}); TimePoint.fromJson(Map json) { fromMap(json); } fromMap(Map json) { hour = json['hour']; minute = json['minute']; return this; } Map toJson() => { 'hour': hour, 'minute': minute }; getTypeName() => "TimePoint"; TypeContext? context = _ctx; } class TimeInterval implements IConvertible { TimePoint? start; TimePoint? end; TimeInterval({this.start,this.end}); TimeInterval.fromJson(Map json) { fromMap(json); } fromMap(Map json) { start = JsonConverters.fromJson(json['start'],'TimePoint',context!); end = JsonConverters.fromJson(json['end'],'TimePoint',context!); return this; } Map toJson() => { 'start': JsonConverters.toJson(start,'TimePoint',context!), 'end': JsonConverters.toJson(end,'TimePoint',context!) }; getTypeName() => "TimeInterval"; TypeContext? context = _ctx; } class HappyHourItem implements IConvertible { int? id; TimeInterval? interval; double? oddsModifier; double? roundPoolBonusPct; HappyHourItem({this.id,this.interval,this.oddsModifier,this.roundPoolBonusPct}); HappyHourItem.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; interval = JsonConverters.fromJson(json['interval'],'TimeInterval',context!); oddsModifier = JsonConverters.toDouble(json['oddsModifier']); roundPoolBonusPct = JsonConverters.toDouble(json['roundPoolBonusPct']); return this; } Map toJson() => { 'id': id, 'interval': JsonConverters.toJson(interval,'TimeInterval',context!), 'oddsModifier': oddsModifier, 'roundPoolBonusPct': roundPoolBonusPct }; getTypeName() => "HappyHourItem"; TypeContext? context = _ctx; } class HappyHourConfig implements IConvertible { bool? isActive; List? items; HappyHourConfig({this.isActive,this.items}); HappyHourConfig.fromJson(Map json) { fromMap(json); } fromMap(Map json) { isActive = json['isActive']; items = JsonConverters.fromJson(json['items'],'List',context!); return this; } Map toJson() => { 'isActive': isActive, 'items': JsonConverters.toJson(items,'List',context!) }; getTypeName() => "HappyHourConfig"; TypeContext? context = _ctx; } class GameConfiguration implements IConvertible { int? queueSize; RoundConfiguration? roundConfiguration; HappyHourConfig? happyHourConfig; GameConfiguration({this.queueSize,this.roundConfiguration,this.happyHourConfig}); GameConfiguration.fromJson(Map json) { fromMap(json); } fromMap(Map json) { queueSize = json['queueSize']; roundConfiguration = JsonConverters.fromJson(json['roundConfiguration'],'RoundConfiguration',context!); happyHourConfig = JsonConverters.fromJson(json['happyHourConfig'],'HappyHourConfig',context!); return this; } Map toJson() => { 'queueSize': queueSize, 'roundConfiguration': JsonConverters.toJson(roundConfiguration,'RoundConfiguration',context!), 'happyHourConfig': JsonConverters.toJson(happyHourConfig,'HappyHourConfig',context!) }; getTypeName() => "GameConfiguration"; TypeContext? context = _ctx; } class RecordList extends ListBase implements IConvertible { final List l = []; set length(int newLength) { l.length = newLength; } int get length => l.length; T operator [](int index) => l[index]; void operator []=(int index, T value) { l[index] = value; } RecordList(); RecordList.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "RecordList<$T>"; TypeContext? context = _ctx; } class GameConfiguration implements IConvertible { String? id; int? queueSize; RoundConfiguration? roundConfiguration; HappyHourConfig? happyHourConfig; GameConfiguration({this.id,this.queueSize,this.roundConfiguration,this.happyHourConfig}); GameConfiguration.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; queueSize = json['queueSize']; roundConfiguration = JsonConverters.fromJson(json['roundConfiguration'],'RoundConfiguration',context!); happyHourConfig = JsonConverters.fromJson(json['happyHourConfig'],'HappyHourConfig',context!); return this; } Map toJson() => { 'id': id, 'queueSize': queueSize, 'roundConfiguration': JsonConverters.toJson(roundConfiguration,'RoundConfiguration',context!), 'happyHourConfig': JsonConverters.toJson(happyHourConfig,'HappyHourConfig',context!) }; getTypeName() => "GameConfiguration"; TypeContext? context = _ctx; } // @Route("/qry/config/game") class GetGameConfig implements IReturn, IConvertible, IPost { String? locationId; GetGameConfig({this.locationId}); GetGameConfig.fromJson(Map json) { fromMap(json); } fromMap(Map json) { locationId = json['locationId']; return this; } Map toJson() => { 'locationId': locationId }; createResponse() => GameConfiguration(); getResponseTypeName() => "GameConfiguration"; getTypeName() => "GetGameConfig"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 's4w2.api.bettor.cc', types: { 'CountdownConfiguration': TypeInfo(TypeOf.Class, create:() => CountdownConfiguration()), 'DrawConfiguration': TypeInfo(TypeOf.Class, create:() => DrawConfiguration()), 'RTPStrategies': TypeInfo(TypeOf.Enum, enumValues:RTPStrategies.values), 'HappyHourConfiguration': TypeInfo(TypeOf.Class, create:() => HappyHourConfiguration()), 'RoundConfiguration': TypeInfo(TypeOf.Class, create:() => RoundConfiguration()), 'RecordList': TypeInfo(TypeOf.Class, create:() => RecordList()), 'TimePoint': TypeInfo(TypeOf.Class, create:() => TimePoint()), 'TimeInterval': TypeInfo(TypeOf.Class, create:() => TimeInterval()), 'HappyHourItem': TypeInfo(TypeOf.Class, create:() => HappyHourItem()), 'HappyHourConfig': TypeInfo(TypeOf.Class, create:() => HappyHourConfig()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GameConfiguration': TypeInfo(TypeOf.Class, create:() => GameConfiguration()), 'RecordList': TypeInfo(TypeOf.GenericDef,create:() => RecordList()), 'GetGameConfig': TypeInfo(TypeOf.Class, create:() => GetGameConfig()), });