/* Options: Date: 2026-09-01 02:39:30 Version: 8.0 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api-stage.smartfarmertech.com //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: ProductsRecipesAutoQueryEdit.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.*; import java.util.*; import net.servicestack.client.*; public class dtos { public static class ProductsRecipesAutoQueryEdit extends ProductsRecipes implements IReturn, IUpdateDb { private static Object responseType = ProductsRecipes.class; public Object getResponseType() { return responseType; } } public static class ProductsRecipes { @DataMember(Order=1) @Required() public Long id = null; @DataMember(Order=2) @Required() @References(Tenants.class) public Long tenantsId = null; @DataMember(Order=3) @Required() @References(Zones.class) public Long zonesId = null; @DataMember(Order=4) @Required() @References(Products.class) public Long productsId = null; @DataMember(Order=5) @Required() public String recipeUrl = null; public Long getId() { return id; } public ProductsRecipes setId(Long value) { this.id = value; return this; } public Long getTenantsId() { return tenantsId; } public ProductsRecipes setTenantsId(Long value) { this.tenantsId = value; return this; } public Long getZonesId() { return zonesId; } public ProductsRecipes setZonesId(Long value) { this.zonesId = value; return this; } public Long getProductsId() { return productsId; } public ProductsRecipes setProductsId(Long value) { this.productsId = value; return this; } public String getRecipeUrl() { return recipeUrl; } public ProductsRecipes setRecipeUrl(String value) { this.recipeUrl = value; return this; } } public static class Tenants { @DataMember(Order=1) @Required() public Long id = null; @DataMember(Order=2) @Required() @References(Zones.class) public Long mainZonesId = null; @DataMember(Order=3) public Boolean isPublic = null; public Long getId() { return id; } public Tenants setId(Long value) { this.id = value; return this; } public Long getMainZonesId() { return mainZonesId; } public Tenants setMainZonesId(Long value) { this.mainZonesId = value; return this; } public Boolean getIsPublic() { return isPublic; } public Tenants setIsPublic(Boolean value) { this.isPublic = value; return this; } } public static class Varieties { @DataMember(Order=1) @Required() public Long id = null; @DataMember(Order=2) @Required() @References(Tenants.class) public Long tenantsId = null; @DataMember(Order=3) @Required() @References(Zones.class) public Long zonesId = null; @DataMember(Order=4) @Required() @References(Crops.class) public Long cropsId = null; @DataMember(Order=5) @Required() public String name = null; @DataMember(Order=6) public String about = null; @DataMember(Order=7) public Integer heightsCm = null; @DataMember(Order=8) @Required() public Boolean needSupport = null; @DataMember(Order=9) @Required() public Boolean needStakes = null; @DataMember(Order=10) @Required() public Boolean needTrellis = null; public Long getId() { return id; } public Varieties setId(Long value) { this.id = value; return this; } public Long getTenantsId() { return tenantsId; } public Varieties setTenantsId(Long value) { this.tenantsId = value; return this; } public Long getZonesId() { return zonesId; } public Varieties setZonesId(Long value) { this.zonesId = value; return this; } public Long getCropsId() { return cropsId; } public Varieties setCropsId(Long value) { this.cropsId = value; return this; } public String getName() { return name; } public Varieties setName(String value) { this.name = value; return this; } public String getAbout() { return about; } public Varieties setAbout(String value) { this.about = value; return this; } public Integer getHeightsCm() { return heightsCm; } public Varieties setHeightsCm(Integer value) { this.heightsCm = value; return this; } public Boolean isNeedSupport() { return needSupport; } public Varieties setNeedSupport(Boolean value) { this.needSupport = value; return this; } public Boolean isNeedStakes() { return needStakes; } public Varieties setNeedStakes(Boolean value) { this.needStakes = value; return this; } public Boolean isNeedTrellis() { return needTrellis; } public Varieties setNeedTrellis(Boolean value) { this.needTrellis = value; return this; } } public static class Zones { @DataMember(Order=1) @Required() public Long id = null; @DataMember(Order=2) @Required() @References(Tenants.class) public Long tenantsId = null; @DataMember(Order=3) @Required() public String name = null; @DataMember(Order=4) @Required() public Boolean isMain = null; @DataMember(Order=5) @Required() public Boolean isDefault = null; public Long getId() { return id; } public Zones setId(Long value) { this.id = value; return this; } public Long getTenantsId() { return tenantsId; } public Zones setTenantsId(Long value) { this.tenantsId = value; return this; } public String getName() { return name; } public Zones setName(String value) { this.name = value; return this; } public Boolean getIsMain() { return isMain; } public Zones setIsMain(Boolean value) { this.isMain = value; return this; } public Boolean getIsDefault() { return isDefault; } public Zones setIsDefault(Boolean value) { this.isDefault = value; return this; } } public static class Crops { @DataMember(Order=1) @Required() public Long id = null; @DataMember(Order=2) @Required() @References(Tenants.class) public Long tenantsId = null; @DataMember(Order=3) @Required() @References(Zones.class) public Long zonesId = null; @DataMember(Order=4) @Required() public String name = null; @DataMember(Order=5) @Required() public String latinName = null; @DataMember(Order=6) @Required() public String soldDescription = null; public Long getId() { return id; } public Crops setId(Long value) { this.id = value; return this; } public Long getTenantsId() { return tenantsId; } public Crops setTenantsId(Long value) { this.tenantsId = value; return this; } public Long getZonesId() { return zonesId; } public Crops setZonesId(Long value) { this.zonesId = value; return this; } public String getName() { return name; } public Crops setName(String value) { this.name = value; return this; } public String getLatinName() { return latinName; } public Crops setLatinName(String value) { this.latinName = value; return this; } public String getSoldDescription() { return soldDescription; } public Crops setSoldDescription(String value) { this.soldDescription = value; return this; } } public static class Products { @DataMember(Order=1) @Required() public Long id = null; @DataMember(Order=2) @Required() @References(Tenants.class) public Long tenantsId = null; @DataMember(Order=3) @Required() @References(Zones.class) public Long zonesId = null; @DataMember(Order=4) @Required() @References(Varieties.class) public Long varietiesId = null; @DataMember(Order=5) @Required() public String description = null; public Long getId() { return id; } public Products setId(Long value) { this.id = value; return this; } public Long getTenantsId() { return tenantsId; } public Products setTenantsId(Long value) { this.tenantsId = value; return this; } public Long getZonesId() { return zonesId; } public Products setZonesId(Long value) { this.zonesId = value; return this; } public Long getVarietiesId() { return varietiesId; } public Products setVarietiesId(Long value) { this.varietiesId = value; return this; } public String getDescription() { return description; } public Products setDescription(String value) { this.description = value; return this; } } }