# frozen_string_literal: true # encoding: utf-8 # Options: =begin Date: 2026-11-07 04:01:17 Version: 10.42 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://s4w2.api.bettor.webhop.biz #MakePartial: True #MakeVirtual: True #MakeInternal: False #MakeDataContractsExtensible: False #AddReturnMarker: True #AddDescriptionAsComments: True #AddDataContractAttributes: False #AddIndexesToDataMembers: False #AddGeneratedCodeAttributes: False #AddResponseStatus: False #AddImplicitVersion: #InitializeCollections: False #ExportValueTypes: False IncludeTypes: GetRecentWinsConfig.* #ExcludeTypes: #AddNamespaces: #AddDefaultXmlNamespace: http://schemas.servicestack.net/types =end require 'json' require 'servicestack' module IReturn def response_type() = T def get_type_name() = 'IReturn' end class WinInterval include ServiceStack::DTO # @return [BigDecimal] attr_accessor :start # @return [BigDecimal] attr_accessor :end # @return [Time] attr_accessor :duration def self.properties { start: { name: 'start' }, end: { name: 'end' }, duration: { name: 'duration' }, } end end class RecentWinsConfiguration < RecentWinsConfiguration # @return [String] attr_accessor :id def self.properties { id: { name: 'id' }, } end end class RecentWinsConfiguration include ServiceStack::DTO # @return [Integer] attr_accessor :max_size # @return [RecordList] attr_accessor :win_intervals def self.properties { max_size: { name: 'maxSize' }, win_intervals: { name: 'winIntervals', type: RecordList }, } end end class RecordList < Array end # @Route("/qry/config/recent-wins") class GetRecentWinsConfig include ServiceStack::DTO def response_type() = RecentWinsConfiguration def get_type_name() = 'GetRecentWinsConfig' def get_method() = 'POST' end