getHMSMessageRecipientFromName static method

HMSMessageRecipientType getHMSMessageRecipientFromName(
  1. String name
)

Implementation

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