Skills GameOn SDK

Index

Enumerations

Classes

Interfaces

Type aliases

Variables

Functions

Type aliases

OrdinalFunc

OrdinalFunc: function

Type declaration

    • (num: number): string
    • Parameters

      • num: number

      Returns string

Variables

Const DEFAULT_NUMBER_OF_UNIQUE_AVATARS

DEFAULT_NUMBER_OF_UNIQUE_AVATARS: 500 = 500

Default number of avatar images.

Const DEFAULT_REFRESH_SESSION_BUFFER

DEFAULT_REFRESH_SESSION_BUFFER: 60 = 60

Const NUMBER_OF_MS_PER_SECOND

NUMBER_OF_MS_PER_SECOND: 1000 = 1000

Const NUMBER_OF_SECONDS_PER_MINUTE

NUMBER_OF_SECONDS_PER_MINUTE: 60 = 60

Const ORDINAL

ORDINAL: any = require('ordinal')

Const RADIX_DECIMAL

RADIX_DECIMAL: 10 = 10

Const ordinal

ordinal: any = require('ordinal')

Functions

Private arrayToObjectHeader

  • arrayToObjectHeader(header: Array<object>): object

getHash

  • getHash(id: string | number): Buffer

getPlayerProfile

getPlayerScore

  • getPlayerScore(item: GetMatchLeaderboardResponseLeaderboardItem): PlayerScore

Private objectToArrayHeader

  • objectToArrayHeader(header: object): Array<object>
  • Converts JSON header object to header array required for {ApiClientResponse}

    Parameters

    • header: object

      JSON header object returned by HTTP client

      • [key: string]: string | string[]

    Returns Array<object>

    []}

renderLeaderboard

Brought to you with ❤ by the Alexa Games team at Amazon. © 2019, Amazon.com, Inc. or its affiliates. All Rights Reserved.