Files
AsminVoicechat/source/decompiled/de/maxhenkel/voicechat/voice/server/Group.java
T
asminme bbccd4a815
Build AsminVoicechat / prepare-release (push) Successful in 14s
Build AsminVoicechat / build-and-test (17) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (18) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (19) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (20) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (21) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (22) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (23) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (24) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (25) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (26) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (27-ea) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (16) (push) Canceled after 38s
first commit
2026-10-24 15:18:03 +02:00

89 lines
2.0 KiB
Java

/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* javax.annotation.Nullable
*/
package de.maxhenkel.voicechat.voice.server;
import de.maxhenkel.voicechat.api.Group;
import de.maxhenkel.voicechat.voice.common.ClientGroup;
import java.util.UUID;
import javax.annotation.Nullable;
public class Group {
private UUID id;
private String name;
@Nullable
private String password;
private boolean persistent;
private boolean hidden;
private Group.Type type;
public Group(UUID id, String name, @Nullable String password, boolean persistent, boolean hidden, Group.Type type) {
this.id = id;
this.name = name;
this.password = password;
this.persistent = persistent;
this.hidden = hidden;
this.type = type;
}
public Group(UUID id, String name, @Nullable String password, boolean persistent) {
this(id, name, password, persistent, false, Group.Type.NORMAL);
}
public Group(UUID id, String name, @Nullable String password) {
this(id, name, password, false);
}
public Group(UUID id, String name) {
this(id, name, null);
}
public Group() {
}
public UUID getId() {
return this.id;
}
public String getName() {
return this.name;
}
@Nullable
public String getPassword() {
return this.password;
}
public boolean isPersistent() {
return this.persistent;
}
public boolean isHidden() {
return this.hidden;
}
public Group.Type getType() {
return this.type;
}
public boolean isOpen() {
return this.type == Group.Type.OPEN;
}
public boolean isNormal() {
return this.type == Group.Type.NORMAL;
}
public boolean isIsolated() {
return this.type == Group.Type.ISOLATED;
}
public ClientGroup toClientGroup() {
return new ClientGroup(this.id, this.name, this.password != null, this.persistent, this.hidden, this.type);
}
}