use of com.azure.android.communication.common.CommunicationIdentifier in project azure-sdk-for-android by Azure.
the class ChatThreadCreatedEvent method setCreatedBy.
/**
* Sets the createdBy of the thread.
*/
ChatThreadCreatedEvent setCreatedBy() {
this.createdBy = new ChatParticipant();
try {
JSONObject createdByJsonObject = new JSONObject(this.createdByJsonString);
CommunicationIdentifier createdByCommunicationIdentifier = NotificationUtils.getCommunicationIdentifier(createdByJsonObject.getString("participantId"));
this.createdBy.setCommunicationIdentifier(createdByCommunicationIdentifier).setDisplayName(createdByJsonObject.getString("displayName"));
} catch (JSONException e) {
return this;
}
return this;
}
Aggregations