public class NotificationOptions extends Object
Constructor and Description |
---|
NotificationOptions(String url) |
Modifier and Type | Method and Description |
---|---|
org.json.JSONObject |
getMessage()
Gets Message property of the notification
|
String |
getMessageText()
Gets Message property of the notification as String
|
Integer |
getTimeout()
Gets timeout property of the notification
|
String |
getURL()
Gets URL property of the notification
|
void |
setMessage(org.json.JSONObject message)
Sets Message property of the notification
|
void |
setMessageText(String message)
Sets Message property of the notification as String
|
void |
setTimeout(Integer timeout)
Sets timeout property of the notification
|
void |
setURL(String url)
Sets URL property of the notification
|
public NotificationOptions(String url)
public String getURL()
public void setURL(String url)
url
- URL of the notificationpublic org.json.JSONObject getMessage()
public void setMessage(org.json.JSONObject message)
message
- value of messagepublic String getMessageText()
public void setMessageText(String message)
message
- text of the messagepublic Integer getTimeout()
public void setTimeout(Integer timeout)
timeout
- in millisecondsCopyright © 2017. All rights reserved.