30 lines
737 B
Java
30 lines
737 B
Java
|
package com.safenet.lib;
|
||
|
|
||
|
import java.util.Date;
|
||
|
|
||
|
public class Unit {
|
||
|
public long id;
|
||
|
public String name;
|
||
|
public Date dateCreated;
|
||
|
public Date lastUpdated;
|
||
|
|
||
|
public int reportingSeconds = 60;
|
||
|
public boolean isDeactivated; //if User wants to create another one with the same name then resurrect this one
|
||
|
public String emailAddress;
|
||
|
public UnitIcon icon;
|
||
|
public UnitGroup group = null;
|
||
|
public UnitType type;
|
||
|
public Gateway gateway; //if it is radio then will have a gateway, otherwise is null
|
||
|
public long imei;
|
||
|
|
||
|
public Unit(){
|
||
|
|
||
|
}
|
||
|
|
||
|
public String toString()
|
||
|
{
|
||
|
return "id: " + id + " | name: " + name + " | imei:" + imei + " | repSec:" + reportingSeconds;
|
||
|
}
|
||
|
|
||
|
}
|