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

//GlobalNamespace: 
//MakePartial: True
//MakeVirtual: True
//MakeInternal: False
//MakeDataContractsExtensible: False
//AddNullableAnnotations: False
//AddReturnMarker: True
//AddDescriptionAsComments: True
//AddDataContractAttributes: False
//AddIndexesToDataMembers: False
//AddGeneratedCodeAttributes: False
//AddResponseStatus: False
//AddImplicitVersion: 
//InitializeCollections: True
//ExportValueTypes: False
IncludeTypes: CodeLockSiedleSettingQuery.*
//ExcludeTypes: 
//AddNamespaces: 
//AddDefaultXmlNamespace: http://schemas.servicestack.net/types
*/

using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using System.Globalization;
using ServiceStack.Data;
using System.Net;
using System.Net.Http.Headers;
using BokaMera.API.ServiceModel.Interfaces;
using BokaMera.API.ServiceModel.Enums;
using BokaMera.API.ServiceModel.Dtos;

namespace BokaMera.API.ServiceModel.Dtos
{
    [Route("/codelock/siedle/settings", "GET")]
    [ValidateRequest("IsAuthenticated")]
    [ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)]
    [ApiResponse(Description="You have too low privileges to call this service", StatusCode=403)]
    public partial class CodeLockSiedleSettingQuery
        : IReturn<CodeLockSiedleSettingResponse>, ICompany
    {
        ///<summary>
        ///The company id, if empty will use the company id for the user you are logged in with.
        ///</summary>
        [ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.")]
        public virtual Guid? CompanyId { get; set; }
    }

    public partial class CodeLockSiedleSettingResponse
    {
        public virtual Guid CompanyId { get; set; }
        ///<summary>
        ///The api endpoint of the code lock
        ///</summary>
        [ApiMember(DataType="string", Description="The api endpoint of the code lock")]
        public virtual string ApiEndpoint { get; set; }

        ///<summary>
        ///The api port for the code lock.
        ///</summary>
        [ApiMember(DataType="string", Description="The api port for the code lock.")]
        public virtual int? ApiPort { get; set; }

        ///<summary>
        ///The device id to the code lock.
        ///</summary>
        [ApiMember(DataType="string", Description="The device id to the code lock.")]
        public virtual string DeviceId { get; set; }

        ///<summary>
        ///The username to logon to the code lock.
        ///</summary>
        [ApiMember(DataType="string", Description="The username to logon to the code lock.")]
        public virtual string Username { get; set; }

        ///<summary>
        ///The password to logon to the code lock.
        ///</summary>
        [ApiMember(DataType="string", Description="The password to logon to the code lock.")]
        public virtual string Password { get; set; }

        ///<summary>
        ///The integration type to the code lock. 1 = Local Api,  2 = Cloud Based Api
        ///</summary>
        [ApiMember(DataType="string", Description="The integration type to the code lock. 1 = Local Api,  2 = Cloud Based Api")]
        public virtual SiedleIntegrationType IntegrationType { get; set; }

        ///<summary>
        ///When settings was created
        ///</summary>
        [ApiMember(DataType="datetime", Description="When settings was created")]
        public virtual DateTime Created { get; set; }

        ///<summary>
        ///When settings was updated
        ///</summary>
        [ApiMember(DataType="datetime", Description="When settings was updated")]
        public virtual DateTime Updated { get; set; }
    }

}

namespace BokaMera.API.ServiceModel.Enums
{
    public enum SiedleIntegrationType
    {
        LocalApi = 1,
        CloudBasedApi = 2,
    }

}

namespace BokaMera.API.ServiceModel.Interfaces
{
    public partial interface ICompany
    {
        Guid? CompanyId { get; set; }
    }

}