/* Options: Date: 2026-01-22 01:48:19 Version: 6.110 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://pecuario-backend.develsystems.com //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: GetFarms.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.*; import java.util.*; import net.servicestack.client.*; public class dtos { @Route(Path="/api/v1/farms", Verbs="GET") public static class GetFarms implements IReturn, IGet { private static Object responseType = GetFarmsResponse.class; public Object getResponseType() { return responseType; } } public static class GetFarmsResponse extends BaseResponse { public ArrayList farms = null; public ArrayList getFarms() { return farms; } public GetFarmsResponse setFarms(ArrayList value) { this.farms = value; return this; } } public static class Status { public String message = null; public Integer statusCode = null; public String getMessage() { return message; } public Status setMessage(String value) { this.message = value; return this; } public Integer getStatusCode() { return statusCode; } public Status setStatusCode(Integer value) { this.statusCode = value; return this; } } public static class BaseResponse { public Status status = null; public Status getStatus() { return status; } public BaseResponse setStatus(Status value) { this.status = value; return this; } } public static class Farm { public Integer id = null; @References(AppUser.class) public Integer userId = null; @Required() @StringLength(100) public String name = null; @References(Region.class) public Integer regionId = null; @References(MeasurementUnit.class) public Integer measurementUnitId = null; public BigDecimal area = null; public Integer getId() { return id; } public Farm setId(Integer value) { this.id = value; return this; } public Integer getUserId() { return userId; } public Farm setUserId(Integer value) { this.userId = value; return this; } public String getName() { return name; } public Farm setName(String value) { this.name = value; return this; } public Integer getRegionId() { return regionId; } public Farm setRegionId(Integer value) { this.regionId = value; return this; } public Integer getMeasurementUnitId() { return measurementUnitId; } public Farm setMeasurementUnitId(Integer value) { this.measurementUnitId = value; return this; } public BigDecimal getArea() { return area; } public Farm setArea(BigDecimal value) { this.area = value; return this; } } public static class MeasurementUnit { public Integer id = null; @Required() @StringLength(10) public String code = null; @Required() @StringLength(100) public String name = null; public Integer getId() { return id; } public MeasurementUnit setId(Integer value) { this.id = value; return this; } public String getCode() { return code; } public MeasurementUnit setCode(String value) { this.code = value; return this; } public String getName() { return name; } public MeasurementUnit setName(String value) { this.name = value; return this; } } public static class Country { public Integer id = null; @Required() @StringLength(2) public String code = null; @Required() @StringLength(3) public String phoneCode = null; @Required() @StringLength(200) public String name = null; @Required() @StringLength(5) public String currencySymbol = null; @Required() @StringLength(200) public String currencyName = null; @Required() public Integer order = null; public Integer getId() { return id; } public Country setId(Integer value) { this.id = value; return this; } public String getCode() { return code; } public Country setCode(String value) { this.code = value; return this; } public String getPhoneCode() { return phoneCode; } public Country setPhoneCode(String value) { this.phoneCode = value; return this; } public String getName() { return name; } public Country setName(String value) { this.name = value; return this; } public String getCurrencySymbol() { return currencySymbol; } public Country setCurrencySymbol(String value) { this.currencySymbol = value; return this; } public String getCurrencyName() { return currencyName; } public Country setCurrencyName(String value) { this.currencyName = value; return this; } public Integer getOrder() { return order; } public Country setOrder(Integer value) { this.order = value; return this; } } public static class Region { public Integer id = null; @References(Country.class) public Integer countryId = null; @Required() @StringLength(200) public String name = null; public Integer getId() { return id; } public Region setId(Integer value) { this.id = value; return this; } public Integer getCountryId() { return countryId; } public Region setCountryId(Integer value) { this.countryId = value; return this; } public String getName() { return name; } public Region setName(String value) { this.name = value; return this; } } }