# frozen_string_literal: true # encoding: utf-8 # Options: =begin Date: 2026-11-07 02:58:16 Version: 10.40 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://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: GetAds.* #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 Localization include ServiceStack::DTO # @return [String] attr_accessor :ln # @return [String] attr_accessor :value def self.properties { ln: { name: 'ln' }, value: { name: 'value' }, } end end class Message include ServiceStack::DTO # @return [String] attr_accessor :id # @return [Dictionary] attr_accessor :localizations def self.properties { id: { name: 'id' }, localizations: { name: 'localizations', type: { String => Localization } }, } end end class Advertisement include ServiceStack::DTO # @return [String] attr_accessor :id # @return [Dictionary] attr_accessor :messages def self.properties { id: { name: 'id' }, messages: { name: 'messages', type: { String => Message } }, } end end # @Route("/ads", "GET") class GetAds include ServiceStack::DTO # @return [String] attr_accessor :id def self.properties { id: { name: 'id' }, } end def response_type() = Advertisement def get_type_name() = 'GetAds' def get_method() = 'GET' end