/// Options: /// Date: 2026-11-07 04:19:06 /// Version: 10.42 /// Tip: To override a DTO option, remove "/" prefix before updating /// BaseUrl: https://s4w2.api.bettor.webhop.biz /// GlobalNamespace: /// MakePropertiesOptional: False /// AddServiceStackTypes: True /// AddResponseStatus: False /// AddImplicitVersion: /// AddDescriptionAsComments: True //IncludeTypes: ConfigureRecentWins.* /// ExcludeTypes: /// DefaultImports: const std = @import("std"); /// const std = @import("std"); const ss = @import("servicestack"); pub const WinInterval = struct { start: f64 = 0, end: f64 = 0, duration: ?[]const u8 = null, }; pub const RecentWinsConfiguration = struct { maxSize: i32 = 0, winIntervals: ?RecordList = null, }; pub fn RecordList(comptime T: type) type { _ = T; return struct { pub const ss_collection = "items"; items: []T = &.{}, }; pub const ResponseStatus = enum(i32) { Failure = 0, Success = 1, }; // @DataContract pub const ResponseStatus = struct { // @DataMember(Order=1) errorCode: ?[]const u8 = null, // @DataMember(Order=2) message: ?[]const u8 = null, // @DataMember(Order=3) stackTrace: ?[]const u8 = null, // @DataMember(Order=4) errors: ?[]ss.ResponseError = null, // @DataMember(Order=5) meta: ?std.json.Value = null, }; // @Route("/cmd/configure/recent-wins", "POST") pub const ConfigureRecentWins = struct { pub const ss_name = "ConfigureRecentWins"; pub const ss_verb = "POST"; pub const Response = ResponseStatus; id: ?[]const u8 = null, configuration: ?RecentWinsConfiguration = null, };