genshin-manager
    Preparing search index...

    Class Notice

    Class for compiling in-game announcement information

    Index

    Constructors

    • Create a Notice

      Parameters

      • annList: DataList

        AnnList

      • annContent: ContentList

        AnnContent

      • enAnnContent: ContentList

        AnnContent(lang=en)

      • region: "cn_gf01" | "cn_qd01" | "os_usa" | "os_euro" | "os_asia" | "os_cht"

        Region

      Returns Notice

    Properties

    $: CheerioAPI

    Notice content DOM(jQuery)

    This property does not exclude table tags

    banner: ImageAssets

    Notice banner

    eventEnd: undefined | Date

    Event end time

    If undefined, use getEventDuration()

    eventStart: undefined | Date

    Event start time

    If undefined, use getEventDuration()

    id: number

    Notice ID

    lang: ValueOf<
        {
            de: "de-de";
            en: "en-us";
            es: "es-es";
            fr: "fr-fr";
            id: "id-id";
            ja: "ja-jp";
            ko: "ko-kr";
            pt: "pt-br";
            ru: "ru-ru";
            th: "th-th";
            vi: "vi-vn";
            "zh-cn": "zh-cn";
            "zh-tw": "zh-tw";
        },
    >

    Notice language

    region: "cn_gf01" | "cn_qd01" | "os_usa" | "os_euro" | "os_asia" | "os_cht"

    Notice region

    rewardImg: undefined | ImageAssets

    Reward image

    subtitle: string

    Notice subtitle

    tag: number

    Notice tag (1:! 2:star 3:flag)

    tagIcon: ImageAssets

    Notice tag icon

    title: string

    Notice title

    type: number

    Notice type (1:event or 2:important)

    typeLabel: string

    Notice type label (event or important)

    version: number

    Notice remind version

    Accessors

    • get eventDuration(): undefined | string

      Get the duration of the event

      Returns undefined | string

      Event duration

    • get text(): string

      Get the text of the notice

      Returns string

      Notice all text

      This method does not exclude table tags