/* Options: Date: 2024-11-21 11:42:45 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: SendNewsLetter.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.*; import java.util.*; import net.servicestack.client.*; public class dtos { @Route(Path="/newsletter/send", Verbs="POST") @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) @ValidateRequest(Validator="IsAuthenticated") public static class SendNewsLetter implements IReturn, ICompany { /** * The newsletter template id. */ @ApiMember(Description="The newsletter template id.", IsRequired=true) public Integer Id = null; /** * 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 UUID CompanyId = null; /** * The datetime when the newsletters should be sent. */ @ApiMember(Description="The datetime when the newsletters should be sent.", IsRequired=true) public Date SendDate = null; /** * The customer ids to send newsletters to. */ @ApiMember(Description="The customer ids to send newsletters to.", IsRequired=true) public ArrayList Customers = null; public Integer getId() { return Id; } public SendNewsLetter setId(Integer value) { this.Id = value; return this; } public UUID getCompanyId() { return CompanyId; } public SendNewsLetter setCompanyId(UUID value) { this.CompanyId = value; return this; } public Date getSendDate() { return SendDate; } public SendNewsLetter setSendDate(Date value) { this.SendDate = value; return this; } public ArrayList getCustomers() { return Customers; } public SendNewsLetter setCustomers(ArrayList value) { this.Customers = value; return this; } private static Object responseType = SendNewslettersResponse.class; public Object getResponseType() { return responseType; } } public static class SendNewslettersResponse { /** * The number of messages that are added into queue. */ @ApiMember(Description="The number of messages that are added into queue.") public Integer Total = null; /** * Send Method. 1 = Email, 2 = SMS */ @ApiMember(Description="Send Method. 1 = Email, 2 = SMS") public Integer SendMethodId = null; /** * Message example sent (in HTML format) */ @ApiMember(Description="Message example sent (in HTML format)") public String MessageExample = null; public Integer getTotal() { return Total; } public SendNewslettersResponse setTotal(Integer value) { this.Total = value; return this; } public Integer getSendMethodId() { return SendMethodId; } public SendNewslettersResponse setSendMethodId(Integer value) { this.SendMethodId = value; return this; } public String getMessageExample() { return MessageExample; } public SendNewslettersResponse setMessageExample(String value) { this.MessageExample = value; return this; } } public static interface ICompany { public UUID CompanyId = null; } }