/* Options: Date: 2026-05-09 19:47:01 Version: 6.110 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://chienbinhdevias-admin-api-sandbox.adnx.vn //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: CreateOrUpdatePostRequest.* //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="/posts", Verbs="POST") public static class CreateOrUpdatePostRequest implements IReturn> { public Integer id = null; public String title = null; public String slug = null; public String description = null; public String body = null; public String imageUrl = null; public Integer categoryId = null; public Boolean isPublished = null; public Date publishedDate = null; public Integer getId() { return id; } public CreateOrUpdatePostRequest setId(Integer value) { this.id = value; return this; } public String getTitle() { return title; } public CreateOrUpdatePostRequest setTitle(String value) { this.title = value; return this; } public String getSlug() { return slug; } public CreateOrUpdatePostRequest setSlug(String value) { this.slug = value; return this; } public String getDescription() { return description; } public CreateOrUpdatePostRequest setDescription(String value) { this.description = value; return this; } public String getBody() { return body; } public CreateOrUpdatePostRequest setBody(String value) { this.body = value; return this; } public String getImageUrl() { return imageUrl; } public CreateOrUpdatePostRequest setImageUrl(String value) { this.imageUrl = value; return this; } public Integer getCategoryId() { return categoryId; } public CreateOrUpdatePostRequest setCategoryId(Integer value) { this.categoryId = value; return this; } public Boolean getIsPublished() { return isPublished; } public CreateOrUpdatePostRequest setIsPublished(Boolean value) { this.isPublished = value; return this; } public Date getPublishedDate() { return publishedDate; } public CreateOrUpdatePostRequest setPublishedDate(Date value) { this.publishedDate = value; return this; } private static Object responseType = new TypeToken>(){}.getType(); public Object getResponseType() { return responseType; } } public static class BaseResponse implements IResponseRequest { public Integer code = null; public String message = null; public Post data = null; public Integer getCode() { return code; } public BaseResponse setCode(Integer value) { this.code = value; return this; } public String getMessage() { return message; } public BaseResponse setMessage(String value) { this.message = value; return this; } public Post getData() { return data; } public BaseResponse setData(Post value) { this.data = value; return this; } } }