SongGuess
    Preparing search index...

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • questionCurrent: number
      • pickerId: string
      • song: {
            artist: string;
            audioURL: string;
            cover: string | null;
            hrefURL: string;
            name: string;
        }
        • artist: string

          The name of the song artist.

        • audioURL: string

          A URL to the audio file of the song. Currently only audio previews from Apple Music and SoundCloud are allowed.

        • cover: string | null

          Cover URL of the song.

        • hrefURL: string

          The URL users will be redirected to when clicking.

        • name: string

          The name of the song.

      Returns PlayerPicksQuestion

    Properties

    pickerId: string
    questionCount: number = -1

    The amount of questions shown. Must be set before getQuestionMessage is called.

    questionCurrent: number
    song: {
        artist: string;
        audioURL: string;
        cover: string | null;
        hrefURL: string;
        name: string;
    }

    The correct song for this question.

    Type Declaration

    • artist: string

      The name of the song artist.

    • audioURL: string

      A URL to the audio file of the song. Currently only audio previews from Apple Music and SoundCloud are allowed.

    • cover: string | null

      Cover URL of the song.

    • hrefURL: string

      The URL users will be redirected to when clicking.

    • name: string

      The name of the song.

    startPos: number = ...

    The random/user-defined audio start position index (0-2) for this question.

    RoomConfigMessageSchema.audioStartPosition

    Methods

    • Returns the round message for the current phase.

      Parameters

      Returns {
          correctAnswer?: {
              artist: string;
              audioURL: string;
              cover: string | null;
              hrefURL: string;
              name: string;
          };
          pickerId: string;
          questionCount: number;
          questionCurrent: number;
          questionType: "player_picks";
          startPos: number;
      }

      • OptionalcorrectAnswer?: {
            artist: string;
            audioURL: string;
            cover: string | null;
            hrefURL: string;
            name: string;
        }

        The correct song that was requested this round, if answer is shown.

        • artist: string

          The name of the song artist.

        • audioURL: string

          A URL to the audio file of the song. Currently only audio previews from Apple Music and SoundCloud are allowed.

        • cover: string | null

          Cover URL of the song.

        • hrefURL: string

          The URL users will be redirected to when clicking.

        • name: string

          The name of the song.

      • pickerId: string

        The picker uuid for this message

      • questionCount: number

        The amount of questions in this round.

      • questionCurrent: number

        The current question number in this round.

      • questionType: "player_picks"
      • startPos: number

        The random/user-defined audio start position index (0-2) for the current question.

        RoomConfigMessageSchema.audioStartPosition