Table of Contents

Interface IChannel

Namespace
HeyBox
Assembly
HeyBox.Net.Core.dll

表示一个通用的频道。

public interface IChannel : IEntity<ulong>
Inherited Members
Extension Methods

Properties

Name

获取此频道的名称。

string? Name { get; }

Property Value

string

Methods

GetUserAsync(uint, CacheMode, RequestOptions?)

获取此频道中的用户。

Task<IUser?> GetUserAsync(uint id, CacheMode mode = CacheMode.AllowDownload, RequestOptions? options = null)

Parameters

id uint

要获取的用户的 ID。

mode CacheMode

指示当前方法是否应该仅从缓存中获取结果,还是可以通过 API 请求获取数据。

options RequestOptions

发送请求时要使用的选项。

Returns

Task<IUser>

一个表示异步获取操作的任务。任务结果包含表示找到的用户;如果没有找到,则返回 null