com.techventus.server.voice.datatypes
Class AllSettings
java.lang.Object
com.techventus.server.voice.datatypes.AllSettings
public class AllSettings
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AllSettings
public AllSettings(java.lang.String json)
throws gvjava.org.json.JSONException
- Throws:
gvjava.org.json.JSONException
toJsonObject
public gvjava.org.json.JSONObject toJsonObject()
throws gvjava.org.json.JSONException
- Throws:
gvjava.org.json.JSONException
isPhoneDisabled
public boolean isPhoneDisabled(int phoneId)
- Query disabled status - if id not found, then it returned false, which normally means enabled.
- Parameters:
phoneId
-
- Returns:
- true if the Phone is Disabled. Otherwise it return false.
getPhoneList
public int[] getPhoneList()
- Returns:
- the phoneList
getPhoneListSorted
public int[] getPhoneListSorted()
- Returns:
- the phoneList sorted
getPhoneListAsList
public java.util.List<java.lang.Integer> getPhoneListAsList()
- Returns:
- the phoneList as List
getPhones
public Phone[] getPhones()
- Returns:
- the phones
getPhonesSorted
public Phone[] getPhonesSorted()
- Returns:
- the phones sorted by their id number
getSettings
public Setting getSettings()
- Returns:
- the settings
setPhoneList
public void setPhoneList(int[] phoneList)
- Parameters:
phoneList
- the phoneList to set
setPhones
public void setPhones(Phone[] phones)
- Parameters:
phones
- the phones to set
setSettings
public void setSettings(Setting settings)
- Parameters:
settings
- the settings to set