/* Options: Date: 2025-06-13 06:59:00 SwiftVersion: 5.0 Version: 6.40 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://ws.jimsnwa.com //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: GetAlertsByUserRQ.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/alerts/getbyuser") public class GetAlertsByUserRQ : IReturn, Codable { public typealias Return = GetAlertsByUserRS public var user:String? public var status:Int? required public init(){} } public class GetAlertsByUserRS : CoreRS { public var data:[SystemAlert] = [] required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case data } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) data = try container.decodeIfPresent([SystemAlert].self, forKey: .data) ?? [] } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if data.count > 0 { try container.encode(data, forKey: .data) } } } public class SystemAlert : Codable { public var generationType:Int? public var generationTypeDesc:String? public var alertOrigin:Int? public var alertOriginDesc:String? public var message:String? public var longitude:Double? public var latitude:Double? public var modifiedUser:String? public var modifiedDate:Date? public var modifiedDateDesc:String? public var notes:String? public var fullinfo:String? public var status:Int? public var statusDesc:String? required public init(){} } public class CoreRS : Codable { public var code:String? public var errorMessage:String? public var errorStackTrace:String? required public init(){} }