public class PaperDocChangeSubscriptionDetails
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
eventUuid |
protected java.lang.String |
newSubscriptionLevel |
protected java.lang.String |
previousSubscriptionLevel |
Constructor and Description |
---|
PaperDocChangeSubscriptionDetails(java.lang.String eventUuid,
java.lang.String newSubscriptionLevel)
Followed/unfollowed Paper doc.
|
PaperDocChangeSubscriptionDetails(java.lang.String eventUuid,
java.lang.String newSubscriptionLevel,
java.lang.String previousSubscriptionLevel)
Followed/unfollowed Paper doc.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getEventUuid()
Event unique identifier.
|
java.lang.String |
getNewSubscriptionLevel()
New doc subscription level.
|
java.lang.String |
getPreviousSubscriptionLevel()
Previous doc subscription level.
|
int |
hashCode() |
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final java.lang.String eventUuid
protected final java.lang.String newSubscriptionLevel
protected final java.lang.String previousSubscriptionLevel
public PaperDocChangeSubscriptionDetails(java.lang.String eventUuid, java.lang.String newSubscriptionLevel, java.lang.String previousSubscriptionLevel)
eventUuid
- Event unique identifier. Must not be null
.newSubscriptionLevel
- New doc subscription level. Must not be
null
.previousSubscriptionLevel
- Previous doc subscription level. Might
be missing due to historical data gap.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public PaperDocChangeSubscriptionDetails(java.lang.String eventUuid, java.lang.String newSubscriptionLevel)
The default values for unset fields will be used.
eventUuid
- Event unique identifier. Must not be null
.newSubscriptionLevel
- New doc subscription level. Must not be
null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public java.lang.String getEventUuid()
null
.public java.lang.String getNewSubscriptionLevel()
null
.public java.lang.String getPreviousSubscriptionLevel()
null
if not present.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.