import java.math.*
import java.util.*
import net.servicestack.client.*
import com.google.gson.annotations.*
import com.google.gson.reflect.*
open class RolesSystemFunctionsAutoQueryLookup : QueryDb<RolesSystemFunctions>()
{
}
open class QueryDb<T> : QueryBase()
{
}
@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<String,String> = HashMap<String,String>()
}
open class RolesSystemFunctions
{
@DataMember(Order=1)
@Required()
var id:Long? = null
@DataMember(Order=2)
@Required()
@References(Roles.class)
var rolesId:Long? = null
@DataMember(Order=3)
@Required()
@References(SystemFunctions.class)
var systemFunctionsId:Long? = null
}
@DataContract
open class QueryResponse<Tenants>
{
@DataMember(Order=1)
var offset:Int? = null
@DataMember(Order=2)
var total:Int? = null
@DataMember(Order=3)
var results:ArrayList<Tenants> = ArrayList<Tenants>()
@DataMember(Order=4)
var meta:HashMap<String,String> = HashMap<String,String>()
@DataMember(Order=5)
var responseStatus:ResponseStatus? = null
}
open class Tenants
{
@DataMember(Order=1)
@Required()
var id:Long? = null
@DataMember(Order=2)
@Required()
@References(Zones.class)
var mainZonesId:Long? = null
@DataMember(Order=3)
var isPublic:Boolean? = null
}
Kotlin RolesSystemFunctionsAutoQueryLookup DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /jsv/reply/RolesSystemFunctionsAutoQueryLookup HTTP/1.1
Host: api-stage.smartfarmertech.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
skip: 0,
take: 0,
orderBy: String,
orderByDesc: String,
include: String,
fields: String,
meta:
{
String: String
}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
offset: 0,
total: 0,
results:
[
{
id: 0,
rolesId: 0,
systemFunctionsId: 0
}
],
meta:
{
String: String
},
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
}
}