com.techventus.server.voice.datatypes
Class Settings

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

Deprecated. please use the class AllSettings which holds phoneList, phones and settings and for the settings, the class Setting

@Deprecated
public class Settings
extends java.lang.Object

Holds all settings of the gVoice account and can return it as String, as lists or as json-string Most Lists also have a .toJson() method


Constructor Summary
Settings(java.lang.String json, boolean useJSONParser, boolean saveMode)
          Deprecated.  
 
Method Summary
 java.util.List<java.lang.Integer> getActiveForwardingList()
          Deprecated.  
 java.lang.String getBaseUrl()
          Deprecated.  
 int getDefaultGreetingId()
          Deprecated.  
 java.util.List<DisabledId> getDisabledIdList()
          Deprecated.  
 java.util.List<EmailAddress> getEmailAddressList()
          Deprecated.  
 java.util.List<java.lang.String> getGroupListSimple()
          Deprecated.  
 java.util.List<Group> getGroupSettingsList()
          Deprecated.  
 java.util.List<PhoneOld> getPhoneList()
          Deprecated.  
 int[] getPhoneListSimple()
          Deprecated.  
 java.util.List<Greeting> getVoicemailGreetingsList()
          Deprecated.  
 java.util.List<WebCallButton> getWebCallButtonList()
          Deprecated.  
 java.lang.String toJson()
          Deprecated. Make a JSON text of the Settings.
 java.lang.String toJson(int indentFactor)
          Deprecated. Make a prettyprinted JSON text of this JSONObject.
 java.lang.String toString()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Settings

public Settings(java.lang.String json,
                boolean useJSONParser,
                boolean saveMode)
Deprecated. 
Parameters:
json -
useJSONParser - - uses the json.org json parser
saveMode - - check if each key exists before trying to parse it(in JSON Parser mode)
Method Detail

toJson

public java.lang.String toJson(int indentFactor)
                        throws gvjava.org.json.JSONException
Deprecated. 
Make a prettyprinted JSON text of this JSONObject.

Warning: This method assumes that the data structure is acyclical.

Parameters:
indentFactor - The number of spaces to add to each level of indentation.
Returns:
a printable, displayable, portable, transmittable representation of the object, beginning with { (left brace) and ending with } (right brace).
Throws:
gvjava.org.json.JSONException - if using identFactor > 0 and If the object contains an invalid number.

toJson

public java.lang.String toJson()
Deprecated. 
Make a JSON text of the Settings. For compactness, no whitespace is added. If this would not result in a syntactically correct JSON text, then null will be returned instead.

Warning: This method assumes that the data structure is acyclical.

Returns:
a printable, displayable, portable, transmittable representation of the object, beginning with { (left brace) and ending with } (right brace).

toString

public java.lang.String toString()
Deprecated. 
Overrides:
toString in class java.lang.Object

getGroupListSimple

public java.util.List<java.lang.String> getGroupListSimple()
Deprecated. 
Returns:
the mGroupListSimple

getPhoneListSimple

public int[] getPhoneListSimple()
Deprecated. 
Returns:
the mPhoneListSimple

getPhoneList

public java.util.List<PhoneOld> getPhoneList()
Deprecated. 
Returns:
the mPhoneList

getVoicemailGreetingsList

public java.util.List<Greeting> getVoicemailGreetingsList()
Deprecated. 
Returns:
the mVoicemailGreetingsList

getGroupSettingsList

public java.util.List<Group> getGroupSettingsList()
Deprecated. 
Returns:
the mGroupList

getDisabledIdList

public java.util.List<DisabledId> getDisabledIdList()
Deprecated. 
Returns:
the mDisabledIdList

getWebCallButtonList

public java.util.List<WebCallButton> getWebCallButtonList()
Deprecated. 
Returns:
the mWebCallButtonList

getDefaultGreetingId

public int getDefaultGreetingId()
Deprecated. 
Returns:
the mDefaultGreetingId

getEmailAddressList

public java.util.List<EmailAddress> getEmailAddressList()
Deprecated. 
Returns:
the mEmailAddressList

getBaseUrl

public java.lang.String getBaseUrl()
Deprecated. 
Returns:
the mBaseUrl

getActiveForwardingList

public java.util.List<java.lang.Integer> getActiveForwardingList()
Deprecated. 
Returns:
the mActiveForwardingList