/* Options: Date: 2024-11-21 12:47:28 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: SubscribeToNewsletter.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.*,com.google.gson.annotations.*,com.google.gson.reflect.* */ import java.math.*; import java.util.*; import net.servicestack.client.*; import com.google.gson.annotations.*; import com.google.gson.reflect.*; public class dtos { @Route(Path="/newsletter/subscribe", Verbs="PUT") @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) public static class SubscribeToNewsletter implements IReturn>, ICompany { /** * 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; /** * Companies for which user is subscribed. */ @ApiMember(Description="Companies for which user is subscribed.", IsRequired=true) public ArrayList SubscribedCompanies = null; public UUID getCompanyId() { return CompanyId; } public SubscribeToNewsletter setCompanyId(UUID value) { this.CompanyId = value; return this; } public ArrayList getSubscribedCompanies() { return SubscribedCompanies; } public SubscribeToNewsletter setSubscribedCompanies(ArrayList value) { this.SubscribedCompanies = value; return this; } private static Object responseType = new TypeToken>(){}.getType(); public Object getResponseType() { return responseType; } } public static interface ICompany { public UUID CompanyId = null; } public static class SubscribedUserResponse { public Boolean Subscribed = null; public UUID CompanyId = null; public Boolean isSubscribed() { return Subscribed; } public SubscribedUserResponse setSubscribed(Boolean value) { this.Subscribed = value; return this; } public UUID getCompanyId() { return CompanyId; } public SubscribedUserResponse setCompanyId(UUID value) { this.CompanyId = value; return this; } } }