com.techventus.server.voice.datatypes
Class AllSettings

java.lang.Object
  extended by com.techventus.server.voice.datatypes.AllSettings

public class AllSettings
extends java.lang.Object


Constructor Summary
AllSettings(java.lang.String json)
           
 
Method Summary
 int[] getPhoneList()
           
 java.util.List<java.lang.Integer> getPhoneListAsList()
           
 int[] getPhoneListSorted()
           
 Phone[] getPhones()
           
 Phone[] getPhonesSorted()
           
 Setting getSettings()
           
 boolean isPhoneDisabled(int phoneId)
          Query disabled status - if id not found, then it returned false, which normally means enabled.
 void setPhoneList(int[] phoneList)
           
 void setPhones(Phone[] phones)
           
 void setSettings(Setting settings)
           
 gvjava.org.json.JSONObject toJsonObject()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AllSettings

public AllSettings(java.lang.String json)
            throws gvjava.org.json.JSONException
Throws:
gvjava.org.json.JSONException
Method Detail

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:

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