/* Options: Date: 2024-11-21 15:32:40 Version: 6.111 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://northwind.netcore.io //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.* @Route("/query/customers") open class QueryCustomers : QueryDb(), IReturn> { var ids:ArrayList? = null var countryStartsWith:String? = 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() { } @DataContract open class Customer { @DataMember var id:String? = null @DataMember var companyName:String? = null @DataMember var contactName:String? = null @DataMember var contactTitle:String? = null @DataMember var address:String? = null @DataMember var city:String? = null @DataMember var region:String? = null @DataMember var postalCode:String? = null @DataMember var country:String? = null @DataMember var phone:String? = null @DataMember var fax:String? = null } @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() }