Freigeben über


MediaStreamingSubscription Class

  • java.lang.Object
    • com.azure.communication.callautomation.models.MediaStreamingSubscription

Implements

public final class MediaStreamingSubscription
implements JsonSerializable<MediaStreamingSubscription>

Media streaming Subscription Object.

Method Summary

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

Reads an instance of MediaStreamingSubscriptionInternal from the JsonReader.

String getId()

Get the id property: Gets or Sets subscription Id.

MediaStreamingSubscriptionState getState()

Get the state property: Gets or Sets media streaming subscription state.

List<MediaStreamingContentType> getSubscribedContentTypes()

Get the subscribedContentTypes property: Gets or Sets the subscribed media streaming content types.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static MediaStreamingSubscription fromJson(JsonReader jsonReader)

Reads an instance of MediaStreamingSubscriptionInternal from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the MediaStreamingSubscriptionInternal.

getId

public String getId()

Get the id property: Gets or Sets subscription Id.

Returns:

the id value.

getState

public MediaStreamingSubscriptionState getState()

Get the state property: Gets or Sets media streaming subscription state.

Returns:

the state value.

getSubscribedContentTypes

public List<MediaStreamingContentType> getSubscribedContentTypes()

Get the subscribedContentTypes property: Gets or Sets the subscribed media streaming content types.

Returns:

the subscribedContentTypes value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to