@heybox/hb-sdk API Reference - v0.9.5
    正在准备搜索索引...

    接口 SteamGameListItem

    经过 Runtime 规范化的 Steam 游戏库条目。

    原始记录缺少有效 appid、steamAppid/appid 或非空 name 时,整条记录会从 gameList 中移除。其余可选字段在服务端缺失、为空或类型无效时会被省略,而不是填充 null。

    interface SteamGameListItem {
        appid: number;
        icon?: string;
        image?: string;
        name: string;
        playtime2Weeks?: number;
        playtimeForever?: number;
        portraitImage?: string;
        steamAppid: number;
        tags?: string[];
    }
    索引

    属性

    appid: number

    游戏在小黑盒游戏目录中的有限数值 ID。

    icon?: string

    非空的 Steam 图标 URL 字符串;优先读取服务端 appicon。

    image?: string

    非空的游戏封面或主图 URL 字符串;Runtime 不保证 URL 协议。

    name: string

    trim 后的非空游戏名称。

    playtime2Weeks?: number

    当前接口返回的最近两周游玩时长,单位为秒;0 是有效值。该单位只适用于本接口响应。

    playtimeForever?: number

    当前接口返回的累计游玩时长,单位为秒;0 是有效值。该单位只适用于本接口响应。

    portraitImage?: string

    非空的竖版游戏封面 URL;不可用时省略,可回退使用 image。Runtime 不保证 URL 协议。

    steamAppid: number

    Steam App ID;服务端未提供有效值时回退为 appid。

    tags?: string[]

    trim 后的非空游戏标签;没有有效标签时整个字段省略。