LeaderboardConfigurations

リーダーボードの構成を表します。

このリソースのメソッドの一覧は、このページの最後に掲載されています。

リソース表記

これは、リーダーボード設定リソース用の JSON テンプレートです。

{
  "kind": "gamesConfiguration#leaderboardConfiguration",
  "token": string,
  "id": string,
  "scoreOrder": string,
  "scoreMin": long,
  "scoreMax": long,
  "draft": {
    "kind": "gamesConfiguration#leaderboardConfigurationDetail",
    "name": {
      "kind": "gamesConfiguration#localizedStringBundle",
      "translations": [
        {
          "kind": "gamesConfiguration#localizedString",
          "locale": string,
          "value": string
        }
      ]
    },
    "iconUrl": string,
    "sortRank": integer,
    "scoreFormat": {
      "numberFormatType": string,
      "suffix": {
        "zero": {
          "kind": "gamesConfiguration#localizedStringBundle",
          "translations": [
            {
              "kind": "gamesConfiguration#localizedString",
              "locale": string,
              "value": string
            }
          ]
        },
        "one": {
          "kind": "gamesConfiguration#localizedStringBundle",
          "translations": [
            {
              "kind": "gamesConfiguration#localizedString",
              "locale": string,
              "value": string
            }
          ]
        },
        "two": {
          "kind": "gamesConfiguration#localizedStringBundle",
          "translations": [
            {
              "kind": "gamesConfiguration#localizedString",
              "locale": string,
              "value": string
            }
          ]
        },
        "few": {
          "kind": "gamesConfiguration#localizedStringBundle",
          "translations": [
            {
              "kind": "gamesConfiguration#localizedString",
              "locale": string,
              "value": string
            }
          ]
        },
        "many": {
          "kind": "gamesConfiguration#localizedStringBundle",
          "translations": [
            {
              "kind": "gamesConfiguration#localizedString",
              "locale": string,
              "value": string
            }
          ]
        },
        "other": {
          "kind": "gamesConfiguration#localizedStringBundle",
          "translations": [
            {
              "kind": "gamesConfiguration#localizedString",
              "locale": string,
              "value": string
            }
          ]
        }
      },
      "numDecimalPlaces": integer,
      "currencyCode": string
    }
  },
  "published": {
    "kind": "gamesConfiguration#leaderboardConfigurationDetail",
    "name": {
      "kind": "gamesConfiguration#localizedStringBundle",
      "translations": [
        {
          "kind": "gamesConfiguration#localizedString",
          "locale": string,
          "value": string
        }
      ]
    },
    "iconUrl": string,
    "sortRank": integer,
    "scoreFormat": {
      "numberFormatType": string,
      "suffix": {
        "zero": {
          "kind": "gamesConfiguration#localizedStringBundle",
          "translations": [
            {
              "kind": "gamesConfiguration#localizedString",
              "locale": string,
              "value": string
            }
          ]
        },
        "one": {
          "kind": "gamesConfiguration#localizedStringBundle",
          "translations": [
            {
              "kind": "gamesConfiguration#localizedString",
              "locale": string,
              "value": string
            }
          ]
        },
        "two": {
          "kind": "gamesConfiguration#localizedStringBundle",
          "translations": [
            {
              "kind": "gamesConfiguration#localizedString",
              "locale": string,
              "value": string
            }
          ]
        },
        "few": {
          "kind": "gamesConfiguration#localizedStringBundle",
          "translations": [
            {
              "kind": "gamesConfiguration#localizedString",
              "locale": string,
              "value": string
            }
          ]
        },
        "many": {
          "kind": "gamesConfiguration#localizedStringBundle",
          "translations": [
            {
              "kind": "gamesConfiguration#localizedString",
              "locale": string,
              "value": string
            }
          ]
        },
        "other": {
          "kind": "gamesConfiguration#localizedStringBundle",
          "translations": [
            {
              "kind": "gamesConfiguration#localizedString",
              "locale": string,
              "value": string
            }
          ]
        }
      },
      "numDecimalPlaces": integer,
      "currencyCode": string
    }
  }
}
プロパティ名 説明 メモ
kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#leaderboardConfiguration です。
token string このリソースのトークン。
id string リーダーボードの ID。
scoreOrder string リーダーボードのタイプ。
有効な値は次のとおりです。
  • LARGER_IS_BETTER」 - 投稿されたスコアが大きいほどランクが高くなります。
  • SMALLER_IS_BETTER」 - 投稿されたスコアが小さいほど上位にランクされます。
