public class Manager extends java.lang.Object implements java.lang.Comparable<Manager>, IManager
By convention this model is fully immutable.
To create new instance of the model, please use the Manager.Builder
.
Modifier and Type | Class and Description |
---|---|
static class |
Manager.Builder
Manager Builder.
|
IManager.Role
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<Manager> |
CREATOR
Parcelable CREATOR constant.
|
protected int |
databaseId
The Database id.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Manager another) |
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
static java.util.Set<Manager> |
from(org.json.JSONArray jsonArray)
Creates Set of managers from JSON array.
|
static Manager |
from(org.json.JSONObject jsonObject)
Instantiates new Manager from JSON content.
|
ICompany |
getCompany()
Gets company.
|
ICounters |
getCounters()
Provides number of private, public, shared devices or venues.
|
int |
getDatabaseId()
Gets database id.
|
java.lang.String |
getEmail()
Gets email.
|
java.lang.String |
getFirstName()
Gets first name.
|
java.util.UUID |
getId()
Gets manager id.
|
java.lang.String |
getLastName()
Gets last name.
|
IManager.Role |
getRole()
Gets role.
|
java.util.UUID |
getSupervisorId()
Gets supervisor id.
|
java.lang.String |
getUniqueId()
Gets unique id.
|
int |
hashCode() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<Manager> CREATOR
StackOverflowError
For more information concerning parceling see attached links.
protected final int databaseId
SQLiteDatabase
). If you
do not need to use it, ignore it during model building.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.util.UUID getId()
IManager
public java.util.UUID getSupervisorId()
IManager
getSupervisorId
in interface IManager
public java.lang.String getFirstName()
IManager
getFirstName
in interface IManager
public java.lang.String getLastName()
IManager
getLastName
in interface IManager
public ICompany getCompany()
IManager
getCompany
in interface IManager
public java.lang.String getEmail()
IManager
public java.lang.String getUniqueId()
IManager
getUniqueId
in interface IManager
public IManager.Role getRole()
IManager
public ICounters getCounters()
IManager
getCounters
in interface IManager
public void writeToParcel(android.os.Parcel dest, int flags)
public int compareTo(Manager another)
compareTo
in interface java.lang.Comparable<Manager>
public static Manager from(org.json.JSONObject jsonObject)
jsonObject
- the json object with contentpublic static java.util.Set<Manager> from(org.json.JSONArray jsonArray)
jsonArray
- the json arraypublic int getDatabaseId()
public int describeContents()