import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class GetJsonPicklistItems extends JsonDto
{
public String TemplateGuid = null;
public String Guid = null;
public HashMap<String,String> Answers = null;
public String getTemplateGuid() { return TemplateGuid; }
public GetJsonPicklistItems setTemplateGuid(String value) { this.TemplateGuid = value; return this; }
public String getGuid() { return Guid; }
public GetJsonPicklistItems setGuid(String value) { this.Guid = value; return this; }
public HashMap<String,String> getAnswers() { return Answers; }
public GetJsonPicklistItems setAnswers(HashMap<String,String> value) { this.Answers = value; return this; }
}
public static class JsonDto
{
}
public static class JsonPicklistItemsResponse extends JsonDto
{
public String Guid = null;
public ArrayList<JsonPicklistItem> Items = null;
public String getGuid() { return Guid; }
public JsonPicklistItemsResponse setGuid(String value) { this.Guid = value; return this; }
public ArrayList<JsonPicklistItem> getItems() { return Items; }
public JsonPicklistItemsResponse setItems(ArrayList<JsonPicklistItem> value) { this.Items = value; return this; }
}
public static class JsonPicklistItem
{
public String Key = null;
public String Value = null;
public String getKey() { return Key; }
public JsonPicklistItem setKey(String value) { this.Key = value; return this; }
public String getValue() { return Value; }
public JsonPicklistItem setValue(String value) { this.Value = value; return this; }
}
}
Java GetJsonPicklistItems DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /csv/reply/GetJsonPicklistItems HTTP/1.1
Host: buildmax.org
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"TemplateGuid":"String","Guid":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{Unable to show example output for type 'JsonPicklistItemsResponse' using the custom 'csv' filter}No parameterless constructor defined for this object.