/* Options: Date: 2024-12-22 13:17:14 SwiftVersion: 6.0 Version: 8.51 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://techstacks.io //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: UpdatePost.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/posts/{Id}", "PUT") public class UpdatePost : IReturn, IPut, Codable { public typealias Return = UpdatePostResponse public var id:Int? public var organizationId:Int? public var type:PostType? public var categoryId:Int? public var title:String? public var url:String? public var imageUrl:String? public var content:String? public var lock:Bool? public var technologyIds:[Int]? public var labels:[String]? public var fromDate:Date? public var toDate:Date? public var metaType:String? public var meta:String? required public init(){} } public class UpdatePostResponse : Codable { public var responseStatus:ResponseStatus? required public init(){} } public enum PostType : String, Codable { case Announcement case Post case Showcase case Question case Request }