/* Options: Date: 2025-09-14 14:29:38 SwiftVersion: 6.0 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bookmore.com //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: UpdateNewsItem.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/news/{Id}", "PUT") // @ValidateRequest(Validator="IsAuthenticated") public class UpdateNewsItem : IReturn, ICompany, Codable { public typealias Return = NewsItemQueryResponse /** * The company id, if empty will use the company id for the user you are logged in with. */ // @ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.") public var companyId:String? /** * Id of the newsitem to update */ // @ApiMember(Description="Id of the newsitem to update", IsRequired=true, ParameterType="path") public var id:Int? /** * The news item header, keep this short and concise */ // @ApiMember(Description="The news item header, keep this short and concise", IsRequired=true) public var heading:String? /** * The news body text */ // @ApiMember(Description="The news body text", IsRequired=true) public var body:String? /** * Valid url to a image associated with the news */ // @ApiMember(Description="Valid url to a image associated with the news") public var imageUrl:Uri? /** * The timestamp from which the newsitem should be visible from */ // @ApiMember(Description="The timestamp from which the newsitem should be visible from", IsRequired=true) public var from:Date? /** * The timestamp to which the newsitem should be visible to */ // @ApiMember(Description="The timestamp to which the newsitem should be visible to", IsRequired=true) public var to:Date? required public init(){} } public class NewsItemQueryResponse : Codable { /** * The news item id */ // @ApiMember(Description="The news item id") public var id:Int? /** * Heading of the news item */ // @ApiMember(Description="Heading of the news item") public var heading:String? /** * Body of the news item */ // @ApiMember(Description="Body of the news item") public var body:String? /** * Url to a image associated with the news */ // @ApiMember(Description="Url to a image associated with the news") public var imageUrl:Uri? /** * The timestamp from which the newsitem should be visible from */ // @ApiMember(Description="The timestamp from which the newsitem should be visible from", IsRequired=true) public var from:Date? /** * The timestamp to which the newsitem should be visible to */ // @ApiMember(Description="The timestamp to which the newsitem should be visible to", IsRequired=true) public var to:Date? /** * The timestamp when news was created */ // @ApiMember(Description="The timestamp when news was created", IsRequired=true) public var created:Date? public var responseStatus:ResponseStatus? required public init(){} } public protocol ICompany { var companyId:String? { get set } }