scoreMin long このリーダーボードに投稿できる最小スコア。
scoreMax long このリーダーボードに投稿できる最高スコア。
draft nested object リーダーボードのドラフトデータ。
draft.kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#leaderboardConfigurationDetail です。
draft.name nested object リーダーボード名用のローカライズされた文字列。
draft.name.kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedStringBundle です。
draft.name.translations[] list ロケール文字列。
draft.name.translations[].kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedString です。
draft.name.translations[].locale string ロケール文字列。
draft.name.translations[].value string 文字列値。
draft.iconUrl string このリーダーボードのアイコンの URL。このフィールドへの書き込みは無視されます。
draft.sortRank integer このリーダーボードの並べ替えランク。このフィールドへの書き込みは無視されます。
draft.scoreFormat nested object リーダーボードのスコア形式。
draft.scoreFormat.numberFormatType string 数値の形式。
有効な値は次のとおりです。
  • NUMERIC」 - 数字はロケールに応じて、数字がないか小数点以下の固定桁数に設定されます。必要に応じてカスタム単位を追加できます。
  • TIME_DURATION」 - 数値は時、分、秒の形式になります。
  • CURRENCY」 - 数値はロケールに応じた通貨で表示されます。
draft.scoreFormat.suffix nested object NUMERIC 形式タイプのオプションの接尾辞。これらの文字列は、すべての Android 文字列リソースと同じ 複数ルールに従います。
draft.scoreFormat.suffix.zero nested object 数字の 0 の処理が特殊である言語(アラビア語など)。
draft.scoreFormat.suffix.zero.kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedStringBundle です。
draft.scoreFormat.suffix.zero.translations[] list ロケール文字列。
draft.scoreFormat.suffix.zero.translations[].kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedString です。
draft.scoreFormat.suffix.zero.translations[].locale string ロケール文字列。
draft.scoreFormat.suffix.zero.translations[].value string 文字列値。
draft.scoreFormat.suffix.one nested object 1 などの数字の処理が特殊である言語(英語をはじめとする大半の言語の 1 が該当。ロシア語の場合は、末尾が 1 であり、かつ 11 でない数字がこのクラスに該当)。
draft.scoreFormat.suffix.one.kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedStringBundle です。
draft.scoreFormat.suffix.one.translations[] list ロケール文字列。
draft.scoreFormat.suffix.one.translations[].kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedString です。
draft.scoreFormat.suffix.one.translations[].locale string ロケール文字列。
draft.scoreFormat.suffix.one.translations[].value string 文字列値。
draft.scoreFormat.suffix.two nested object 2 などの数字の処理が特殊である言語(ウェールズ語の 2、スロベニア語の 102 など)。
draft.scoreFormat.suffix.two.kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedStringBundle です。
draft.scoreFormat.suffix.two.translations[] list ロケール文字列。
draft.scoreFormat.suffix.two.translations[].kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedString です。
draft.scoreFormat.suffix.two.translations[].locale string ロケール文字列。
draft.scoreFormat.suffix.two.translations[].value string 文字列値。
draft.scoreFormat.suffix.few nested object 「小さな」数字の処理が特殊である言語(チェコ語の 2、3、4 や、ポーランド語の 12、13、14 を除く、末尾が 2、3、4 の数字など)。
draft.scoreFormat.suffix.few.kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedStringBundle です。
draft.scoreFormat.suffix.few.translations[] list ロケール文字列。
draft.scoreFormat.suffix.few.translations[].kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedString です。
draft.scoreFormat.suffix.few.translations[].locale string ロケール文字列。
draft.scoreFormat.suffix.few.translations[].value string 文字列値。
draft.scoreFormat.suffix.many nested object 「大きな」数字の処理が特殊である言語(マルタ語の末尾が 11~99 の数字など)。
draft.scoreFormat.suffix.many.kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedStringBundle です。
draft.scoreFormat.suffix.many.translations[] list ロケール文字列。
draft.scoreFormat.suffix.many.translations[].kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedString です。
draft.scoreFormat.suffix.many.translations[].locale string ロケール文字列。
draft.scoreFormat.suffix.many.translations[].value string 文字列値。
draft.scoreFormat.suffix.other nested object 数量について特殊な処理を必要としない言語(中国語のすべての数字、英語の 42 など)。
draft.scoreFormat.suffix.other.kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedStringBundle です。
draft.scoreFormat.suffix.other.translations[] list ロケール文字列。
draft.scoreFormat.suffix.other.translations[].kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedString です。
draft.scoreFormat.suffix.other.translations[].locale string ロケール文字列。
draft.scoreFormat.suffix.other.translations[].value string 文字列値。
draft.scoreFormat.numDecimalPlaces integer 数値の小数点以下の桁数。NUMERIC 形式タイプにのみ使用されます。
draft.scoreFormat.currencyCode string 通貨コード文字列。「CURRENCY」フォーマット タイプでのみ使用されます。
published nested object リーダーボードの公開データ。このデータは読み取り専用です。
published.kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#leaderboardConfigurationDetail です。
published.name nested object リーダーボード名用のローカライズされた文字列。
published.name.kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedStringBundle です。
published.name.translations[] list ロケール文字列。
published.name.translations[].kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedString です。
published.name.translations[].locale string ロケール文字列。
published.name.translations[].value string 文字列値。
published.iconUrl string このリーダーボードのアイコンの URL。このフィールドへの書き込みは無視されます。
published.sortRank integer このリーダーボードの並べ替えランク。このフィールドへの書き込みは無視されます。
published.scoreFormat nested object リーダーボードのスコア形式。
published.scoreFormat.numberFormatType string 数値の形式。
有効な値は次のとおりです。
  • NUMERIC」 - 数字はロケールに応じて、数字がないか小数点以下の固定桁数に設定されます。必要に応じてカスタム単位を追加できます。
  • TIME_DURATION」 - 数値は時、分、秒の形式になります。
  • CURRENCY」 - 数値はロケールに応じた通貨で表示されます。
