(* Options: Date: 2024-09-30 10:35:30 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //MakeDataContractsExtensible: False //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //ExportValueTypes: False IncludeTypes: NewsItemQuery.* //ExcludeTypes: //InitializeCollections: True //AddNamespaces: *) namespace BokaMera.API.ServiceModel.Db open System open System.Collections open System.Collections.Generic open System.Runtime.Serialization open ServiceStack open ServiceStack.DataAnnotations open System.Globalization open ServiceStack.Data open System.IO [] type IInterval = abstract From:DateTime with get,set abstract To:DateTime with get,set [] type BaseModel() = class end [] type NewsItem() = inherit BaseModel() [] member val Active:Boolean = new Boolean() with get,set [] member val CompanyId:Guid = new Guid() with get,set member val Id:Int32 = new Int32() with get,set [] member val Heading:String = null with get,set [] member val Body:String = null with get,set member val ImageUrl:String = null with get,set [] member val Updated:DateTime = new DateTime() with get,set [] member val Created:DateTime = new DateTime() with get,set member val ModifiedDate:Nullable = new Nullable() with get,set [] member val From:DateTime = new DateTime() with get,set [] member val To:DateTime = new DateTime() with get,set [] type NewsItemQueryResponse() = /// ///The news item id /// [] member val Id:Int32 = new Int32() with get,set /// ///Heading of the news item /// [] member val Heading:String = null with get,set /// ///Body of the news item /// [] member val Body:String = null with get,set /// ///Url to a image associated with the news /// [] member val ImageUrl:Uri = null with get,set /// ///The timestamp from which the newsitem should be visible from /// [] member val From:DateTime = new DateTime() with get,set /// ///The timestamp to which the newsitem should be visible to /// [] member val To:DateTime = new DateTime() with get,set /// ///The timestamp when news was created /// [] member val Created:DateTime = new DateTime() with get,set member val ResponseStatus:ResponseStatus = null with get,set [] [] type NewsItemQuery() = inherit QueryDb() interface IReturn> /// ///Enter the company you want to see news for, if blank and you are an admin, your company id will be used /// [] member val CompanyId:Nullable = new Nullable() with get,set /// ///Enter the From Date you want to see news from, only allowed if admin /// [] member val From:Nullable = new Nullable() with get,set /// ///Enter the To Date you want to see news to, only allowed if admin /// [] member val To:Nullable = new Nullable() with get,set /// ///Use this parameter if you want to only show active news /// [] member val Active:Nullable = new Nullable() with get,set /// ///The homeage sitepath. /// [] member val SitePath:String = null with get,set /// ///If you want to remove Html tags from newsbody and show as plain text. /// [] member val PlainText:Boolean = new Boolean() with get,set