com.techventus.server.voice.datatypes
Class Setting

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

public class Setting
extends java.lang.Object

Accountsettings - subtype of AllSettings

Author:
tobias eisentraeger

Constructor Summary
Setting(gvjava.org.json.JSONObject settingsJSON)
           
 
Method Summary
 java.lang.String getBaseUrl()
           
 int getCredits()
           
 int getDefaultGreetingId()
           
 EmailAddress[] getEmailAddresses()
           
 java.lang.String getEmailNotificationAddress()
           
 Greeting[] getGreetings()
           
 Greeting[] getGreetingsSorted()
           
 java.lang.String[] getGroupList()
           
 java.util.List<java.lang.String> getGroupListAsList()
           
 Group[] getGroups()
           
 java.lang.String getLanguage()
           
 int[] getmActiveForwardingList()
           
 java.lang.String[] getmDidInfos()
           
 DisabledId[] getmDisabledIdList()
           
 java.lang.String getPrimaryDid()
           
 int getScreenBehavior()
           
 java.lang.String[] getSmsNotifications()
           
 java.lang.String getSpam()
           
 java.lang.String getTimezone()
           
 boolean isDirectConnect()
           
 boolean isDoNotDisturb()
           
 boolean isEmailNotificationActive()
           
 boolean isShowTranscripts()
           
 boolean isSmsToEmailActive()
           
 boolean isSmsToEmailSubject()
           
 boolean isUseDidAsCallerId()
           
 boolean isUseDidAsSource()
           
 void setBaseUrl(java.lang.String baseUrl)
           
 void setCredits(int credits)
           
 void setDefaultGreetingId(int defaultGreetingId)
           
 void setDirectConnect(boolean directConnect)
           
 void setDoNotDisturb(boolean doNotDisturb)
           
 void setEmailAddresses(EmailAddress[] emailAddresses)
           
 void setEmailNotificationActive(boolean emailNotificationActive)
           
 void setEmailNotificationAddress(java.lang.String emailNotificationAddress)
           
 void setGreetings(Greeting[] greetings)
           
 void setGroupList(java.lang.String[] groupList)
           
 void setGroups(Group[] groups)
           
 void setLanguage(java.lang.String language)
           
 void setmActiveForwardingList(int[] mActiveForwardingList)
           
 void setmDidInfos(java.lang.String[] mDidInfos)
           
 void setmDisabledIdList(DisabledId[] mDisabledIdList)
           
 void setPrimaryDid(java.lang.String primaryDid)
           
 void setScreenBehavior(int screenBehavior)
           
 void setShowTranscripts(boolean showTranscripts)
           
 void setSmsNotifications(java.lang.String[] smsNotifications)
           
 void setSmsToEmailActive(boolean smsToEmailActive)
           
 void setSmsToEmailSubject(boolean smsToEmailSubject)
           
 void setSpam(java.lang.String spam)
           
 void setTimezone(java.lang.String timezone)
           
 void setUseDidAsCallerId(boolean useDidAsCallerId)
           
 void setUseDidAsSource(boolean useDidAsSource)
           
 java.lang.String toJson()
          Make a JSON text of the Settings.
 gvjava.org.json.JSONObject toJsonObject()
          Convert this Settings Object to its JsonObject Representation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Setting

public Setting(gvjava.org.json.JSONObject settingsJSON)
        throws gvjava.org.json.JSONException
Throws:
gvjava.org.json.JSONException
Method Detail

toJson

public java.lang.String toJson()
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).

toJsonObject

public gvjava.org.json.JSONObject toJsonObject()
Convert this Settings Object to its JsonObject Representation.

Returns:
the jSON object

getmActiveForwardingList

public int[] getmActiveForwardingList()
Returns:
the mActiveForwardingList

getBaseUrl

public java.lang.String getBaseUrl()
Returns:
the baseUrl

getCredits

public int getCredits()
Returns:
the credits

getDefaultGreetingId

public int getDefaultGreetingId()
Returns:
the defaultGreetingId

getmDidInfos

public java.lang.String[] getmDidInfos()
Returns:
the mDidInfos

isDirectConnect

public boolean isDirectConnect()
Returns:
the directConnect

getmDisabledIdList

public DisabledId[] getmDisabledIdList()
Returns:
the mDisabledIdMap

isDoNotDisturb

public boolean isDoNotDisturb()
Returns:
the doNotDisturb

getEmailAddresses

public EmailAddress[] getEmailAddresses()
Returns:
the emailAddresses

isEmailNotificationActive

public boolean isEmailNotificationActive()
Returns:
the emailNotificationActive

getEmailNotificationAddress

public java.lang.String getEmailNotificationAddress()
Returns:
the emailNotificationAddress

getGreetings

public Greeting[] getGreetings()
Returns:
the greetings

