Trendsic Platform Service

<back to all web services

UnreadCommentsRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
GET/v1/UnreadComments
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class UnreadCommentsRequest
    {
        
    }

    public static class UnreadCommentsResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<UnreadComment> UnreadComments = new ArrayList<UnreadComment>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public UnreadCommentsResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<UnreadComment> getUnreadComments() { return UnreadComments; }
        public UnreadCommentsResponse setUnreadComments(ArrayList<UnreadComment> value) { this.UnreadComments = value; return this; }
    }

    public static class UnreadComment
    {
        public UUID ConversationHeaderId = null;
        public String TableName = null;
        public String FieldName = null;
        public Integer RecordId = null;
        public String Comment = null;
        public Date DateCreated = null;
        public String AgentName = null;
        public Integer AgentID = null;
        
        public UUID getConversationHeaderId() { return ConversationHeaderId; }
        public UnreadComment setConversationHeaderId(UUID value) { this.ConversationHeaderId = value; return this; }
        public String getTableName() { return TableName; }
        public UnreadComment setTableName(String value) { this.TableName = value; return this; }
        public String getFieldName() { return FieldName; }
        public UnreadComment setFieldName(String value) { this.FieldName = value; return this; }
        public Integer getRecordId() { return RecordId; }
        public UnreadComment setRecordId(Integer value) { this.RecordId = value; return this; }
        public String getComment() { return Comment; }
        public UnreadComment setComment(String value) { this.Comment = value; return this; }
        public Date getDateCreated() { return DateCreated; }
        public UnreadComment setDateCreated(Date value) { this.DateCreated = value; return this; }
        public String getAgentName() { return AgentName; }
        public UnreadComment setAgentName(String value) { this.AgentName = value; return this; }
        public Integer getAgentID() { return AgentID; }
        public UnreadComment setAgentID(Integer value) { this.AgentID = value; return this; }
    }

}

Java UnreadCommentsRequest 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.

GET /v1/UnreadComments HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
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
		}
	},
	UnreadComments: 
	[
		{
			ConversationHeaderId: 00000000000000000000000000000000,
			TableName: String,
			FieldName: String,
			RecordId: 0,
			Comment: String,
			DateCreated: 0001-01-01T00:00:00.0000000+00:00,
			AgentName: String,
			AgentID: 0
		}
	]
}