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 न्यूमेरिक फ़ॉर्मैट टाइप के लिए वैकल्पिक सफ़िक्स. ये स्ट्रिंग, 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 पर खत्म होने वाला लेकिन 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 संख्या के लिए दशमलव स्थानों की संख्या. सिर्फ़ न्यूमेरिक फ़ॉर्मैट टाइप के लिए इस्तेमाल किया जाता है.
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 न्यूमेरिक फ़ॉर्मैट टाइप के लिए वैकल्पिक सफ़िक्स. ये स्ट्रिंग, 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 पर खत्म होने वाला लेकिन 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 संख्या के लिए दशमलव स्थानों की संख्या. सिर्फ़ न्यूमेरिक फ़ॉर्मैट टाइप के लिए इस्तेमाल किया जाता है.
published.scoreFormat.currencyCode string कर्ली कोड स्ट्रिंग. केवल CURRENCY प्रारूप प्रकार के लिए ही उपयोग किया जाता है.

तरीके

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