CreateChatThreadResult Class
- java.
lang. Object - com.
azure. communication. chat. models. CreateChatThreadResult
- com.
Implements
public final class CreateChatThreadResult
implements JsonSerializable<CreateChatThreadResult>
The CreateChatThreadResult model.
Constructor Summary
| Constructor | Description |
|---|---|
| CreateChatThreadResult(ChatThreadProperties chatThreadProperties, List<ChatError> invalidParticipants) |
Constructs a new instance of Create |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Create |
fromJson(JsonReader jsonReader)
Reads an instance of Add |
|
Chat |
getChatThread()
Gets the chat |
|
List<Chat |
getInvalidParticipants()
Gets the invalid |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
CreateChatThreadResult
public CreateChatThreadResult(ChatThreadProperties chatThreadProperties, List<ChatError> invalidParticipants)
Constructs a new instance of CreateChatThreadResult
Parameters:
Method Details
fromJson
public static CreateChatThreadResult fromJson(JsonReader jsonReader)
Reads an instance of AddChatParticipantsResult from the JsonReader.
Parameters:
Returns:
Throws:
getChatThread
public ChatThreadProperties getChatThread()
Gets the chatThread property: The chatThread property.
Returns:
getInvalidParticipants
public List<ChatError> getInvalidParticipants()
Gets the invalidParticipants property: The participants that failed to be added to the chat thread. The 'target' property of each ChatError will reference the failed participant.
Returns: