Table of Contents

Class SocketInteraction

Namespace
HeyBox.WebSocket
Assembly
HeyBox.Net.WebSocket.dll

表示一个通过网关接收的交互。

public abstract class SocketInteraction : SocketEntity<ulong>, IHeyBoxInteraction, IEntity<ulong>
Inheritance
SocketInteraction
Implements
Derived
Inherited Members

Properties

Channel

获取执行此交互所在的频道。

public ISocketMessageChannel Channel { get; }

Property Value

ISocketMessageChannel

ChannelId

获取执行此交互所在的频道的 ID。

public ulong ChannelId { get; }

Property Value

ulong

Data

获取此交互的数据。

public IHeyBoxInteractionData Data { get; protected set; }

Property Value

IHeyBoxInteractionData

MessageId

获取此交互来源的消息的 ID。

public ulong MessageId { get; }

Property Value

ulong

RoomId

获取执行此交互所在的房间的 ID。

public ulong? RoomId { get; }

Property Value

ulong?

Type

获取此交互的类型。

public InteractionType Type { get; protected set; }

Property Value

InteractionType

User

获取执行此交互的用户。

public SocketUser? User { get; }

Property Value

SocketUser

UserId

获取执行此交互的用户的 ID。

public uint UserId { get; }

Property Value

uint