-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from Bandwidth/release/2021-03-08-21-39-37
webrtc new field
- Loading branch information
Showing
2 changed files
with
116 additions
and
4 deletions.
There are no files selected for viewing
75 changes: 75 additions & 0 deletions
75
src/main/java/com/bandwidth/webrtc/models/DeviceApiVersionEnum.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
/* | ||
* BandwidthLib | ||
* | ||
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ). | ||
*/ | ||
|
||
package com.bandwidth.webrtc.models; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
import java.util.TreeMap; | ||
|
||
/** | ||
* DeviceApiVersionEnum to be used. | ||
*/ | ||
public enum DeviceApiVersionEnum { | ||
V3, | ||
|
||
V2; | ||
|
||
|
||
private static TreeMap<String, DeviceApiVersionEnum> valueMap = new TreeMap<>(); | ||
private String value; | ||
|
||
static { | ||
V3.value = "v3"; | ||
V2.value = "v2"; | ||
|
||
valueMap.put("v3", V3); | ||
valueMap.put("v2", V2); | ||
} | ||
|
||
/** | ||
* Returns the enum member associated with the given string value. | ||
* @param toConvert String value to get enum member. | ||
* @return The enum member against the given string value. | ||
*/ | ||
@com.fasterxml.jackson.annotation.JsonCreator | ||
public static DeviceApiVersionEnum fromString(String toConvert) { | ||
return valueMap.get(toConvert); | ||
} | ||
|
||
/** | ||
* Returns the string value associated with the enum member. | ||
* @return The string value against enum member. | ||
*/ | ||
@com.fasterxml.jackson.annotation.JsonValue | ||
public String value() { | ||
return value; | ||
} | ||
|
||
/** | ||
* Get string representation of this enum. | ||
*/ | ||
@Override | ||
public String toString() { | ||
return value.toString(); | ||
} | ||
|
||
/** | ||
* Convert list of DeviceApiVersionEnum values to list of string values. | ||
* @param toConvert The list of DeviceApiVersionEnum values to convert. | ||
* @return List of representative string values. | ||
*/ | ||
public static List<String> toValue(List<DeviceApiVersionEnum> toConvert) { | ||
if (toConvert == null) { | ||
return null; | ||
} | ||
List<String> convertedValues = new ArrayList<>(); | ||
for (DeviceApiVersionEnum enumValue : toConvert) { | ||
convertedValues.add(enumValue.value); | ||
} | ||
return convertedValues; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters