SongGuess
    Preparing search index...

    Class QuestionAbstract

    Hierarchy (View Summary)

    Index

    Constructors

    • Constructs a question asking which is the correct song.

      Parameters

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

        The correct song for this question.

        • 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 Question

    Properties

    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