Launcher/LaunchServer/src/main/java/ru/gravit/launchserver/socket/Client.java
2019-02-17 14:24:20 +07:00

38 lines
925 B
Java

package ru.gravit.launchserver.socket;
import ru.gravit.launcher.ClientPermissions;
import ru.gravit.launcher.profiles.ClientProfile;
import ru.gravit.utils.helper.LogHelper;
public class Client {
public long session;
public long timestamp;
public Type type;
public ClientProfile profile;
public boolean isAuth;
public boolean checkSign;
public ClientPermissions permissions;
public String username;
public LogHelper.Output logOutput;
public Client(long session) {
this.session = session;
timestamp = System.currentTimeMillis();
type = Type.USER;
isAuth = false;
permissions = ClientPermissions.DEFAULT;
username = "";
checkSign = false;
}
//Данные ваторизации
public void up() {
timestamp = System.currentTimeMillis();
}
public enum Type {
SERVER,
USER
}
}