Skip to content

Commit

Permalink
Renamed files
Browse files Browse the repository at this point in the history
  • Loading branch information
Decoder07 committed Feb 12, 2024
1 parent 4ab0519 commit e81d569
Showing 1 changed file with 46 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
enum HMSQualityLimitationReason {
BANDWIDTH,

CPU,

NONE,

OTHER,

UNKNOWN
}

///HMSLogLevel for android and ios
extension HMSQualityLimitationReasonValue on HMSQualityLimitationReason {
static HMSQualityLimitationReason getHMSQualityLimitationReasonFromName(
String name) {
switch (name) {
case 'BANDWIDTH':
return HMSQualityLimitationReason.BANDWIDTH;
case 'CPU':
return HMSQualityLimitationReason.CPU;
case 'NONE':
return HMSQualityLimitationReason.NONE;
case 'OTHER':
return HMSQualityLimitationReason.OTHER;
default:
return HMSQualityLimitationReason.UNKNOWN;
}
}

static String getValueFromHMSQualityLimitationReason(
HMSQualityLimitationReason hmsQualityLimitationReason) {
switch (hmsQualityLimitationReason) {
case HMSQualityLimitationReason.BANDWIDTH:
return 'BANDWIDTH';
case HMSQualityLimitationReason.CPU:
return 'CPU';
case HMSQualityLimitationReason.NONE:
return 'NONE';
case HMSQualityLimitationReason.OTHER:
return 'OTHER';
case HMSQualityLimitationReason.UNKNOWN:
return 'UNKNOWN';
}
}
}

0 comments on commit e81d569

Please sign in to comment.