import java.math.*
import java.util.*
import net.servicestack.client.*
open class CompetitorsAutoQueryAdd : ICreateDb<Competitors>
{
@DataMember(Order=2)
var tenantsId:Long? = null
@DataMember(Order=3)
var zonesId:Long? = null
@DataMember(Order=4)
var cropsId:Long? = null
@DataMember(Order=5)
var competitorCropsId:Long? = null
@DataMember(Order=6)
var penaltyPercentage:Double? = null
@DataMember(Order=8)
var responseStatus:ResponseStatus? = null
}
open class Competitors
{
@DataMember(Order=1)
@Required()
var id:Long? = null
@DataMember(Order=2)
@Required()
@References(Tenants.class)
var tenantsId:Long? = null
@DataMember(Order=3)
@Required()
@References(Zones.class)
var zonesId:Long? = null
@DataMember(Order=4)
@Required()
@References(Crops.class)
var cropsId:Long? = null
@DataMember(Order=5)
@Required()
@References(Crops.class)
var competitorCropsId:Long? = null
@DataMember(Order=6)
@Required()
var penaltyPercentage:Double? = null
}
Kotlin CompetitorsAutoQueryAdd DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /jsonl/reply/CompetitorsAutoQueryAdd HTTP/1.1
Host: api-stage.smartfarmertech.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"tenantsId":0,"zonesId":0,"cropsId":0,"competitorCropsId":0,"penaltyPercentage":0,"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"id":0,"tenantsId":0,"zonesId":0,"cropsId":0,"competitorCropsId":0,"penaltyPercentage":0}