/* Options: Date: 2024-09-30 10:27:50 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: MessageTypeQuery.* //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.IO; using BokaMera.API.ServiceModel.Db; using BokaMera.API.ServiceModel.Dtos; namespace BokaMera.API.ServiceModel.Db { public partial class BaseModel { } public partial class MessageType : BaseModel { [Required] public virtual string Name { get; set; } [Required] public virtual string Description { get; set; } [Required] public virtual int MaxCharacters { get; set; } [Required] public virtual string DefaultText { get; set; } [Required] public virtual int SendMethodId { get; set; } public virtual DateTimeOffset? ModifiedDate { get; set; } public virtual int Id { get; set; } } } namespace BokaMera.API.ServiceModel.Dtos { [Route("/messages/templates/types", "GET")] [ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)] [ValidateRequest("IsAuthenticated")] public partial class MessageTypeQuery : QueryDb, IReturn> { /// ///The message type id. /// [ApiMember(Description="The message type id.")] public virtual int? Id { get; set; } /// ///The message send method id. 1 = Email, 2 = SMS /// [ApiMember(Description="The message send method id. 1 = Email, 2 = SMS")] public virtual int? SendMethodId { get; set; } } public partial class MessageTypeQueryResponse { /// ///The message type id /// [ApiMember(Description="The message type id")] public virtual int Id { get; set; } /// ///The message type name. /// [ApiMember(Description="The message type name.")] public virtual string Name { get; set; } /// ///The message type description. /// [ApiMember(Description="The message type description.")] public virtual string Description { get; set; } /// ///The maximum number of charachters that can be entered into message body using this type. /// [ApiMember(Description="The maximum number of charachters that can be entered into message body using this type.")] public virtual int MaxCharacters { get; set; } /// ///The default text that is always included when sending messages of this type. /// [ApiMember(Description="The default text that is always included when sending messages of this type.")] public virtual string DefaultText { get; set; } /// ///The send method for this type. 1 = Email, 2 = SMS. /// [ApiMember(Description="The send method for this type. 1 = Email, 2 = SMS.")] public virtual int SendMethodId { get; set; } } }