/* Options: Date: 2025-11-08 11:12:10 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: GetFeedHeartbeat.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Stages { static const Stages None = const Stages._(0); static const Stages Countdown = const Stages._(1); static const Stages Processing = const Stages._(2); static const Stages Draw = const Stages._(3); static const Stages Results = const Stages._(4); final int _value; const Stages._(this._value); int get value => _value; static List get values => const [None,Countdown,Processing,Draw,Results]; } class Progress implements IConvertible { int? step; int? steps; double? pct; Progress({this.step,this.steps,this.pct}); Progress.fromJson(Map json) { fromMap(json); } fromMap(Map json) { step = json['step']; steps = json['steps']; pct = JsonConverters.toDouble(json['pct']); return this; } Map toJson() => { 'step': step, 'steps': steps, 'pct': pct }; getTypeName() => "Progress"; TypeContext? context = _ctx; } class FeedHeartbeat implements IConvertible { String? roundId; Stages? stage; int? step; int? steps; DateTime? utcTimestamp; int? lockdownStepFromEnd; Progress? overall; bool? isHappyHour; FeedHeartbeat({this.roundId,this.stage,this.step,this.steps,this.utcTimestamp,this.lockdownStepFromEnd,this.overall,this.isHappyHour}); FeedHeartbeat.fromJson(Map json) { fromMap(json); } fromMap(Map json) { roundId = json['roundId']; stage = JsonConverters.fromJson(json['stage'],'Stages',context!); step = json['step']; steps = json['steps']; utcTimestamp = JsonConverters.fromJson(json['utcTimestamp'],'DateTime',context!); lockdownStepFromEnd = json['lockdownStepFromEnd']; overall = JsonConverters.fromJson(json['overall'],'Progress',context!); isHappyHour = json['isHappyHour']; return this; } Map toJson() => { 'roundId': roundId, 'stage': JsonConverters.toJson(stage,'Stages',context!), 'step': step, 'steps': steps, 'utcTimestamp': JsonConverters.toJson(utcTimestamp,'DateTime',context!), 'lockdownStepFromEnd': lockdownStepFromEnd, 'overall': JsonConverters.toJson(overall,'Progress',context!), 'isHappyHour': isHappyHour }; getTypeName() => "FeedHeartbeat"; TypeContext? context = _ctx; } // @Route("/qry/feed/hb") class GetFeedHeartbeat implements IReturn, IConvertible, IPost { GetFeedHeartbeat(); GetFeedHeartbeat.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => FeedHeartbeat(); getResponseTypeName() => "FeedHeartbeat"; getTypeName() => "GetFeedHeartbeat"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 's4w2.api.bettor.cc', types: { 'Stages': TypeInfo(TypeOf.Enum, enumValues:Stages.values), 'Progress': TypeInfo(TypeOf.Class, create:() => Progress()), 'FeedHeartbeat': TypeInfo(TypeOf.Class, create:() => FeedHeartbeat()), 'GetFeedHeartbeat': TypeInfo(TypeOf.Class, create:() => GetFeedHeartbeat()), });