import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class UsersBoxesAutoQueryEdit extends UsersBoxes implements IUpdateDb<UsersBoxes>
{
}
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 UsersBoxesAutoQueryEdit DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /jsonl/reply/UsersBoxesAutoQueryEdit HTTP/1.1
Host: api-stage.smartfarmertech.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"id":0,"appUserId":0,"authAppUserId":0,"deploymentDate":"\/Date(-62135596800000-0000)\/","numberBoxes":0,"recipientType":"String","foodGardensId":0,"otherDescription":"String","publicAccessGuid":"00000000000000000000000000000000"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"id":0,"appUserId":0,"authAppUserId":0,"deploymentDate":"\/Date(-62135596800000-0000)\/","numberBoxes":0,"recipientType":"String","foodGardensId":0,"otherDescription":"String","publicAccessGuid":"00000000000000000000000000000000"}