/* Options: Date: 2026-04-26 03:40:26 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: CreateEquipmentRequest.* //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="/equipment", Verbs="POST") public static class CreateEquipmentRequest implements IReturn { public String name = null; public String imageUrl = null; public String description = null; public String unit = null; public Integer materialTypeId = null; public String getName() { return name; } public CreateEquipmentRequest setName(String value) { this.name = value; return this; } public String getImageUrl() { return imageUrl; } public CreateEquipmentRequest setImageUrl(String value) { this.imageUrl = value; return this; } public String getDescription() { return description; } public CreateEquipmentRequest setDescription(String value) { this.description = value; return this; } public String getUnit() { return unit; } public CreateEquipmentRequest setUnit(String value) { this.unit = value; return this; } public Integer getMaterialTypeId() { return materialTypeId; } public CreateEquipmentRequest setMaterialTypeId(Integer value) { this.materialTypeId = value; return this; } private static Object responseType = Equipment.class; public Object getResponseType() { return responseType; } } 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; } } }