org.starhope.appius.user.notifications
Class NotificationReplyVerb

java.lang.Object
  extended by org.starhope.appius.user.notifications.NotificationReplyVerb
All Implemented Interfaces:
Serializable, CastsToJSON

public class NotificationReplyVerb
extends Object
implements CastsToJSON

WRITEME: Document this type.

Author:
twheys@gmail.com, brpocock@star-hope.org
See Also:
Serialized Form

Field Summary
private  String labelKey
          WRITEME: Document this brpocock@star-hope.org
private  String payload
          WRITEME: Document this brpocock@star-hope.org
private static long serialVersionUID
          WRITEME: Document this brpocock@star-hope.org
private  String verb
          WRITEME: Document this brpocock@star-hope.org
 
Constructor Summary
NotificationReplyVerb(String verbPair)
           
NotificationReplyVerb(String newVerb, String newLabelKey)
           
 
Method Summary
 String getLabelKey()
           
 String getPayload()
           
 String getVerb()
           
 void setPayload(String newPayload)
           
 org.json.JSONObject toJSON()
          This returns a copy of the object's data cast into a JSON form.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
WRITEME: Document this brpocock@star-hope.org

See Also:
Constant Field Values

labelKey

private final String labelKey
WRITEME: Document this brpocock@star-hope.org


payload

private String payload
WRITEME: Document this brpocock@star-hope.org


verb

private final String verb
WRITEME: Document this brpocock@star-hope.org

Constructor Detail

NotificationReplyVerb

public NotificationReplyVerb(String verbPair)
Parameters:
verbPair - string used as both the verb and label key

NotificationReplyVerb

public NotificationReplyVerb(String newVerb,
                             String newLabelKey)
Parameters:
newVerb - the verb
newLabelKey - the label key
Method Detail

getLabelKey

public String getLabelKey()
Returns:
the labelKey

getPayload

public String getPayload()
Returns:
the payload

getVerb

public String getVerb()
Returns:
the verb

setPayload

public void setPayload(String newPayload)
Parameters:
newPayload - the payload to set

toJSON

public org.json.JSONObject toJSON()
Description copied from interface: CastsToJSON
This returns a copy of the object's data cast into a JSON form.

Specified by:
toJSON in interface CastsToJSON
Returns:
The string representing this object in JSON format
See Also:
CastsToJSON.toJSON()

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()