mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-15 20:45:52 +00:00
remove address book operation code, as it duplicates the the functionality of web console (#7451)
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
@@ -265,42 +265,3 @@ class AbTag {
|
||||
: name = json['name'] ?? '',
|
||||
color = json['color'] ?? '';
|
||||
}
|
||||
|
||||
class AbRulePayload {
|
||||
String guid;
|
||||
String? user;
|
||||
String? group;
|
||||
int rule;
|
||||
|
||||
AbRulePayload(
|
||||
this.guid,
|
||||
this.user,
|
||||
this.group,
|
||||
this.rule,
|
||||
);
|
||||
|
||||
AbRulePayload.fromJson(Map<String, dynamic> json)
|
||||
: guid = json['guid'] ?? '',
|
||||
user = json['user'],
|
||||
group = json['group'],
|
||||
rule = json['rule'] ?? 0;
|
||||
|
||||
static String buildName(String? user, String? group) {
|
||||
if (user != null && group != null) {
|
||||
return '-';
|
||||
}
|
||||
if (user != null) {
|
||||
return user;
|
||||
}
|
||||
if (group != null) {
|
||||
return group;
|
||||
}
|
||||
return teamName;
|
||||
}
|
||||
|
||||
String getName() {
|
||||
return buildName(user, group);
|
||||
}
|
||||
|
||||
static String teamName = translate('Everyone');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user