Package io.getstream.chat.java.models
Class Event
- java.lang.Object
-
- io.getstream.chat.java.models.Event
-
public class Event extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Event.EventRequestObject
static class
Event.EventSendRequestData
static class
Event.EventSendResponse
static class
Event.EventSendUserCustomRequestData
static class
Event.EventUserCustomRequestObject
-
Constructor Summary
Constructors Constructor Description Event()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.util.Map<java.lang.String,java.lang.Object>
getAdditionalFields()
@Nullable java.lang.Boolean
getAutomoderation()
@Nullable Message.Moderation
getAutomoderationScores()
@Nullable Channel
getChannel()
@Nullable java.lang.String
getChannelId()
@Nullable java.lang.String
getChannelType()
@Nullable java.lang.String
getCid()
@Nullable java.lang.String
getConnectionId()
@Nullable java.util.Date
getCreatedAt()
@Nullable User
getCreatedBy()
@Nullable User.OwnUser
getMe()
@Nullable Channel.ChannelMember
getMember()
@Nullable Message
getMessage()
@Nullable java.lang.String
getParentId()
@Nullable Reaction
getReaction()
@Nullable java.lang.String
getReason()
@Nullable java.lang.String
getTeam()
@Nullable java.lang.String
getType()
@Nullable User
getUser()
@Nullable java.lang.String
getUserId()
@Nullable java.lang.Integer
getWatcherCount()
int
hashCode()
static @NotNull Event.EventSendRequestData.EventSendRequest
send(@NotNull java.lang.String channelType, @NotNull java.lang.String channelId)
Creates a send requeststatic @NotNull Event.EventSendUserCustomRequestData.EventSendUserCustomRequest
sendUserCustom(@NotNull java.lang.String userId)
Creates a send requestvoid
setAdditionalField(java.lang.String name, java.lang.Object value)
void
setAdditionalFields(@NotNull java.util.Map<java.lang.String,java.lang.Object> additionalFields)
void
setAutomoderation(@Nullable java.lang.Boolean automoderation)
void
setAutomoderationScores(@Nullable Message.Moderation automoderationScores)
void
setChannel(@Nullable Channel channel)
void
setChannelId(@Nullable java.lang.String channelId)
void
setChannelType(@Nullable java.lang.String channelType)
void
setCid(@Nullable java.lang.String cid)
void
setConnectionId(@Nullable java.lang.String connectionId)
void
setCreatedAt(@Nullable java.util.Date createdAt)
void
setCreatedBy(@Nullable User createdBy)
void
setMe(@Nullable User.OwnUser me)
void
setMember(@Nullable Channel.ChannelMember member)
void
setMessage(@Nullable Message message)
void
setParentId(@Nullable java.lang.String parentId)
void
setReaction(@Nullable Reaction reaction)
void
setReason(@Nullable java.lang.String reason)
void
setTeam(@Nullable java.lang.String team)
void
setType(@Nullable java.lang.String type)
void
setUser(@Nullable User user)
void
setUserId(@Nullable java.lang.String userId)
void
setWatcherCount(@Nullable java.lang.Integer watcherCount)
java.lang.String
toString()
-
-
-
Method Detail
-
getAdditionalFields
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalFields()
-
setAdditionalField
public void setAdditionalField(java.lang.String name, java.lang.Object value)
-
send
@NotNull public static @NotNull Event.EventSendRequestData.EventSendRequest send(@NotNull @NotNull java.lang.String channelType, @NotNull @NotNull java.lang.String channelId)
Creates a send request- Parameters:
channelType
- the channel typechannelId
- the channel id- Returns:
- the created request
-
sendUserCustom
@NotNull public static @NotNull Event.EventSendUserCustomRequestData.EventSendUserCustomRequest sendUserCustom(@NotNull @NotNull java.lang.String userId)
Creates a send request- Parameters:
userId
- the user id- Returns:
- the created request
-
getType
@Nullable public @Nullable java.lang.String getType()
-
getConnectionId
@Nullable public @Nullable java.lang.String getConnectionId()
-
getCid
@Nullable public @Nullable java.lang.String getCid()
-
getChannelId
@Nullable public @Nullable java.lang.String getChannelId()
-
getChannelType
@Nullable public @Nullable java.lang.String getChannelType()
-
getMessage
@Nullable public @Nullable Message getMessage()
-
getReaction
@Nullable public @Nullable Reaction getReaction()
-
getChannel
@Nullable public @Nullable Channel getChannel()
-
getMember
@Nullable public @Nullable Channel.ChannelMember getMember()
-
getUser
@Nullable public @Nullable User getUser()
-
getUserId
@Nullable public @Nullable java.lang.String getUserId()
-
getMe
@Nullable public @Nullable User.OwnUser getMe()
-
getWatcherCount
@Nullable public @Nullable java.lang.Integer getWatcherCount()
-
getReason
@Nullable public @Nullable java.lang.String getReason()
-
getCreatedBy
@Nullable public @Nullable User getCreatedBy()
-
getAutomoderation
@Nullable public @Nullable java.lang.Boolean getAutomoderation()
-
getAutomoderationScores
@Nullable public @Nullable Message.Moderation getAutomoderationScores()
-
getParentId
@Nullable public @Nullable java.lang.String getParentId()
-
getTeam
@Nullable public @Nullable java.lang.String getTeam()
-
getCreatedAt
@Nullable public @Nullable java.util.Date getCreatedAt()
-
setType
public void setType(@Nullable @Nullable java.lang.String type)
-
setConnectionId
public void setConnectionId(@Nullable @Nullable java.lang.String connectionId)
-
setCid
public void setCid(@Nullable @Nullable java.lang.String cid)
-
setChannelId
public void setChannelId(@Nullable @Nullable java.lang.String channelId)
-
setChannelType
public void setChannelType(@Nullable @Nullable java.lang.String channelType)
-
setMessage
public void setMessage(@Nullable @Nullable Message message)
-
setReaction
public void setReaction(@Nullable @Nullable Reaction reaction)
-
setChannel
public void setChannel(@Nullable @Nullable Channel channel)
-
setMember
public void setMember(@Nullable @Nullable Channel.ChannelMember member)
-
setUser
public void setUser(@Nullable @Nullable User user)
-
setUserId
public void setUserId(@Nullable @Nullable java.lang.String userId)
-
setMe
public void setMe(@Nullable @Nullable User.OwnUser me)
-
setWatcherCount
public void setWatcherCount(@Nullable @Nullable java.lang.Integer watcherCount)
-
setReason
public void setReason(@Nullable @Nullable java.lang.String reason)
-
setCreatedBy
public void setCreatedBy(@Nullable @Nullable User createdBy)
-
setAutomoderation
public void setAutomoderation(@Nullable @Nullable java.lang.Boolean automoderation)
-
setAutomoderationScores
public void setAutomoderationScores(@Nullable @Nullable Message.Moderation automoderationScores)
-
setParentId
public void setParentId(@Nullable @Nullable java.lang.String parentId)
-
setTeam
public void setTeam(@Nullable @Nullable java.lang.String team)
-
setCreatedAt
public void setCreatedAt(@Nullable @Nullable java.util.Date createdAt)
-
setAdditionalFields
public void setAdditionalFields(@NotNull @NotNull java.util.Map<java.lang.String,java.lang.Object> additionalFields)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-