/* Options: Date: 2024-11-24 16:17:19 Version: 6.111 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://sharpscript.net //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: QueryCustomers.* //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.* open class QueryCustomers : QueryDb(), IReturn> { var customerId:String? = null var companyNameContains:String? = null var countryIn:ArrayList? = null companion object { private val responseType = object : TypeToken>(){}.type } override fun getResponseType(): Any? = QueryCustomers.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 class Customer { var customerId:String? = null var companyName:String? = null var address:String? = null var city:String? = null var region:String? = null var postalCode:String? = null var country:String? = null var phone:String? = null var fax:String? = null var orders:ArrayList = ArrayList() } @DataContract open class QueryBase { @DataMember(Order=1) var skip:Int? = null @DataMember(Order=2) var take:Int? = null @DataMember(Order=3) var orderBy:String? = null @DataMember(Order=4) var orderByDesc:String? = null @DataMember(Order=5) var include:String? = null @DataMember(Order=6) var fields:String? = null @DataMember(Order=7) var meta:HashMap = HashMap() } open class Order { var orderId:Int? = null var customerId:String? = null var orderDate:Date? = null var total:Double? = null }