Upload files to "src/cucky/jGuard/lib"

main
Michal 2024-05-23 15:08:39 +02:00
parent 8a2038d270
commit 9b0953bfe9
2 changed files with 86 additions and 0 deletions

View File

@ -0,0 +1,73 @@
package cucky.jGuard.lib.object;
import java.io.Serializable;
public class Log implements Serializable{
private int id;
private int device;
private int status;
private long from;
private long to;
public Log(int device, int status, long from) {
this.device = device;
this.status = status;
this.from = from;
}
public Log(int id, int device, int status, long from, long to) {
this.id = id;
this.device = device;
this.status = status;
this.from = from;
this.to = to;
}
public Log() {
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public int getDevice() {
return device;
}
public void setDevice(int device) {
this.device = device;
}
public int getStatus() {
return status;
}
public void setStatus(int status) {
this.status = status;
}
public long getFrom() {
return from;
}
public void setFrom(long from) {
this.from = from;
}
public long getTo() {
return to;
}
public void setTo(long to) {
this.to = to;
}
}

View File

@ -0,0 +1,13 @@
package cucky.jGuard.lib;
import java.io.Serializable;
public class Status implements Serializable {
public static final int NA = 0;
public static final int OK = 1;
public static final int WARNING = 2;
public static final int OFFLINE = 3;
}