Search in sources :

Example 11 with CommunicationIdentifierModel

use of com.azure.android.communication.chat.implementation.models.CommunicationIdentifierModel in project azure-sdk-for-android by Azure.

the class ChatImplClientTestBase method generateParticipant.

private static ChatParticipant generateParticipant(String id, String displayName) {
    ChatParticipant chatParticipant = new ChatParticipant();
    chatParticipant.setCommunicationIdentifier(new CommunicationIdentifierModel().setCommunicationUser(new CommunicationUserIdentifierModel().setId(id)));
    chatParticipant.setDisplayName(displayName);
    return chatParticipant;
}
Also used : CommunicationUserIdentifierModel(com.azure.android.communication.chat.implementation.models.CommunicationUserIdentifierModel) ChatParticipant(com.azure.android.communication.chat.implementation.models.ChatParticipant) CommunicationIdentifierModel(com.azure.android.communication.chat.implementation.models.CommunicationIdentifierModel)

Aggregations

CommunicationIdentifierModel (com.azure.android.communication.chat.implementation.models.CommunicationIdentifierModel)11 ParameterizedTest (org.junit.jupiter.params.ParameterizedTest)10 Test (org.junit.jupiter.api.Test)8 CommunicationUserIdentifierModel (com.azure.android.communication.chat.implementation.models.CommunicationUserIdentifierModel)4 MicrosoftTeamsUserIdentifierModel (com.azure.android.communication.chat.implementation.models.MicrosoftTeamsUserIdentifierModel)3 PhoneNumberIdentifierModel (com.azure.android.communication.chat.implementation.models.PhoneNumberIdentifierModel)3 CommunicationIdentifier (com.azure.android.communication.common.CommunicationIdentifier)3 MicrosoftTeamsUserIdentifier (com.azure.android.communication.common.MicrosoftTeamsUserIdentifier)2 ValueSource (org.junit.jupiter.params.provider.ValueSource)2 ChatParticipant (com.azure.android.communication.chat.implementation.models.ChatParticipant)1 CommunicationUserIdentifier (com.azure.android.communication.common.CommunicationUserIdentifier)1 PhoneNumberIdentifier (com.azure.android.communication.common.PhoneNumberIdentifier)1 UnknownIdentifier (com.azure.android.communication.common.UnknownIdentifier)1