(* Options:
Date: 2025-04-12 00:13:07
Version: 8.23
Tip: To override a DTO option, remove "//" prefix before updating
BaseUrl: https://testapi.bokamera.se

//GlobalNamespace: 
//MakeDataContractsExtensible: False
//AddReturnMarker: True
//AddDescriptionAsComments: True
//AddDataContractAttributes: False
//AddIndexesToDataMembers: False
//AddGeneratedCodeAttributes: False
//AddResponseStatus: False
//AddImplicitVersion: 
//ExportValueTypes: False
IncludeTypes: HomepageImagesQuery.*
//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.Net
open System.Net.Http.Headers

    [<AllowNullLiteral>]
    type BaseModel() = 
        class end

    [<AllowNullLiteral>]
    type HomepageImage() = 
        inherit BaseModel()
        [<Required>]
        member val CompanyId:Guid = new Guid() with get,set

        member val Id:Int32 = new Int32() with get,set
        member val Title:String = null with get,set
        member val Description:String = null with get,set
        [<Required>]
        member val ImageUrl:String = null with get,set

        member val ModifiedDate:Nullable<DateTimeOffset> = new Nullable<DateTimeOffset>() with get,set

    [<AllowNullLiteral>]
    type ICompanyRequest = 
        abstract CompanyId:Nullable<Guid> with get,set
        abstract SitePath:String with get,set

    [<AllowNullLiteral>]
    type HomepageImageQueryResponse() = 
        ///<summary>
        ///The company id.
        ///</summary>
        [<ApiMember(Description="The company id.")>]
        member val CompanyId:Guid = new Guid() with get,set

        ///<summary>
        ///The homepage image id.
        ///</summary>
        [<ApiMember(Description="The homepage image id.")>]
        member val Id:Int32 = new Int32() with get,set

        ///<summary>
        ///The image title.
        ///</summary>
        [<ApiMember(Description="The image title.")>]
        member val Title:String = null with get,set

        ///<summary>
        ///The image description.
        ///</summary>
        [<ApiMember(Description="The image description.")>]
        member val Description:String = null with get,set

        ///<summary>
        ///The image url.
        ///</summary>
        [<ApiMember(Description="The image url.")>]
        member val ImageUrl:Uri = null with get,set

    [<Route("/homepage/images", "GET")>]
    [<AllowNullLiteral>]
    type HomepageImagesQuery() = 
        inherit QueryDb<HomepageImage, HomepageImageQueryResponse>()
        interface IReturn<QueryResponse<HomepageImageQueryResponse>>
        ///<summary>
        ///Enter the company you want to see news for, if blank and you are an admin, your company id will be used
        ///</summary>
        [<ApiMember(Description="Enter the company you want to see news for, if blank and you are an admin, your company id will be used", ParameterType="query")>]
        member val CompanyId:Nullable<Guid> = new Nullable<Guid>() with get,set

        ///<summary>
        ///The image id.
        ///</summary>
        [<ApiMember(Description="The image id.")>]
        member val Id:Nullable<Int32> = new Nullable<Int32>() with get,set

        ///<summary>
        ///The homeage sitepath.
        ///</summary>
        [<ApiMember(Description="The homeage sitepath.")>]
        member val SitePath:String = null with get,set