/* Options: Date: 2024-07-03 12:27:26 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.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: GenerateToken.* //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 System.IO; using BokaMera.API.ServiceModel.Dtos; namespace BokaMera.API.ServiceModel.Dtos { [Route("/token", "POST")] [ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)] [ValidateRequest("IsAuthenticated")] public partial class GenerateToken : IReturn { /// ///The token identifier /// [ApiMember(Description="The token identifier")] public virtual string TokenIdentifier { get; set; } /// ///The token type /// [ApiMember(Description="The token type", IsRequired=true)] public virtual int Type { get; set; } /// ///The token expiration datetime /// [ApiMember(Description="The token expiration datetime", IsRequired=true)] public virtual DateTime ExpirationDate { get; set; } /// ///The unique token.If empty a unique token will be generated automatically /// [ApiMember(Description="The unique token.If empty a unique token will be generated automatically", IsRequired=true)] public virtual string UniqueToken { get; set; } } public partial class TokenResponse { /// ///The token indentifier /// [ApiMember(Description="The token indentifier")] public virtual string TokenIdentifier { get; set; } public virtual int Type { get; set; } /// ///The unique token /// [ApiMember(Description="The unique token", IsRequired=true)] public virtual string UniqueToken { get; set; } public virtual DateTime ExpirationDate { get; set; } public virtual ResponseStatus ResponseStatus { get; set; } } }