intToBrandId function
Implementation
TencentCloudChatPushBrandID intToBrandId(int brandIdInt) {
switch (brandIdInt) {
case 2000:
return TencentCloudChatPushBrandID.XiaoMi;
case 2001:
return TencentCloudChatPushBrandID.HuaWei;
case 2002:
return TencentCloudChatPushBrandID.FCM;
case 2003:
return TencentCloudChatPushBrandID.Meizu;
case 2004:
return TencentCloudChatPushBrandID.Oppo;
case 2005:
return TencentCloudChatPushBrandID.Vivo;
case 2006:
return TencentCloudChatPushBrandID.Honor;
default:
throw Exception('Invalid brandIdInt: $brandIdInt');
}
}