com.techventus.server.voice.datatypes
Class Setting
java.lang.Object
com.techventus.server.voice.datatypes.Setting
public class Setting
- extends java.lang.Object
Constructor Summary |
Setting(gvjava.org.json.JSONObject settingsJSON)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Setting
public Setting(gvjava.org.json.JSONObject settingsJSON)
throws gvjava.org.json.JSONException
- Throws:
gvjava.org.json.JSONException
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()
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 mDisabledIdList
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 int 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:
mDisabledIdList
- the mDisabledIdList 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(int 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