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 लीडरबोर्ड का आईडी.
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 इस लीडरबोर्ड के आइकॉन का यूआरएल. इस फ़ील्ड में लिखा गया कॉन्टेंट अनदेखा कर दिया जाता है.
draft.sortRank integer इस लीडरबोर्ड की क्रम से लगाने की रैंक. इस फ़ील्ड में लिखा गया कॉन्टेंट अनदेखा कर दिया जाता है.
draft.scoreFormat nested object लीडरबोर्ड के लिए स्कोर का फ़ॉर्मैट.
draft.scoreFormat.numberFormatType string नंबर का फ़ॉर्मैट.
संभावित वैल्यू ये हैं:
  • "NUMERIC" - संख्याओं को स्थान-भाषा के हिसाब से इस तरह फ़ॉर्मैट किया जाता है कि दशमलव बिंदु के बाद कोई अंक या अंकों की तय संख्या न हो. एक वैकल्पिक कस्टम इकाई जोड़ी जा सकती है.
  • "TIME_DURATION" - संख्याओं को घंटे, मिनट, और सेकंड के हिसाब से फ़ॉर्मैट किया जाता है.
  • "CURRENCY" - संख्याओं को स्थान-भाषा के हिसाब से मुद्रा के फ़ॉर्मैट में रखा जाता है.
draft.scoreFormat.suffix nested object NUMERIC फ़ॉर्मैट प्रकार के लिए एक वैकल्पिक प्रत्यय. ये स्ट्रिंग एक जैसी हैं बहुवचन नियम शामिल करें.
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 से खत्म होने वाली कोई भी संख्या 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 या स्लोवेनियाई में 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 होता है; या वह नंबर जिसके आखिर में 2, 3 या 4 होता है, लेकिन पोलिश में 12, 13 या 14 नहीं).
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 इस लीडरबोर्ड के आइकॉन का यूआरएल. इस फ़ील्ड में लिखा गया कॉन्टेंट अनदेखा कर दिया जाता है.
published.sortRank integer इस लीडरबोर्ड की क्रम से लगाने की रैंक. इस फ़ील्ड में लिखा गया कॉन्टेंट अनदेखा कर दिया जाता है.
published.scoreFormat nested object लीडरबोर्ड के लिए स्कोर का फ़ॉर्मैट.
published.scoreFormat.numberFormatType string नंबर का फ़ॉर्मैट.
संभावित वैल्यू ये हैं:
  • "NUMERIC" - संख्याओं को स्थान-भाषा के हिसाब से इस तरह फ़ॉर्मैट किया जाता है कि दशमलव बिंदु के बाद कोई अंक या अंकों की तय संख्या न हो. एक वैकल्पिक कस्टम इकाई जोड़ी जा सकती है.
  • "TIME_DURATION" - संख्याओं को घंटे, मिनट, और सेकंड के हिसाब से फ़ॉर्मैट किया जाता है.
  • "CURRENCY" - संख्याओं को स्थान-भाषा के हिसाब से मुद्रा के फ़ॉर्मैट में रखा जाता है.
published.scoreFormat.suffix nested object NUMERIC फ़ॉर्मैट प्रकार के लिए एक वैकल्पिक प्रत्यय. ये स्ट्रिंग एक जैसी हैं बहुवचन नियम शामिल करें.
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 से खत्म होने वाली कोई भी संख्या 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 या स्लोवेनियाई में 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 होता है; या वह नंबर जिसके आखिर में 2, 3 या 4 होता है, लेकिन पोलिश में 12, 13 या 14 नहीं).
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 फ़ॉर्मैट टाइप के लिए इस्तेमाल किया जाता है.

तरीके

मिटाएं
दिए गए आईडी के साथ लीडरबोर्ड कॉन्फ़िगरेशन मिटाएं.
पाएं
दिए गए आईडी के साथ लीडरबोर्ड कॉन्फ़िगरेशन का मेटाडेटा लेता है.
डालें
इस ऐप्लिकेशन में नया लीडरबोर्ड कॉन्फ़िगरेशन डालें.
list
इस ऐप्लिकेशन में लीडरबोर्ड कॉन्फ़िगरेशन की सूची दिखाता है.
अपडेट करें
लीडरबोर्ड कॉन्फ़िगरेशन के मेटाडेटा को दिए गए आईडी के हिसाब से अपडेट करें.