/* Options: Date: 2024-11-23 09:07:05 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: NewsletterLogQuery.* //ExcludeTypes: //InitializeCollections: True //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.* @Route(Path="/newsletter/log", Verbs="GET") @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) @ValidateRequest(Validator="IsAuthenticated") open class NewsletterLogQuery : QueryDb(), 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.", ParameterType="path") var CompanyId:UUID? = null /** * If you want to search on sent messages */ @ApiMember(DataType="boolean", Description="If you want to search on sent messages", ParameterType="query") var Sent:Boolean? = null /** * Message Id */ @ApiMember(DataType="int", Description="Message Id", ParameterType="query") var Id:Int? = null /** * If you want to search on a messages for a specific receiver */ @ApiMember(DataType="string", Description="If you want to search on a messages for a specific receiver", ParameterType="query") var Receiver:String? = null /** * If you want to search on a messages created a specific date */ @ApiMember(DataType="datetime", Description="If you want to search on a messages created a specific date", ParameterType="query") var Created:Date? = null /** * If you want to search on a messages sent a specific date */ @ApiMember(DataType="datetime", Description="If you want to search on a messages sent a specific date", ParameterType="query") var SentDate:Date? = null var ResponseStatus:ResponseStatus? = null companion object { private val responseType = object : TypeToken>(){}.type } override fun getResponseType(): Any? = NewsletterLogQuery.responseType } @DataContract open class QueryResponse { @DataMember(Order=1) var Offset:Int? = null @DataMember(Order=2) var Total:Int? = null @DataMember(Order=3) var Results:ArrayList = ArrayList() @DataMember(Order=4) var Meta:HashMap = HashMap() @DataMember(Order=5) var ResponseStatus:ResponseStatus? = null } open class QueryDb : QueryBase() { } open interface ICompany { var CompanyId:UUID? } open class NewsletterLog : BaseModel(), IMessageLog { var NewslettersId:Int? = null @Required() var SenderName:String? = null var ModifiedDate:Date? = null var CorrelationId:UUID? = null @Required() var CompanyId:UUID? = null var Id:Int? = null @Required() var SendMethodId:Int? = null @Required() var Receiver:String? = null @Required() var Sender:String? = null var MessageTitle:String? = null @Required() var MessageBody:String? = null @Required() var Sent:Boolean? = null @Required() var ToSendDate:Date? = null var SentDate:Date? = null var MessageCount:Int? = null var SMSStatus:Int? = null @Required() var MessageRetries:Int? = null var CreatedBy:String? = null @Required() var Created:Date? = null var StorageUrl:String? = null } @DataContract open class QueryBase { /** * Skip over a given number of elements in a sequence and then return the remainder. Use this when you need paging.

Example:
?skip=10&orderBy=Id */ @DataMember(Order=1) var Skip:Int? = null /** * Return a given number of elements in a sequence and then skip over the remainder. Use this when you need paging.

Example:
?take=20 */ @DataMember(Order=2) var Take:Int? = null /** * Comma separated list of fields to order by. Prefix the field name with a minus if you wan't to invert the sort for that field.

Example:
?orderBy=Id,-Age,FirstName */ @DataMember(Order=3) var OrderBy:String? = null /** * Comma separated list of fields to order by in descending order. Prefix the field name with a minus if you wan't to invert the sort for that field.

Example:
?orderByDesc=Id,-Age,FirstName */ @DataMember(Order=4) var OrderByDesc:String? = null /** * Include any of the aggregates AVG, COUNT, FIRST, LAST, MAX, MIN, SUM in your result set. The results will be returned in the meta field.

Example:
?include=COUNT(*) as Total

or multiple fields with
?include=Count(*) Total, Min(Age), AVG(Age) AverageAge

or unique with
?include=COUNT(DISTINCT LivingStatus) as UniqueStatus */ @DataMember(Order=5) var Include:String? = null @DataMember(Order=6) var Fields:String? = null @DataMember(Order=7) var Meta:HashMap = HashMap() } open class BaseModel { } open interface IMessageLog { var CompanyId:UUID? var Id:Int? var Receiver:String? var Sender:String? var MessageTitle:String? var MessageBody:String? var CreatedBy:String? var Created:Date? var Sent:Boolean? var ToSendDate:Date? var SentDate:Date? var SendMethodId:Int? var MessageCount:Int? var SMSStatus:Int? var MessageRetries:Int? var StorageUrl:String? } open class NewsletterLogQueryResponse { /** * The message log id */ @ApiMember(Description="The message log id") var Id:Int? = null /** * The message receiver. Either a email or a mobile phone number. */ @ApiMember(Description="The message receiver. Either a email or a mobile phone number.") var Receiver:String? = null /** * Nessage Title. */ @ApiMember(Description="Nessage Title.") var MessageTitle:String? = null /** * Nessage Body. */ @ApiMember(Description="Nessage Body.") var MessageBody:String? = null /** * When message was created. */ @ApiMember(Description="When message was created.") var Created:Date? = null /** * When the message will be sent. */ @ApiMember(Description="When the message will be sent.") var ToSendDate:Date? = null /** * When the message was sent. */ @ApiMember(Description="When the message was sent.") var SentDate:Date? = null /** * If Message is sent */ @ApiMember(Description="If Message is sent") var Sent:Boolean? = null /** * Number of retries to send the message */ @ApiMember(Description="Number of retries to send the message") var MessageRetries:Int? = null /** * Send Method. 1 = Email, 2 = SMS */ @ApiMember(Description="Send Method. 1 = Email, 2 = SMS") var SendMethodId:Int? = null }