import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class UsersBoxesAutoQueryAdd implements ICreateDb<UsersBoxes>
{
@DataMember(Order=2)
public Long appUserId = null;
@DataMember(Order=3)
public Long authAppUserId = null;
@DataMember(Order=4)
public Date deploymentDate = null;
@DataMember(Order=5)
public Integer numberBoxes = null;
@DataMember(Order=6)
public String recipientType = null;
@DataMember(Order=7)
public Long foodGardensId = null;
@DataMember(Order=8)
public String otherDescription = null;
@DataMember(Order=10)
public ResponseStatus responseStatus = null;
public Long getAppUserId() { return appUserId; }
public UsersBoxesAutoQueryAdd setAppUserId(Long value) { this.appUserId = value; return this; }
public Long getAuthAppUserId() { return authAppUserId; }
public UsersBoxesAutoQueryAdd setAuthAppUserId(Long value) { this.authAppUserId = value; return this; }
public Date getDeploymentDate() { return deploymentDate; }
public UsersBoxesAutoQueryAdd setDeploymentDate(Date value) { this.deploymentDate = value; return this; }
public Integer getNumberBoxes() { return numberBoxes; }
public UsersBoxesAutoQueryAdd setNumberBoxes(Integer value) { this.numberBoxes = value; return this; }
public String getRecipientType() { return recipientType; }
public UsersBoxesAutoQueryAdd setRecipientType(String value) { this.recipientType = value; return this; }
public Long getFoodGardensId() { return foodGardensId; }
public UsersBoxesAutoQueryAdd setFoodGardensId(Long value) { this.foodGardensId = value; return this; }
public String getOtherDescription() { return otherDescription; }
public UsersBoxesAutoQueryAdd setOtherDescription(String value) { this.otherDescription = value; return this; }
public ResponseStatus getResponseStatus() { return responseStatus; }
public UsersBoxesAutoQueryAdd setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
}
public static class UsersBoxes
{
@DataMember(Order=1)
@Required()
public Long id = null;
@DataMember(Order=2)
@Required()
@References(AppUser.class)
public Long appUserId = null;
@DataMember(Order=3)
@Required()
@References(AppUser.class)
public Long authAppUserId = null;
@DataMember(Order=4)
@Required()
public Date deploymentDate = null;
@DataMember(Order=5)
@Required()
public Integer numberBoxes = null;
@DataMember(Order=6)
@Required()
public String recipientType = null;
@DataMember(Order=7)
public Long foodGardensId = null;
@DataMember(Order=8)
public String otherDescription = null;
@DataMember(Order=9)
public UUID publicAccessGuid = null;
public Long getId() { return id; }
public UsersBoxes setId(Long value) { this.id = value; return this; }
public Long getAppUserId() { return appUserId; }
public UsersBoxes setAppUserId(Long value) { this.appUserId = value; return this; }
public Long getAuthAppUserId() { return authAppUserId; }
public UsersBoxes setAuthAppUserId(Long value) { this.authAppUserId = value; return this; }
public Date getDeploymentDate() { return deploymentDate; }
public UsersBoxes setDeploymentDate(Date value) { this.deploymentDate = value; return this; }
public Integer getNumberBoxes() { return numberBoxes; }
public UsersBoxes setNumberBoxes(Integer value) { this.numberBoxes = value; return this; }
public String getRecipientType() { return recipientType; }
public UsersBoxes setRecipientType(String value) { this.recipientType = value; return this; }
public Long getFoodGardensId() { return foodGardensId; }
public UsersBoxes setFoodGardensId(Long value) { this.foodGardensId = value; return this; }
public String getOtherDescription() { return otherDescription; }
public UsersBoxes setOtherDescription(String value) { this.otherDescription = value; return this; }
public UUID getPublicAccessGuid() { return publicAccessGuid; }
public UsersBoxes setPublicAccessGuid(UUID value) { this.publicAccessGuid = value; return this; }
}
}
Java UsersBoxesAutoQueryAdd DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /json/reply/UsersBoxesAutoQueryAdd HTTP/1.1
Host: api-stage.smartfarmertech.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"appUserId":0,"authAppUserId":0,"deploymentDate":"\/Date(-62135596800000-0000)\/","numberBoxes":0,"recipientType":"String","foodGardensId":0,"otherDescription":"String","responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"id":0,"appUserId":0,"authAppUserId":0,"deploymentDate":"\/Date(-62135596800000-0000)\/","numberBoxes":0,"recipientType":"String","foodGardensId":0,"otherDescription":"String","publicAccessGuid":"00000000000000000000000000000000"}