You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

42 lines
1.1 KiB

package app.entities.db;
import lombok.Data;
import java.sql.Timestamp;
@Data
public class Ban {
int id;
String steam_id;
Long account_id;
String player_name;
int ban_length;
long ban_length_seconds;
String ban_reason;
String banned_by;
String banned_by_id;
String ip;
Timestamp timestamp;
long ban_utime;
boolean active;
String unbanned_by_id;
Timestamp unbanned_timestamp;
AdminInfo admin_info;
public Ban(Object[] obj) {
id = (int) obj[0];
steam_id = (String) obj[1];
account_id = (Long) obj[2];
player_name = (String) obj[3];
ban_length = (int) obj[4];
ban_reason = (String) obj[5];
banned_by = (String) obj[6];
banned_by_id = (String) obj[7];
ip = (String) obj[8];
timestamp = (Timestamp) obj[9];
active = (boolean) obj[10];
unbanned_by_id = (String) obj[11];
unbanned_timestamp = (Timestamp) obj[12];
ban_length_seconds = ban_length * 60L;
ban_utime = timestamp.getTime() / 1000;
}
}