/* Options: Date: 2025-08-04 04:20:49 SwiftVersion: 5.0 Version: 6.110 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://szallitoiportal-be.veolia.hu //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: BrowsePortalEventQueue.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/portaleventqueue/{portaleventqueueid}", "GET") public class BrowsePortalEventQueue : IReturn, IGet, Codable { public typealias Return = BrowsePortalEventQueueResponse public var portalEventQueueId:Int required public init(){} } public class BrowsePortalEventQueueResponse : ResponseBase { public var portalEventQueue:PortalEventQueueSimple required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case portalEventQueue } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) portalEventQueue = try container.decodeIfPresent(PortalEventQueueSimple.self, forKey: .portalEventQueue) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if portalEventQueue != nil { try container.encode(portalEventQueue, forKey: .portalEventQueue) } } } public class ResponseBase : Codable { public var responseStatus:ResponseStatus required public init(){} } public class PortalEventQueueSimple : Codable { public var id:Int public var eventType:PortalEventQueueType public var dataId:Int public var createdDateTime:Date required public init(){} } public enum PortalEventQueueType : Int, Codable { case CreateUser = 0 case ViewTenderUserInvite = 1 case CreateTenderUser = 2 case CreateQuestion = 3 case ViewSupplementaryRequest = 4 case CreateSupplementaryResponse = 5 case ViewContractVersion = 6 case AcceptContractVersion = 7 case CreateContractVersionComment = 8 case ViewPurchaseOrderVersion = 9 case AcceptPurchaseOrderVersion = 10 case CreatePurchaseOrderVersionComment = 11 case EditUser = 12 case SubmitTenderUserTenderRound = 13 }