/* Options: Date: 2026-03-13 22:10:17 Version: 8.60 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://milliet.io //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: url_shortener.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.* */ import java.math.*; import java.util.*; import java.io.InputStream; import net.servicestack.client.*; public class dtos { @Route(Path="/url_shortener", Verbs="GET,POST") public static class url_shortener implements IReturn { /** * operation type */ @ApiMember(DataType="string", Description="operation type", IsRequired=true, Name="operation", ParameterType="body") public operationType operation = null; /** * url */ @ApiMember(DataType="string", Description="url", IsRequired=true, Name="url", ParameterType="body") public String url = null; /** * days to expire */ @ApiMember(DataType="string", Description="days to expire", Name="days", ParameterType="body") public Double days = null; public operationType getOperation() { return operation; } public url_shortener setOperation(operationType value) { this.operation = value; return this; } public String getUrl() { return url; } public url_shortener setUrl(String value) { this.url = value; return this; } public Double getDays() { return days; } public url_shortener setDays(Double value) { this.days = value; return this; } private static Object responseType = url_shortenerResponse.class; public Object getResponseType() { return responseType; } } public static class url_shortenerResponse { public String tiny_url = null; public String original_url = null; public Date created_date = null; public Date expiry_date = null; public Integer collision = null; public String getTinyUrl() { return tiny_url; } public url_shortenerResponse setTinyUrl(String value) { this.tiny_url = value; return this; } public String getOriginalUrl() { return original_url; } public url_shortenerResponse setOriginalUrl(String value) { this.original_url = value; return this; } public Date getCreatedDate() { return created_date; } public url_shortenerResponse setCreatedDate(Date value) { this.created_date = value; return this; } public Date getExpiryDate() { return expiry_date; } public url_shortenerResponse setExpiryDate(Date value) { this.expiry_date = value; return this; } public Integer getCollision() { return collision; } public url_shortenerResponse setCollision(Integer value) { this.collision = value; return this; } } public static enum operationType { NoOperation, ShortenUrl, GetOriginalUrl, RedirectUrl; } }