getHMSMessageRecipientFromName static method
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;
}
}