getGreetingsSorted

public Greeting[] getGreetingsSorted()
Returns:
the greetings

getGroupList

public java.lang.String[] getGroupList()
Returns:
the groupList

getGroupListAsList

public java.util.List<java.lang.String> getGroupListAsList()
Returns:
the groupList as List

getGroups

public Group[] getGroups()
Returns:
the groups

getLanguage

public java.lang.String getLanguage()
Returns:
the language

getPrimaryDid

public java.lang.String getPrimaryDid()
Returns:
the primaryDid

getScreenBehavior

public int getScreenBehavior()
Returns:
the screenBehavior

isShowTranscripts

public boolean isShowTranscripts()
Returns:
the showTranscripts

getSmsNotifications

public java.lang.String[] getSmsNotifications()
Returns:
the smsNotifications

isSmsToEmailActive

public boolean isSmsToEmailActive()
Returns:
the smsToEmailActive

isSmsToEmailSubject

public boolean isSmsToEmailSubject()
Returns:
the smsToEmailSubject

getSpam

public java.lang.String getSpam()
Returns:
the spam

getTimezone

public java.lang.String getTimezone()
Returns:
the timezone

isUseDidAsCallerId

public boolean isUseDidAsCallerId()
Returns:
the useDidAsCallerId

isUseDidAsSource

public boolean isUseDidAsSource()
Returns:
the useDidAsSource

setmActiveForwardingList

public void setmActiveForwardingList(int[] mActiveForwardingList)
Parameters:
mActiveForwardingList - the mActiveForwardingList to set

setBaseUrl

public void setBaseUrl(java.lang.String baseUrl)
Parameters:
baseUrl - the baseUrl to set

setCredits

public void setCredits(int credits)
Parameters:
credits - the credits to set

setDefaultGreetingId

public void setDefaultGreetingId(int defaultGreetingId)
Parameters:
defaultGreetingId - the defaultGreetingId to set

setmDidInfos

public void setmDidInfos(java.lang.String[] mDidInfos)
Parameters:
mDidInfos - the mDidInfos to set

setDirectConnect

public void setDirectConnect(boolean directConnect)
Parameters:
directConnect - the directConnect to set

setmDisabledIdList

public void setmDisabledIdList(DisabledId[] mDisabledIdList)
Parameters:
mDisabledIdMap - the mDisabledIdMap to set

setDoNotDisturb

public void setDoNotDisturb(boolean doNotDisturb)
Parameters:
doNotDisturb - the doNotDisturb to set

setEmailAddresses

public void setEmailAddresses(EmailAddress[] emailAddresses)
Parameters:
emailAddresses - the emailAddresses to set

setEmailNotificationActive

public void setEmailNotificationActive(boolean emailNotificationActive)
Parameters:
emailNotificationActive - the emailNotificationActive to set

setEmailNotificationAddress

public void setEmailNotificationAddress(java.lang.String emailNotificationAddress)
Parameters:
emailNotificationAddress - the emailNotificationAddress to set

setGreetings

public void setGreetings(Greeting[] greetings)
Parameters:
greetings - the greetings to set

setGroupList

public void setGroupList(java.lang.String[] groupList)
Parameters:
groupList - the groupList to set

setGroups

public void setGroups(Group[] groups)
Parameters:
groups - the groups to set

setLanguage

public void setLanguage(java.lang.String language)
Parameters:
language - the language to set

setPrimaryDid

public void setPrimaryDid(java.lang.String primaryDid)
Parameters:
primaryDid - the primaryDid to set

setScreenBehavior

public void setScreenBehavior(int screenBehavior)
Parameters:
screenBehavior - the screenBehavior to set

setShowTranscripts

public void setShowTranscripts(boolean showTranscripts)
Parameters:
showTranscripts - the showTranscripts to set

setSmsNotifications

public void setSmsNotifications(java.lang.String[] smsNotifications)
Parameters:
smsNotifications - the smsNotifications to set

setSmsToEmailActive

public void setSmsToEmailActive(boolean smsToEmailActive)
Parameters:
smsToEmailActive - the smsToEmailActive to set

setSmsToEmailSubject

public void setSmsToEmailSubject(boolean smsToEmailSubject)
Parameters:
smsToEmailSubject - the smsToEmailSubject to set

setSpam

public void setSpam(java.lang.String spam)
Parameters:
spam - the spam to set

setTimezone

public void setTimezone(java.lang.String timezone)
Parameters:
timezone - the timezone to set

setUseDidAsCallerId

public void setUseDidAsCallerId(boolean useDidAsCallerId)
Parameters:
useDidAsCallerId - the useDidAsCallerId to set

setUseDidAsSource

public void setUseDidAsSource(boolean useDidAsSource)
Parameters:
useDidAsSource - the useDidAsSource to set