getValueFromHMSMessageRecipientType static method

String getValueFromHMSMessageRecipientType(
  1. HMSMessageRecipientType hmsMessageRecipientType
)

Implementation

static String getValueFromHMSMessageRecipientType(
    HMSMessageRecipientType hmsMessageRecipientType) {
  switch (hmsMessageRecipientType) {
    case HMSMessageRecipientType.BROADCAST:
      return 'broadCast';
    case HMSMessageRecipientType.GROUP:
      return 'roles';
    case HMSMessageRecipientType.DIRECT:
      return 'peer';
    case HMSMessageRecipientType.unKnown:
      return '';
  }
}