Trendsic Platform Service

<back to all web services

LineMessagesRequest

Requires Authentication
Required roles:Administrator, Administrator, AdministratorRequires any of the roles:Agent, Administrator
The following routes are available for this service:
GET,POST,PUT,DELETE,OPTIONS/v1/LineMessages/{Id}
GET,POST,PUT,DELETE,OPTIONS/v1/LineMessages
GET,POST,PUT,DELETE,OPTIONS/v1/LineMessages/Line/{LineId}
GET,POST,PUT,DELETE,OPTIONS/v1/LineMessages/Location/{LocationId}/Customers/{CustomerId}
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class LineMessagesRequest
    {
        public UUID Id = null;
        public UUID LineId = null;
        public ArrayList<LineMessage> LineMessages = new ArrayList<LineMessage>();
        
        public UUID getId() { return Id; }
        public LineMessagesRequest setId(UUID value) { this.Id = value; return this; }
        public UUID getLineId() { return LineId; }
        public LineMessagesRequest setLineId(UUID value) { this.LineId = value; return this; }
        public ArrayList<LineMessage> getLineMessages() { return LineMessages; }
        public LineMessagesRequest setLineMessages(ArrayList<LineMessage> value) { this.LineMessages = value; return this; }
    }

    public static class LineMessage
    {
        public UUID Id = null;
        public UUID LineId = null;
        public String LineName = null;
        public String Message = null;
        public UUID MessageId = null;
        public Integer DisplayOrder = null;
        
        public UUID getId() { return Id; }
        public LineMessage setId(UUID value) { this.Id = value; return this; }
        public UUID getLineId() { return LineId; }
        public LineMessage setLineId(UUID value) { this.LineId = value; return this; }
        public String getLineName() { return LineName; }
        public LineMessage setLineName(String value) { this.LineName = value; return this; }
        public String getMessage() { return Message; }
        public LineMessage setMessage(String value) { this.Message = value; return this; }
        public UUID getMessageId() { return MessageId; }
        public LineMessage setMessageId(UUID value) { this.MessageId = value; return this; }
        public Integer getDisplayOrder() { return DisplayOrder; }
        public LineMessage setDisplayOrder(Integer value) { this.DisplayOrder = value; return this; }
    }

    public static class LineMessagesResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<LineMessage> LineMessages = new ArrayList<LineMessage>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public LineMessagesResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<LineMessage> getLineMessages() { return LineMessages; }
        public LineMessagesResponse setLineMessages(ArrayList<LineMessage> value) { this.LineMessages = value; return this; }
    }

}

Java LineMessagesRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /v1/LineMessages/{Id} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Id: 00000000000000000000000000000000,
	LineId: 00000000000000000000000000000000,
	LineMessages: 
	[
		{
			Id: 00000000000000000000000000000000,
			LineId: 00000000000000000000000000000000,
			LineName: String,
			Message: String,
			MessageId: 00000000000000000000000000000000,
			DisplayOrder: 0
		}
	]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	LineMessages: 
	[
		{
			Id: 00000000000000000000000000000000,
			LineId: 00000000000000000000000000000000,
			LineName: String,
			Message: String,
			MessageId: 00000000000000000000000000000000,
			DisplayOrder: 0
		}
	]
}