4 changed files with 43 additions and 0 deletions
@ -0,0 +1,29 @@ |
|||
package app.entities.db; |
|||
|
|||
import app.utils.SteamIDConverter; |
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class AdminInfo { |
|||
@JsonIgnore |
|||
int id; |
|||
int vk_id; |
|||
long discord_id; |
|||
String discord_name; |
|||
@JsonIgnore |
|||
String steam3; |
|||
String steam_url; |
|||
@JsonIgnore |
|||
int permition; |
|||
|
|||
public AdminInfo(Object[] obj) { |
|||
id = (int) obj[0]; |
|||
vk_id = (int) obj[1]; |
|||
discord_id = (long) obj[2]; |
|||
discord_name = (String) obj[3]; |
|||
steam3 = (String) obj[4]; |
|||
permition = (int) obj[5]; |
|||
steam_url = SteamIDConverter.getSteamID(steam3).community_url; |
|||
} |
|||
} |
Loading…
Reference in new issue