/* Options: Date: 2026-04-26 03:41:42 Version: 6.110 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://etc-api.vsmlab.vn //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: SearchEquipmentRequest.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.*,com.google.gson.annotations.*,com.google.gson.reflect.* */ import java.math.*; import java.util.*; import net.servicestack.client.*; import com.google.gson.annotations.*; import com.google.gson.reflect.*; public class dtos { @Route(Path="/equipment/search", Verbs="GET") public static class SearchEquipmentRequest extends PagingRequest implements IReturn> { public String name = null; public Integer materialTypeId = null; public Integer status = null; public Boolean mineOnly = null; public String getName() { return name; } public SearchEquipmentRequest setName(String value) { this.name = value; return this; } public Integer getMaterialTypeId() { return materialTypeId; } public SearchEquipmentRequest setMaterialTypeId(Integer value) { this.materialTypeId = value; return this; } public Integer getStatus() { return status; } public SearchEquipmentRequest setStatus(Integer value) { this.status = value; return this; } public Boolean isMineOnly() { return mineOnly; } public SearchEquipmentRequest setMineOnly(Boolean value) { this.mineOnly = value; return this; } private static Object responseType = new TypeToken>(){}.getType(); public Object getResponseType() { return responseType; } } public static class PageResponse implements IResponseRequest { public Integer code = null; public String message = null; public ArrayList data = null; public Pagination pagination = null; public Integer getCode() { return code; } public PageResponse setCode(Integer value) { this.code = value; return this; } public String getMessage() { return message; } public PageResponse setMessage(String value) { this.message = value; return this; } public ArrayList getData() { return data; } public PageResponse setData(ArrayList value) { this.data = value; return this; } public Pagination getPagination() { return pagination; } public PageResponse setPagination(Pagination value) { this.pagination = value; return this; } } public static class PagingRequest { public Integer page = null; public Integer limit = null; public Integer getPage() { return page; } public PagingRequest setPage(Integer value) { this.page = value; return this; } public Integer getLimit() { return limit; } public PagingRequest setLimit(Integer value) { this.limit = value; return this; } } public static class Equipment { public Integer id = null; @Required() @StringLength(500) public String name = null; @StringLength(1000) public String imageUrl = null; public String description = null; @StringLength(50) public String unit = null; public Integer materialTypeId = null; public Integer status = null; public Boolean isDeleted = null; public Date approvedAt = null; public Integer approvedBy = null; public Date createdAt = null; public Integer createdBy = null; public Date updatedAt = null; public Integer updatedBy = null; @Ignore() public String materialTypeName = null; @Ignore() public String createdByName = null; @Ignore() public String approvedByName = null; public Integer getId() { return id; } public Equipment setId(Integer value) { this.id = value; return this; } public String getName() { return name; } public Equipment setName(String value) { this.name = value; return this; } public String getImageUrl() { return imageUrl; } public Equipment setImageUrl(String value) { this.imageUrl = value; return this; } public String getDescription() { return description; } public Equipment setDescription(String value) { this.description = value; return this; } public String getUnit() { return unit; } public Equipment setUnit(String value) { this.unit = value; return this; } public Integer getMaterialTypeId() { return materialTypeId; } public Equipment setMaterialTypeId(Integer value) { this.materialTypeId = value; return this; } public Integer getStatus() { return status; } public Equipment setStatus(Integer value) { this.status = value; return this; } public Boolean getIsDeleted() { return isDeleted; } public Equipment setIsDeleted(Boolean value) { this.isDeleted = value; return this; } public Date getApprovedAt() { return approvedAt; } public Equipment setApprovedAt(Date value) { this.approvedAt = value; return this; } public Integer getApprovedBy() { return approvedBy; } public Equipment setApprovedBy(Integer value) { this.approvedBy = value; return this; } public Date getCreatedAt() { return createdAt; } public Equipment setCreatedAt(Date value) { this.createdAt = value; return this; } public Integer getCreatedBy() { return createdBy; } public Equipment setCreatedBy(Integer value) { this.createdBy = value; return this; } public Date getUpdatedAt() { return updatedAt; } public Equipment setUpdatedAt(Date value) { this.updatedAt = value; return this; } public Integer getUpdatedBy() { return updatedBy; } public Equipment setUpdatedBy(Integer value) { this.updatedBy = value; return this; } public String getMaterialTypeName() { return materialTypeName; } public Equipment setMaterialTypeName(String value) { this.materialTypeName = value; return this; } public String getCreatedByName() { return createdByName; } public Equipment setCreatedByName(String value) { this.createdByName = value; return this; } public String getApprovedByName() { return approvedByName; } public Equipment setApprovedByName(String value) { this.approvedByName = value; return this; } } }