public class NotificationEvent
extends java.lang.Object
IEventService
,
EventType
Constructor and Description |
---|
NotificationEvent(@NonNull EventType type,
@NonNull java.lang.String channel,
@NonNull java.lang.String message)
Constructor for internal use.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getChannel() |
com.google.gson.JsonObject |
getData() |
java.lang.String |
getMessage() |
EventType |
getType() |
int |
hashCode() |
java.lang.String |
toString() |
public NotificationEvent(@NonNull @NonNull EventType type, @NonNull @NonNull java.lang.String channel, @NonNull @NonNull java.lang.String message)
type
- the notification typechannel
- the channelmessage
- the notification datapublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
protected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode
in class java.lang.Object
public EventType getType()
public java.lang.String getChannel()
public java.lang.String getMessage()
public java.lang.String toString()
toString
in class java.lang.Object
public com.google.gson.JsonObject getData()