setMyStatus static method
Cập nhật trạng thái của tôi
Implementation
static Future<void> setMyStatus({String? status, String? statusDesc}) async {
UserStatusType type;
switch (status) {
case statusOnline:
type = UserStatusType.online;
break;
case statusBusy:
type = UserStatusType.busy;
break;
case statusAway:
type = UserStatusType.away;
break;
case statusCustom:
type = UserStatusType.custom;
break;
case statusOffline:
type = UserStatusType.offline;
break;
default:
type = UserStatusType.online;
}
await _manager.updateStatus(type, customMessage: statusDesc);
}