/* Options: Date: 2024-11-21 12:46:35 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: UpdateMessageTemplate.* //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.Interfaces; using BokaMera.API.ServiceModel.Dtos; namespace BokaMera.API.ServiceModel.Dtos { public partial class MessageServices { public virtual int Id { get; set; } /// ///Name of the service /// [ApiMember(Description="Name of the service")] public virtual string Name { get; set; } /// ///The image url of the service /// [ApiMember(Description="The image url of the service")] public virtual Uri ImageUrl { get; set; } } public partial class MessageTemplatesQueryResponse { public MessageTemplatesQueryResponse() { Services = new List{}; } /// ///The message template id /// [ApiMember(Description="The message template id")] public virtual int Id { get; set; } /// ///The message template name. /// [ApiMember(Description="The message template name.")] public virtual string Name { get; set; } /// ///The message template title. /// [ApiMember(Description="The message template title.")] public virtual string Title { get; set; } /// ///The message template title. /// [ApiMember(Description="The message template title.")] public virtual string Body { get; set; } /// ///The message template sender (an email for message types with sendmethod 1, for SMS this cannot be set). /// [ApiMember(Description="The message template sender (an email for message types with sendmethod 1, for SMS this cannot be set).")] public virtual string Sender { get; set; } /// ///If the message template is the default message currently in use. /// [ApiMember(Description="If the message template is the default message currently in use.")] public virtual bool Default { get; set; } /// ///If the message type information. /// [ApiMember(Description="If the message type information.")] public virtual MessageTypeQueryResponse MessageType { get; set; } /// ///Template language. /// [ApiMember(Description="Template language.")] public virtual string Language { get; set; } /// ///The connected services which the template is valid for. If empty then it's valid for all services. /// [ApiMember(Description="The connected services which the template is valid for. If empty then it's valid for all services.")] public virtual List Services { 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; } } [Route("/messages/templates/{Id}", "PUT")] [ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)] [ValidateRequest("IsAuthenticated")] public partial class UpdateMessageTemplate : IReturn, ICompany { public UpdateMessageTemplate() { Services = new int[]{}; } /// ///The company id, if empty will use the company id for the user you are logged in with. /// [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; } /// ///The message template id. /// [ApiMember(Description="The message template id.", IsRequired=true, ParameterType="path")] public virtual int Id { get; set; } /// ///The message type id. See GET /messages/templates/types /// [ApiMember(Description="The message type id. See GET /messages/templates/types ")] public virtual int? TypeId { get; set; } /// ///The message should be default and the one to be used. All other messages for the same message type will be set to Default = false /// [ApiMember(Description="The message should be default and the one to be used. All other messages for the same message type will be set to Default = false")] public virtual bool? Default { get; set; } /// ///The message template name. /// [ApiMember(Description="The message template name.")] public virtual string Name { get; set; } /// ///The message template title. /// [ApiMember(Description="The message template title.")] public virtual string Title { get; set; } /// ///The message template title. /// [ApiMember(Description="The message template title.")] public virtual string Body { get; set; } /// ///The message template sender (an email for message types with sendmethod 1, for SMS this cannot be set). /// [ApiMember(Description="The message template sender (an email for message types with sendmethod 1, for SMS this cannot be set).")] public virtual string Sender { get; set; } /// ///Message template lanugage /// [ApiMember(Description="Message template lanugage", IsRequired=true)] public virtual string Language { get; set; } /// ///The services that is connected to the template. If null it will be connected to all services. /// [ApiMember(Description="The services that is connected to the template. If null it will be connected to all services.")] public virtual int[] Services { get; set; } } } namespace BokaMera.API.ServiceModel.Interfaces { public partial interface ICompany { Guid? CompanyId { get; set; } } }