export class Varieties
{
// @DataMember(Order=1)
// @Required()
public id: number;
// @DataMember(Order=2)
// @Required()
// @References("typeof(sfgboxapi.ServiceModel.Types.Tenants)")
public tenantsId: number;
// @DataMember(Order=3)
// @Required()
// @References("typeof(sfgboxapi.ServiceModel.Types.Zones)")
public zonesId: number;
// @DataMember(Order=4)
// @Required()
// @References("typeof(sfgboxapi.ServiceModel.Types.Crops)")
public cropsId: number;
// @DataMember(Order=5)
// @Required()
public name: string;
// @DataMember(Order=6)
public about: string;
// @DataMember(Order=7)
public heightsCm?: number;
// @DataMember(Order=8)
// @Required()
public needSupport: boolean;
// @DataMember(Order=9)
// @Required()
public needStakes: boolean;
// @DataMember(Order=10)
// @Required()
public needTrellis: boolean;
public constructor(init?: Partial<Varieties>) { (Object as any).assign(this, init); }
}
export class VarietiesAutoQueryEdit extends Varieties implements IUpdateDb<Varieties>
{
public constructor(init?: Partial<VarietiesAutoQueryEdit>) { super(init); (Object as any).assign(this, init); }
}
TypeScript VarietiesAutoQueryEdit 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/VarietiesAutoQueryEdit HTTP/1.1
Host: api-stage.smartfarmertech.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"id":0,"tenantsId":0,"zonesId":0,"cropsId":0,"name":"String","about":"String","heightsCm":0,"needSupport":false,"needStakes":false,"needTrellis":false}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"id":0,"tenantsId":0,"zonesId":0,"cropsId":0,"name":"String","about":"String","heightsCm":0,"needSupport":false,"needStakes":false,"needTrellis":false}