Class SocketInteraction
表示一个通过网关接收的交互。
public abstract class SocketInteraction : SocketEntity<ulong>, IHeyBoxInteraction, IEntity<ulong>
- Inheritance
-
SocketInteraction
- Implements
- Derived
- Inherited Members
Properties
Channel
获取执行此交互所在的频道。
public ISocketMessageChannel Channel { get; }
Property Value
ChannelId
获取执行此交互所在的频道的 ID。
public ulong ChannelId { get; }
Property Value
Data
获取此交互的数据。
public IHeyBoxInteractionData Data { get; protected set; }
Property Value
MessageId
获取此交互来源的消息的 ID。
public ulong MessageId { get; }
Property Value
RoomId
获取执行此交互所在的房间的 ID。
public ulong? RoomId { get; }
Property Value
Type
获取此交互的类型。
public InteractionType Type { get; protected set; }
Property Value
User
获取执行此交互的用户。
public SocketUser? User { get; }
Property Value
UserId
获取执行此交互的用户的 ID。
public uint UserId { get; }