| GET,POST,OPTIONS | /v1/worker/messages |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class WorkerMessagesRequest
{
open var CrewID:Int? = null
open var Body:String? = null
open var IsAlert:Boolean? = null
}
open class WorkerMessagesResponse
{
open var ResponseStatus:ResponseStatus? = null
open var Crews:ArrayList<WorkerCrew> = ArrayList<WorkerCrew>()
open var Messages:ArrayList<WorkerCrewMessage> = ArrayList<WorkerCrewMessage>()
open var Sent:Boolean? = null
}
open class WorkerCrew
{
open var CrewID:Int? = null
open var CrewName:String? = null
open var IsManager:Boolean? = null
}
open class WorkerCrewMessage
{
open var CrewMessageID:Int? = null
open var CrewID:Int? = null
open var CrewName:String? = null
open var SenderContactID:Int? = null
open var SenderName:String? = null
open var Body:String? = null
open var IsAlert:Boolean? = null
open var CreatedAtLabel:String? = null
open var Mine:Boolean? = null
}
Kotlin WorkerMessagesRequest 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 /v1/worker/messages HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"CrewID":0,"Body":"String","IsAlert":false}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Crews":[{"CrewID":0,"CrewName":"String","IsManager":false}],"Messages":[{"CrewMessageID":0,"CrewID":0,"CrewName":"String","SenderContactID":0,"SenderName":"String","Body":"String","IsAlert":false,"CreatedAtLabel":"String","Mine":false}],"Sent":false}