Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public final class AcsMicrosoftTeamsAppIdentifier implements JsonSerializable<Ac
private CommunicationCloudEnvironmentModel cloud;

/**
* Creates an instance of MicrosoftTeamsAppIdentifier class.
* Creates an instance of AcsMicrosoftTeamsAppIdentifier class.
*/
public AcsMicrosoftTeamsAppIdentifier() {
}
Expand All @@ -45,7 +45,7 @@ public String getAppId() {
* Set the appId property: The Id of the Microsoft Teams application.
*
* @param appId the appId value to set.
* @return the MicrosoftTeamsAppIdentifier object itself.
* @return the AcsMicrosoftTeamsAppIdentifier object itself.
*/
public AcsMicrosoftTeamsAppIdentifier setAppId(String appId) {
this.appId = appId;
Expand All @@ -67,7 +67,7 @@ public CommunicationCloudEnvironmentModel getCloud() {
* missing.
*
* @param cloud the cloud value to set.
* @return the MicrosoftTeamsAppIdentifier object itself.
* @return the AcsMicrosoftTeamsAppIdentifier object itself.
*/
public AcsMicrosoftTeamsAppIdentifier setCloud(CommunicationCloudEnvironmentModel cloud) {
this.cloud = cloud;
Expand All @@ -86,33 +86,33 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
}

/**
* Reads an instance of MicrosoftTeamsAppIdentifier from the JsonReader.
* Reads an instance of AcsMicrosoftTeamsAppIdentifier from the JsonReader.
*
* @param jsonReader The JsonReader being read.
* @return An instance of MicrosoftTeamsAppIdentifier if the JsonReader was pointing to an instance of it, or null
* if it was pointing to JSON null.
* @return An instance of AcsMicrosoftTeamsAppIdentifier if the JsonReader was pointing to an instance of it, or
* null if it was pointing to JSON null.
* @throws IllegalStateException If the deserialized JSON object was missing any required properties.
* @throws IOException If an error occurs while reading the MicrosoftTeamsAppIdentifier.
* @throws IOException If an error occurs while reading the AcsMicrosoftTeamsAppIdentifier.
*/
public static AcsMicrosoftTeamsAppIdentifier fromJson(JsonReader jsonReader) throws IOException {
return jsonReader.readObject(reader -> {
AcsMicrosoftTeamsAppIdentifier deserializedMicrosoftTeamsAppIdentifier
AcsMicrosoftTeamsAppIdentifier deserializedAcsMicrosoftTeamsAppIdentifier
= new AcsMicrosoftTeamsAppIdentifier();
while (reader.nextToken() != JsonToken.END_OBJECT) {
String fieldName = reader.getFieldName();
reader.nextToken();

if ("appId".equals(fieldName)) {
deserializedMicrosoftTeamsAppIdentifier.appId = reader.getString();
deserializedAcsMicrosoftTeamsAppIdentifier.appId = reader.getString();
} else if ("cloud".equals(fieldName)) {
deserializedMicrosoftTeamsAppIdentifier.cloud
deserializedAcsMicrosoftTeamsAppIdentifier.cloud
= CommunicationCloudEnvironmentModel.fromString(reader.getString());
} else {
reader.skipChildren();
}
}

return deserializedMicrosoftTeamsAppIdentifier;
return deserializedAcsMicrosoftTeamsAppIdentifier;
});
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.messaging.eventgrid.systemevents;

import com.azure.core.annotation.Fluent;
Expand All @@ -21,6 +20,7 @@
@Fluent
public final class AcsRecordingFileStatusUpdatedEventData
implements JsonSerializable<AcsRecordingFileStatusUpdatedEventData> {

/*
* The details of recording storage information
*/
Expand Down Expand Up @@ -64,7 +64,7 @@ public AcsRecordingFileStatusUpdatedEventData() {

/**
* Get the recordingStorageInfo property: The details of recording storage information.
*
*
* @return the recordingStorageInfo value.
*/
public AcsRecordingStorageInfoProperties getRecordingStorageInfo() {
Expand All @@ -73,7 +73,7 @@ public AcsRecordingStorageInfoProperties getRecordingStorageInfo() {

/**
* Set the recordingStorageInfo property: The details of recording storage information.
*
*
* @param recordingStorageInfo the recordingStorageInfo value to set.
* @return the AcsRecordingFileStatusUpdatedEventData object itself.
*/
Expand All @@ -85,7 +85,7 @@ public AcsRecordingStorageInfoProperties getRecordingStorageInfo() {

/**
* Get the recordingStartTime property: The time at which the recording started.
*
*
* @return the recordingStartTime value.
*/
public OffsetDateTime getRecordingStartTime() {
Expand All @@ -94,7 +94,7 @@ public OffsetDateTime getRecordingStartTime() {

/**
* Set the recordingStartTime property: The time at which the recording started.
*
*
* @param recordingStartTime the recordingStartTime value to set.
* @return the AcsRecordingFileStatusUpdatedEventData object itself.
*/
Expand All @@ -105,7 +105,7 @@ public AcsRecordingFileStatusUpdatedEventData setRecordingStartTime(OffsetDateTi

/**
* Get the recordingDuration property: The recording duration.
*
*
* @return the recordingDuration value.
*/
public Duration getRecordingDuration() {
Expand All @@ -117,7 +117,7 @@ public Duration getRecordingDuration() {

/**
* Set the recordingDuration property: The recording duration.
*
*
* @param recordingDuration the recordingDuration value to set.
* @return the AcsRecordingFileStatusUpdatedEventData object itself.
*/
Expand All @@ -132,7 +132,7 @@ public AcsRecordingFileStatusUpdatedEventData setRecordingDuration(Duration reco

/**
* Get the recordingContentType property: The recording content type- AudioVideo, or Audio.
*
*
* @return the recordingContentType value.
*/
public RecordingContentType getRecordingContentType() {
Expand All @@ -141,7 +141,7 @@ public RecordingContentType getRecordingContentType() {

/**
* Set the recordingContentType property: The recording content type- AudioVideo, or Audio.
*
*
* @param recordingContentType the recordingContentType value to set.
* @return the AcsRecordingFileStatusUpdatedEventData object itself.
*/
Expand All @@ -152,7 +152,7 @@ public AcsRecordingFileStatusUpdatedEventData setRecordingContentType(RecordingC

/**
* Get the recordingChannelType property: The recording channel type - Mixed, Unmixed.
*
*
* @return the recordingChannelType value.
*/
public RecordingChannelType getRecordingChannelType() {
Expand All @@ -161,7 +161,7 @@ public RecordingChannelType getRecordingChannelType() {

/**
* Set the recordingChannelType property: The recording channel type - Mixed, Unmixed.
*
*
* @param recordingChannelType the recordingChannelType value to set.
* @return the AcsRecordingFileStatusUpdatedEventData object itself.
*/
Expand All @@ -172,7 +172,7 @@ public AcsRecordingFileStatusUpdatedEventData setRecordingChannelType(RecordingC

/**
* Get the recordingFormatType property: The recording format type - Mp4, Mp3, Wav.
*
*
* @return the recordingFormatType value.
*/
public RecordingFormatType getRecordingFormatType() {
Expand All @@ -181,7 +181,7 @@ public RecordingFormatType getRecordingFormatType() {

/**
* Set the recordingFormatType property: The recording format type - Mp4, Mp3, Wav.
*
*
* @param recordingFormatType the recordingFormatType value to set.
* @return the AcsRecordingFileStatusUpdatedEventData object itself.
*/
Expand All @@ -192,7 +192,7 @@ public AcsRecordingFileStatusUpdatedEventData setRecordingFormatType(RecordingFo

/**
* Get the sessionEndReason property: The reason for ending recording session.
*
*
* @return the sessionEndReason value.
*/
public String getSessionEndReason() {
Expand All @@ -201,7 +201,7 @@ public String getSessionEndReason() {

/**
* Set the sessionEndReason property: The reason for ending recording session.
*
*
* @param sessionEndReason the sessionEndReason value to set.
* @return the AcsRecordingFileStatusUpdatedEventData object itself.
*/
Expand Down Expand Up @@ -234,7 +234,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {

/**
* Reads an instance of AcsRecordingFileStatusUpdatedEventData from the JsonReader.
*
*
* @param jsonReader The JsonReader being read.
* @return An instance of AcsRecordingFileStatusUpdatedEventData if the JsonReader was pointing to an instance of
* it, or null if it was pointing to JSON null.
Expand All @@ -247,7 +247,6 @@ public static AcsRecordingFileStatusUpdatedEventData fromJson(JsonReader jsonRea
while (reader.nextToken() != JsonToken.END_OBJECT) {
String fieldName = reader.getFieldName();
reader.nextToken();

if ("recordingStorageInfo".equals(fieldName)) {
deserializedAcsRecordingFileStatusUpdatedEventData.recordingStorageInfo
= AcsRecordingStorageInfoProperties.fromJson(reader);
Expand All @@ -272,7 +271,6 @@ public static AcsRecordingFileStatusUpdatedEventData fromJson(JsonReader jsonRea
reader.skipChildren();
}
}

return deserializedAcsRecordingFileStatusUpdatedEventData;
});
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.messaging.eventgrid.systemevents;

import com.azure.core.annotation.Immutable;
Expand All @@ -20,6 +19,7 @@
@Immutable
public final class MediaLiveEventChannelArchiveHeartbeatEventData
implements JsonSerializable<MediaLiveEventChannelArchiveHeartbeatEventData> {

/*
* Gets the channel latency in ms.
*/
Expand All @@ -29,7 +29,6 @@ public final class MediaLiveEventChannelArchiveHeartbeatEventData
* Gets the latency result code.
*/
private String latencyResultCode;
static final ClientLogger LOGGER = new ClientLogger(MediaLiveEventChannelArchiveHeartbeatEventData.class);

/**
* Creates an instance of MediaLiveEventChannelArchiveHeartbeatEventData class.
Expand All @@ -39,7 +38,7 @@ public MediaLiveEventChannelArchiveHeartbeatEventData() {

/**
* Gets the duration of channel latency.
*
*
* @return the duration of channel latency.
*/
public Duration getChannelLatency() {
Expand All @@ -58,7 +57,7 @@ public Duration getChannelLatency() {

/**
* Get the latencyResultCode property: Gets the latency result code.
*
*
* @return the latencyResultCode value.
*/
public String getLatencyResultCode() {
Expand All @@ -76,7 +75,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {

/**
* Reads an instance of MediaLiveEventChannelArchiveHeartbeatEventData from the JsonReader.
*
*
* @param jsonReader The JsonReader being read.
* @return An instance of MediaLiveEventChannelArchiveHeartbeatEventData if the JsonReader was pointing to an
* instance of it, or null if it was pointing to JSON null.
Expand All @@ -90,7 +89,6 @@ public static MediaLiveEventChannelArchiveHeartbeatEventData fromJson(JsonReader
while (reader.nextToken() != JsonToken.END_OBJECT) {
String fieldName = reader.getFieldName();
reader.nextToken();

if ("channelLatencyMs".equals(fieldName)) {
deserializedMediaLiveEventChannelArchiveHeartbeatEventData.channelLatencyMs = reader.getString();
} else if ("latencyResultCode".equals(fieldName)) {
Expand All @@ -99,8 +97,9 @@ public static MediaLiveEventChannelArchiveHeartbeatEventData fromJson(JsonReader
reader.skipChildren();
}
}

return deserializedMediaLiveEventChannelArchiveHeartbeatEventData;
});
}

private static final ClientLogger LOGGER = new ClientLogger(MediaLiveEventChannelArchiveHeartbeatEventData.class);
}
Loading
Loading