mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-16 12:09:12 +03:00
38 lines
925 B
Java
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
|
|
}
|
|
}
|