mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
27 lines
714 B
Java
27 lines
714 B
Java
package org.asamk.signal;
|
|
|
|
public enum GroupPermission {
|
|
EVERY_MEMBER {
|
|
@Override
|
|
public String toString() {
|
|
return "every-member";
|
|
}
|
|
},
|
|
ONLY_ADMINS {
|
|
@Override
|
|
public String toString() {
|
|
return "only-admins";
|
|
}
|
|
};
|
|
|
|
public org.asamk.signal.manager.groups.GroupPermission toManager() {
|
|
switch (this) {
|
|
case EVERY_MEMBER:
|
|
return org.asamk.signal.manager.groups.GroupPermission.EVERY_MEMBER;
|
|
case ONLY_ADMINS:
|
|
return org.asamk.signal.manager.groups.GroupPermission.ONLY_ADMINS;
|
|
default:
|
|
throw new AssertionError();
|
|
}
|
|
}
|
|
}
|