Compartir a través de


MicrosoftTeamsUserIdentifierModel Class

  • java.lang.Object
    • com.azure.messaging.eventgrid.systemevents.MicrosoftTeamsUserIdentifierModel

Implements

public final class MicrosoftTeamsUserIdentifierModel
implements JsonSerializable<MicrosoftTeamsUserIdentifierModel>

A Microsoft Teams user.

Method Summary

Modifier and Type Method and Description
static MicrosoftTeamsUserIdentifierModel fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftTeamsUserIdentifierModel from the JsonReader.

CommunicationCloudEnvironmentModel getCloud()

Get the cloud property: The cloud that the Microsoft Teams user belongs to.

String getUserId()

Get the userId property: The Id of the Microsoft Teams user.

Boolean isAnonymous()

Get the isAnonymous property: True if the Microsoft Teams user is anonymous.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static MicrosoftTeamsUserIdentifierModel fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftTeamsUserIdentifierModel from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftTeamsUserIdentifierModel if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getCloud

public CommunicationCloudEnvironmentModel getCloud()

Get the cloud property: The cloud that the Microsoft Teams user belongs to. By default 'public' if missing.

Returns:

the cloud value.

getUserId

public String getUserId()

Get the userId property: The Id of the Microsoft Teams user. If not anonymous, this is the AAD object Id of the user.

Returns:

the userId value.

isAnonymous

public Boolean isAnonymous()

Get the isAnonymous property: True if the Microsoft Teams user is anonymous. By default false if missing.

Returns:

the isAnonymous value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to