groupStyleTypeToInt function
- ChatGroupStyle? type
Implementation
int groupStyleTypeToInt(ChatGroupStyle? type) {
int ret = 0;
if (type == null) return ret;
switch (type) {
case ChatGroupStyle.PrivateOnlyOwnerInvite:
{
ret = 0;
}
break;
case ChatGroupStyle.PrivateMemberCanInvite:
{
ret = 1;
}
break;
case ChatGroupStyle.PublicJoinNeedApproval:
{
ret = 2;
}
break;
case ChatGroupStyle.PublicOpenJoin:
{
ret = 3;
}
break;
}
return ret;
}