import Foundation
import ServiceStack
public class UsersBoxesAutoQueryAdd : ICreateDb<UsersBoxes>, Codable
{
// @DataMember(Order=2)
public var appUserId:Int
// @DataMember(Order=3)
public var authAppUserId:Int
// @DataMember(Order=4)
public var deploymentDate:Date
// @DataMember(Order=5)
public var numberBoxes:Int
// @DataMember(Order=6)
public var recipientType:String
// @DataMember(Order=7)
public var foodGardensId:Int?
// @DataMember(Order=8)
public var otherDescription:String
// @DataMember(Order=10)
public var responseStatus:ResponseStatus
required public init(){}
}
public class UsersBoxes : Codable
{
// @DataMember(Order=1)
// @Required()
public var id:Int?
// @DataMember(Order=2)
// @Required()
// @References(typeof(AppUser))
public var appUserId:Int?
// @DataMember(Order=3)
// @Required()
// @References(typeof(AppUser))
public var authAppUserId:Int?
// @DataMember(Order=4)
// @Required()
public var deploymentDate:Date?
// @DataMember(Order=5)
// @Required()
public var numberBoxes:Int?
// @DataMember(Order=6)
// @Required()
public var recipientType:String?
// @DataMember(Order=7)
public var foodGardensId:Int?
// @DataMember(Order=8)
public var otherDescription:String
// @DataMember(Order=9)
public var publicAccessGuid:String
required public init(){}
}
Swift UsersBoxesAutoQueryAdd 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/UsersBoxesAutoQueryAdd HTTP/1.1
Host: api-stage.smartfarmertech.com
Accept: text/jsonl
Content-Type: text/jsonl
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: 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"}