cFollowType2DartType static method
int
cFollowType2DartType(- int type
)
Implementation
static int cFollowType2DartType(int type) {
switch (type) {
case CFollowType.followLTypeNone:
return FollowType.V2TIM_FOLLOW_TYPE_NONE;
case CFollowType.followLTypeInMyFollowingList:
return FollowType.V2TIM_FOLLOW_TYPE_IN_MY_FOLLOWING_LIST;
case CFollowType.followLTypeInMyFollowersList:
return FollowType.V2TIM_FOLLOW_TYPE_IN_MY_FOLLOWERS_LIST;
case CFollowType.followLTypeInBothFollowersList:
return FollowType.V2TIM_FOLLOW_TYPE_IN_BOTH_FOLLOWERS_LIST;
default:
print('error: invalid c follow type');
return FollowType.V2TIM_FOLLOW_TYPE_NONE;
}
}