Class UserRecipient
java.lang.Object
com.onenetwork.platform.integ.push.UserRecipient
- All Implemented Interfaces:
PushRecipient
public class UserRecipient extends java.lang.Object implements PushRecipient
PushRecipient
that uses user name and enterprise name as the identifier.-
Constructor Summary
Constructors Constructor Description UserRecipient(java.lang.String userName, java.lang.String entName)
-
Method Summary
Modifier and Type Method Description static UserRecipient
fromJSON(org.json.JSONObject jsonObj)
java.lang.String
getEntName()
java.lang.String
getUserName()
org.json.JSONObject
toJSON()
-
Constructor Details
-
UserRecipient
public UserRecipient(java.lang.String userName, java.lang.String entName)
-
-
Method Details
-
getUserName
public java.lang.String getUserName()- Returns:
- the userName
-
getEntName
public java.lang.String getEntName()- Returns:
- the entName
-
toJSON
public org.json.JSONObject toJSON()- Specified by:
toJSON
in interfacePushRecipient
-
fromJSON
-