Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renamed Mixed Audio models ( Addressed comments in apiview ) #24481

Merged
merged 8 commits into from
Oct 1, 2021
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 @@ -239,9 +239,9 @@ public Mono<Response<StartCallRecordingResult>> startRecordingWithResponse(
request.setRecordingStateCallbackUri(recordingStateCallbackUri);

if (startRecordingOptions != null) {
request.setRecordingChannelType(startRecordingOptions.getRecordingChannelType());
request.setRecordingContentType(startRecordingOptions.getRecordingContentType());
request.setRecordingFormatType(startRecordingOptions.getRecordingFormatType());
request.setRecordingChannelType(startRecordingOptions.getRecordingChannel());
request.setRecordingContentType(startRecordingOptions.getRecordingContent());
request.setRecordingFormatType(startRecordingOptions.getRecordingFormat());
}

return withContext(contextValue -> {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.communication.callingserver.implementation.models;

import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;

/** Defines values for RecordingChannel. */
public final class RecordingChannel extends ExpandableStringEnum<RecordingChannel> {
/** Static value mixed for RecordingChannel. */
public static final RecordingChannel MIXED = fromString("mixed");

/** Static value unmixed for RecordingChannel. */
public static final RecordingChannel UNMIXED = fromString("unmixed");

/**
* Creates or finds a RecordingChannel from its string representation.
*
* @param name a name to look for.
* @return the corresponding RecordingChannel.
*/
@JsonCreator
public static RecordingChannel fromString(String name) {
return fromString(name, RecordingChannel.class);
}

/** @return known RecordingChannel values. */
public static Collection<RecordingChannel> values() {
return values(RecordingChannel.class);
}
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.communication.callingserver.implementation.models;

import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;

/** Defines values for RecordingContent. */
public final class RecordingContent extends ExpandableStringEnum<RecordingContent> {
/** Static value audio for RecordingContent. */
public static final RecordingContent AUDIO = fromString("audio");

/** Static value audioVideo for RecordingContent. */
public static final RecordingContent AUDIO_VIDEO = fromString("audioVideo");

/**
* Creates or finds a RecordingContent from its string representation.
*
* @param name a name to look for.
* @return the corresponding RecordingContent.
*/
@JsonCreator
public static RecordingContent fromString(String name) {
return fromString(name, RecordingContent.class);
}

/** @return known RecordingContent values. */
public static Collection<RecordingContent> values() {
return values(RecordingContent.class);
}
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.communication.callingserver.implementation.models;

import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;

/** Defines values for RecordingFormat. */
public final class RecordingFormat extends ExpandableStringEnum<RecordingFormat> {
/** Static value wav for RecordingFormat. */
public static final RecordingFormat WAV = fromString("wav");

/** Static value mp3 for RecordingFormat. */
public static final RecordingFormat MP3 = fromString("mp3");

/** Static value mp4 for RecordingFormat. */
public static final RecordingFormat MP4 = fromString("mp4");

/**
* Creates or finds a RecordingFormat from its string representation.
*
* @param name a name to look for.
* @return the corresponding RecordingFormat.
*/
@JsonCreator
public static RecordingFormat fromString(String name) {
return fromString(name, RecordingFormat.class);
}

/** @return known RecordingFormat values. */
public static Collection<RecordingFormat> values() {
return values(RecordingFormat.class);
}
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@

package com.azure.communication.callingserver.implementation.models;

import com.azure.communication.callingserver.models.RecordingChannelType;
import com.azure.communication.callingserver.models.RecordingContentType;
import com.azure.communication.callingserver.models.RecordingFormatType;
import com.azure.communication.callingserver.models.RecordingChannel;
import com.azure.communication.callingserver.models.RecordingContent;
import com.azure.communication.callingserver.models.RecordingFormat;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

Expand All @@ -23,19 +24,19 @@ public final class StartCallRecordingRequest {
* Optional, audioVideo by default
*/
@JsonProperty(value = "recordingContentType")
private RecordingContentType recordingContentType;
private RecordingContent recordingContentType;

/*
* Optional, mixed by default
*/
@JsonProperty(value = "recordingChannelType")
private RecordingChannelType recordingChannelType;
private RecordingChannel recordingChannelType;

/*
* Optional, mp4 by default
*/
@JsonProperty(value = "recordingFormatType")
private RecordingFormatType recordingFormatType;
private RecordingFormat recordingFormatType;

/**
* Get the recordingStateCallbackUri property: The uri to send notifications to.
Expand All @@ -62,7 +63,7 @@ public StartCallRecordingRequest setRecordingStateCallbackUri(String recordingSt
*
* @return the recordingContentType value.
*/
public RecordingContentType getRecordingContentType() {
public RecordingContent getRecordingContentType() {
return this.recordingContentType;
}

Expand All @@ -72,7 +73,7 @@ public RecordingContentType getRecordingContentType() {
* @param recordingContentType the recordingContentType value to set.
* @return the StartCallRecordingRequest object itself.
*/
public StartCallRecordingRequest setRecordingContentType(RecordingContentType recordingContentType) {
public StartCallRecordingRequest setRecordingContentType(RecordingContent recordingContentType) {
this.recordingContentType = recordingContentType;
return this;
}
Expand All @@ -82,7 +83,7 @@ public StartCallRecordingRequest setRecordingContentType(RecordingContentType re
*
* @return the recordingChannelType value.
*/
public RecordingChannelType getRecordingChannelType() {
public RecordingChannel getRecordingChannelType() {
return this.recordingChannelType;
}

Expand All @@ -92,7 +93,7 @@ public RecordingChannelType getRecordingChannelType() {
* @param recordingChannelType the recordingChannelType value to set.
* @return the StartCallRecordingRequest object itself.
*/
public StartCallRecordingRequest setRecordingChannelType(RecordingChannelType recordingChannelType) {
public StartCallRecordingRequest setRecordingChannelType(RecordingChannel recordingChannelType) {
this.recordingChannelType = recordingChannelType;
return this;
}
Expand All @@ -102,7 +103,7 @@ public StartCallRecordingRequest setRecordingChannelType(RecordingChannelType re
*
* @return the recordingFormatType value.
*/
public RecordingFormatType getRecordingFormatType() {
public RecordingFormat getRecordingFormatType() {
return this.recordingFormatType;
}

Expand All @@ -112,7 +113,7 @@ public RecordingFormatType getRecordingFormatType() {
* @param recordingFormatType the recordingFormatType value to set.
* @return the StartCallRecordingRequest object itself.
*/
public StartCallRecordingRequest setRecordingFormatType(RecordingFormatType recordingFormatType) {
public StartCallRecordingRequest setRecordingFormatType(RecordingFormat recordingFormatType) {
this.recordingFormatType = recordingFormatType;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.communication.callingserver.models;

import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;

/** Defines values for RecordingChannel. */
public final class RecordingChannel extends ExpandableStringEnum<RecordingChannel> {
/** Static value mixed for RecordingChannel. */
public static final RecordingChannel MIXED = fromString("mixed");

/** Static value unmixed for RecordingChannel. */
public static final RecordingChannel UNMIXED = fromString("unmixed");

/**
* Creates or finds a RecordingChannel from its string representation.
*
* @param name a name to look for.
* @return the corresponding RecordingChannel.
*/
@JsonCreator
public static RecordingChannel fromString(String name) {
return fromString(name, RecordingChannel.class);
}

/** @return known RecordingChannel values. */
public static Collection<RecordingChannel> values() {
return values(RecordingChannel.class);
}
}

This file was deleted.

Loading