public class Transaction { // The id of the transaction @Key("@id") public int id; // Whether this transaction is undoable or not. @Key("undoable") public int undoable; @Override public String toString() { return MoreObjects.toStringHelper(this).add("id", id).add("undoable", undoable).toString(); } }
/** A collection of notes that exist on a tasks/taskseries */ public class Notes { @Key("note") public List<String> notes; @Override public String toString() { return MoreObjects.toStringHelper(this).add("notes", notes).toString(); } }
public class ListInfo { @Key("@id") public int id; @Key("@name") public String name; @Key("@deleted") public int deleted; @Key("@locked") public int locked; @Key("@archived") public int archived; @Key("@position") public int position; @Key("@smart") public int smart; @Key("@sort_order") public int sort_order;
@Key("auth") public Auth auth;
public static class Dataset { @Key private Map<String, String> labels; public Map<String, String> getLabels() { return this.labels; } public Dataset addLabel(String key, String value) { if (this.labels == null) { this.labels = new HashMap<>(); } this.labels.put(key, value); return this; } }
public static class Table { @Key private Map<String, String> labels; public Map<String, String> getLabels() { return this.labels; } public Table addLabel(String key, String value) { if (this.labels == null) { this.labels = new HashMap<>(); } this.labels.put(key, value); return this; } }
/** * Generic URL with a token parameter that can be used to extract the AuthSub single-use token * from the AuthSubRequest response. */ public static class ResponseUrl extends GenericUrl { @Key public String token; public ResponseUrl(String url) { super(url); } }
public static class TestClass { public TestClass() { } @Key("foo") public int foo; }
/** Defines a resource in a service definition. */ public static final class ServiceResource { /** Map from method name to method definition. */ @Key public Map<String, ServiceMethod> methods; }
/** Defines a parameter to a service method. */ public static final class ServiceParameter { /** Whether the parameter is required. */ @Key public boolean required; }
/** * Key/value data to parse a success response for an AuthSubSessionToken request. */ public static final class SessionTokenResponse { @Key("Token") public String sessionToken; }