|
|
@ -3,10 +3,7 @@ package app.entities.server.players; |
|
|
|
import app.entities.other.SteamID; |
|
|
|
import app.entities.server.players.DefaultPlayer; |
|
|
|
import app.utils.SteamIDConverter; |
|
|
|
import com.fasterxml.jackson.annotation.JsonGetter; |
|
|
|
import com.fasterxml.jackson.annotation.JsonIgnore; |
|
|
|
import com.fasterxml.jackson.annotation.JsonSetter; |
|
|
|
import com.fasterxml.jackson.annotation.JsonValue; |
|
|
|
import com.fasterxml.jackson.annotation.*; |
|
|
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
|
|
|
import lombok.Data; |
|
|
|
import lombok.Getter; |
|
|
@ -17,7 +14,7 @@ import java.util.List; |
|
|
|
public class RCONPlayer extends DefaultPlayer { |
|
|
|
String duration; |
|
|
|
int id; |
|
|
|
@JsonIgnore |
|
|
|
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY) |
|
|
|
String ip; |
|
|
|
int loss; |
|
|
|
int ping; |
|
|
@ -31,6 +28,8 @@ public class RCONPlayer extends DefaultPlayer { |
|
|
|
return steam; |
|
|
|
} |
|
|
|
|
|
|
|
public RCONPlayer(){} |
|
|
|
|
|
|
|
public RCONPlayer(List<String> status_line) { |
|
|
|
id = Integer.parseInt(status_line.get(1)); |
|
|
|
ip = status_line.get(status_line.size() - 1); |
|
|
|