diff --git a/src/cucky/jGuard/lib/Log.java b/src/cucky/jGuard/lib/Log.java new file mode 100644 index 0000000..20857d8 --- /dev/null +++ b/src/cucky/jGuard/lib/Log.java @@ -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; + } + +} diff --git a/src/cucky/jGuard/lib/Status.java b/src/cucky/jGuard/lib/Status.java new file mode 100644 index 0000000..1e6a81d --- /dev/null +++ b/src/cucky/jGuard/lib/Status.java @@ -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; + +}