published.scoreFormat.suffix nested object NUMERIC 形式タイプのオプションの接尾辞。これらの文字列は、すべての Android 文字列リソースと同じ 複数ルールに従います。
published.scoreFormat.suffix.zero nested object 数字の 0 の処理が特殊である言語(アラビア語など)。
published.scoreFormat.suffix.zero.kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedStringBundle です。
published.scoreFormat.suffix.zero.translations[] list ロケール文字列。
published.scoreFormat.suffix.zero.translations[].kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedString です。
published.scoreFormat.suffix.zero.translations[].locale string ロケール文字列。
published.scoreFormat.suffix.zero.translations[].value string 文字列値。
published.scoreFormat.suffix.one nested object 1 などの数字の処理が特殊である言語(英語をはじめとする大半の言語の 1 が該当。ロシア語の場合は、末尾が 1 であり、かつ 11 でない数字がこのクラスに該当)。
published.scoreFormat.suffix.one.kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedStringBundle です。
published.scoreFormat.suffix.one.translations[] list ロケール文字列。
published.scoreFormat.suffix.one.translations[].kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedString です。
published.scoreFormat.suffix.one.translations[].locale string ロケール文字列。
published.scoreFormat.suffix.one.translations[].value string 文字列値。
published.scoreFormat.suffix.two nested object 2 などの数字の処理が特殊である言語(ウェールズ語の 2、スロベニア語の 102 など)。
published.scoreFormat.suffix.two.kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedStringBundle です。
published.scoreFormat.suffix.two.translations[] list ロケール文字列。
published.scoreFormat.suffix.two.translations[].kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedString です。
published.scoreFormat.suffix.two.translations[].locale string ロケール文字列。
published.scoreFormat.suffix.two.translations[].value string 文字列値。
published.scoreFormat.suffix.few nested object 「小さな」数字の処理が特殊である言語(チェコ語の 2、3、4 や、ポーランド語の 12、13、14 を除く、末尾が 2、3、4 の数字など)。
published.scoreFormat.suffix.few.kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedStringBundle です。
published.scoreFormat.suffix.few.translations[] list ロケール文字列。
published.scoreFormat.suffix.few.translations[].kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedString です。
published.scoreFormat.suffix.few.translations[].locale string ロケール文字列。
published.scoreFormat.suffix.few.translations[].value string 文字列値。
published.scoreFormat.suffix.many nested object 「大きな」数字の処理が特殊である言語(マルタ語の末尾が 11~99 の数字など)。
published.scoreFormat.suffix.many.kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedStringBundle です。
published.scoreFormat.suffix.many.translations[] list ロケール文字列。
published.scoreFormat.suffix.many.translations[].kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedString です。
published.scoreFormat.suffix.many.translations[].locale string ロケール文字列。
published.scoreFormat.suffix.many.translations[].value string 文字列値。
published.scoreFormat.suffix.other nested object 数量について特殊な処理を必要としない言語(中国語のすべての数字、英語の 42 など)。
published.scoreFormat.suffix.other.kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedStringBundle です。
published.scoreFormat.suffix.other.translations[] list ロケール文字列。
published.scoreFormat.suffix.other.translations[].kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedString です。
published.scoreFormat.suffix.other.translations[].locale string ロケール文字列。
published.scoreFormat.suffix.other.translations[].value string 文字列値。
published.scoreFormat.numDecimalPlaces integer 数値の小数点以下の桁数。NUMERIC 形式タイプにのみ使用されます。
published.scoreFormat.currencyCode string 通貨コード文字列。「CURRENCY」フォーマット タイプでのみ使用されます。

Methods

delete
指定された ID のリーダーボード構成を削除します。
get
指定された ID のリーダーボード構成のメタデータを取得します。
挿入
このアプリに新しいリーダーボード設定を挿入します。
list
このアプリケーションのリーダーボード構成のリストを返します。
update
指定した ID でリーダーボード構成のメタデータを更新します。