Trendsic Platform Service

<back to all web services

ChatMemberRequest

Requires Authentication
Requires any of the roles:Agent, Administrator, Agent, Administrator
The following routes are available for this service:
DELETE,OPTIONS/v1/ChatMember/{ChatMemberId}
PUT,OPTIONS/v1/ChatMember/{ChatMemberId}/Archive
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class ChatMemberRequest
    {
        public UUID ChatMemberId = null;
        
        public UUID getChatMemberId() { return ChatMemberId; }
        public ChatMemberRequest setChatMemberId(UUID value) { this.ChatMemberId = value; return this; }
    }

    public static class ChatMemberResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<ChatMember> ChatMember = new ArrayList<ChatMember>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public ChatMemberResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<ChatMember> getChatMember() { return ChatMember; }
        public ChatMemberResponse setChatMember(ArrayList<ChatMember> value) { this.ChatMember = value; return this; }
    }

    public static class ChatMember
    {
        public UUID ChatMemberId = null;
        public UUID ChatId = null;
        public UUID UserId = null;
        public Boolean IsActive = null;
        public Boolean IsArchived = null;
        public UUID LastChatMessageId = null;
        public String ChatMemberName = null;
        
        public UUID getChatMemberId() { return ChatMemberId; }
        public ChatMember setChatMemberId(UUID value) { this.ChatMemberId = value; return this; }
        public UUID getChatId() { return ChatId; }
        public ChatMember setChatId(UUID value) { this.ChatId = value; return this; }
        public UUID getUserId() { return UserId; }
        public ChatMember setUserId(UUID value) { this.UserId = value; return this; }
        public Boolean getIsActive() { return IsActive; }
        public ChatMember setIsActive(Boolean value) { this.IsActive = value; return this; }
        public Boolean getIsArchived() { return IsArchived; }
        public ChatMember setIsArchived(Boolean value) { this.IsArchived = value; return this; }
        public UUID getLastChatMessageId() { return LastChatMessageId; }
        public ChatMember setLastChatMessageId(UUID value) { this.LastChatMessageId = value; return this; }
        public String getChatMemberName() { return ChatMemberName; }
        public ChatMember setChatMemberName(String value) { this.ChatMemberName = value; return this; }
    }

}

Java ChatMemberRequest DTOs

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

HTTP + XML

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

PUT /v1/ChatMember/{ChatMemberId} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<ChatMemberRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <ChatMemberId>00000000-0000-0000-0000-000000000000</ChatMemberId>
</ChatMemberRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ChatMemberResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <ChatMember>
    <ChatMember>
      <ChatId>00000000-0000-0000-0000-000000000000</ChatId>
      <ChatMemberId>00000000-0000-0000-0000-000000000000</ChatMemberId>
      <ChatMemberName>String</ChatMemberName>
      <IsActive>false</IsActive>
      <IsArchived>false</IsArchived>
      <LastChatMessageId>00000000-0000-0000-0000-000000000000</LastChatMessageId>
      <UserId>00000000-0000-0000-0000-000000000000</UserId>
    </ChatMember>
  </ChatMember>
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
</ChatMemberResponse>