Skip to content

Commit 0513fef

Browse files
authored
fix gender type of callautomation play text source (Azure#33408)
1 parent ec3529b commit 0513fef

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/GenderType.java

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99

1010
/** Defines values for GenderType. */
1111
public final class GenderType extends ExpandableStringEnum<GenderType> {
12-
/** Static value m for GenderType. */
13-
public static final GenderType M = fromString("m");
12+
/** Static value male for GenderType. */
13+
public static final GenderType MALE = fromString("male");
1414

15-
/** Static value f for GenderType. */
16-
public static final GenderType F = fromString("f");
15+
/** Static value female for GenderType. */
16+
public static final GenderType FEMALE = fromString("female");
1717

1818
/**
1919
* Creates or finds a GenderType from its string representation.
@@ -26,7 +26,11 @@ public static GenderType fromString(String name) {
2626
return fromString(name, GenderType.class);
2727
}
2828

29-
/** @return known GenderType values. */
29+
/**
30+
* Gets known GenderType values.
31+
*
32+
* @return known GenderType values.
33+
*/
3034
public static Collection<GenderType> values() {
3135
return values(GenderType.class);
3236
}

sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallMediaAsyncUnitTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public void setup() {
4949

5050
playTextSource = new TextSource();
5151
playTextSource.setPlaySourceId("playTextSourceId");
52-
playTextSource.setVoiceGender(GenderType.M);
52+
playTextSource.setVoiceGender(GenderType.MALE);
5353
playTextSource.setSourceLocale("en-US");
5454
playTextSource.setVoiceName("LULU");
5555

sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallMediaUnitTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public void setup() {
4545

4646
playTextSource = new TextSource();
4747
playTextSource.setPlaySourceId("playTextSourceId");
48-
playTextSource.setVoiceGender(GenderType.M);
48+
playTextSource.setVoiceGender(GenderType.MALE);
4949
playTextSource.setSourceLocale("en-US");
5050
playTextSource.setVoiceName("LULU");
5151

0 commit comments

Comments
 (0)