AchievementConfigurations

מייצג את התצורה של הישג.

רשימה של שיטות למשאב הזה מופיעה בסוף הדף.

ייצוגים של משאבים

זוהי תבנית JSON למשאב של הגדרת הישג.

{
  "kind": "gamesConfiguration#achievementConfiguration",
  "token": string,
  "id": string,
  "achievementType": string,
  "initialState": string,
  "stepsToUnlock": integer,
  "draft": {
    "kind": "gamesConfiguration#achievementConfigurationDetail",
    "name": {
      "kind": "gamesConfiguration#localizedStringBundle",
      "translations": [
        {
          "kind": "gamesConfiguration#localizedString",
          "locale": string,
          "value": string
        }
      ]
    },
    "description": {
      "kind": "gamesConfiguration#localizedStringBundle",
      "translations": [
        {
          "kind": "gamesConfiguration#localizedString",
          "locale": string,
          "value": string
        }
      ]
    },
    "pointValue": integer,
    "iconUrl": string,
    "sortRank": integer
  },
  "published": {
    "kind": "gamesConfiguration#achievementConfigurationDetail",
    "name": {
      "kind": "gamesConfiguration#localizedStringBundle",
      "translations": [
        {
          "kind": "gamesConfiguration#localizedString",
          "locale": string,
          "value": string
        }
      ]
    },
    "description": {
      "kind": "gamesConfiguration#localizedStringBundle",
      "translations": [
        {
          "kind": "gamesConfiguration#localizedString",
          "locale": string,
          "value": string
        }
      ]
    },
    "pointValue": integer,
    "iconUrl": string,
    "sortRank": integer
  }
}
שם הנכס Value התיאור הערות
kind string מזהה באופן ייחודי את סוג המשאב הזה. הערך הוא תמיד המחרוזת הקבועה gamesConfiguration#achievementConfiguration.
token string האסימון של המשאב הזה.
id string מזהה ההישג.
achievementType string סוג ההישג.
ערכים אפשריים:
  • 'STANDARD' – ההישג נעול או לא נעול.
  • "INCREMENTAL" – ההישג מצטבר.
initialState string המצב הראשוני של ההישג.
ערכים אפשריים:
  • 'HIDDEN' – ההישג מוסתר.
  • 'REVEALED' – ההישג נחשף.
  • 'UNLOCKED' – ההישג פתוח.
stepsToUnlock integer שלבים לביטול הנעילה. רלוונטי רק להישגים מצטברים.
draft nested object נתוני טיוטת ההישג.
draft.kind string מזהה באופן ייחודי את סוג המשאב הזה. הערך הוא תמיד המחרוזת הקבועה gamesConfiguration#achievementConfigurationDetail.
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.description nested object מחרוזות מותאמות לשוק המקומי לתיאור ההישג.
draft.description.kind string מזהה באופן ייחודי את סוג המשאב הזה. הערך הוא תמיד המחרוזת הקבועה gamesConfiguration#localizedStringBundle.
draft.description.translations[] list מחרוזות הלוקאל.
draft.description.translations[].kind string מזהה באופן ייחודי את סוג המשאב הזה. הערך הוא תמיד המחרוזת הקבועה gamesConfiguration#localizedString.
draft.description.translations[].locale string מחרוזת הלוקאל.
draft.description.translations[].value string ערך המחרוזת.
draft.pointValue integer ערך הניקוד של ההישג.
draft.iconUrl string כתובת ה-URL של הסמל של הישג זה. המערכת מתעלמת מהכותבים לשדה הזה.
draft.sortRank integer דירוג המיון של ההישג הזה. המערכת מתעלמת מהכותבים לשדה הזה.
published nested object הנתונים שפורסמו לגבי ההישג. הנתונים האלה הם לקריאה בלבד.
published.kind string מזהה באופן ייחודי את סוג המשאב הזה. הערך הוא תמיד המחרוזת הקבועה gamesConfiguration#achievementConfigurationDetail.
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.description nested object מחרוזות מותאמות לשוק המקומי לתיאור ההישג.
published.description.kind string מזהה באופן ייחודי את סוג המשאב הזה. הערך הוא תמיד המחרוזת הקבועה gamesConfiguration#localizedStringBundle.
published.description.translations[] list מחרוזות הלוקאל.
published.description.translations[].kind string מזהה באופן ייחודי את סוג המשאב הזה. הערך הוא תמיד המחרוזת הקבועה gamesConfiguration#localizedString.
published.description.translations[].locale string מחרוזת הלוקאל.
published.description.translations[].value string ערך המחרוזת.
published.pointValue integer ערך הניקוד של ההישג.
published.iconUrl string כתובת ה-URL של הסמל של הישג זה. המערכת מתעלמת מהכותבים לשדה הזה.
published.sortRank integer דירוג המיון של ההישג הזה. המערכת מתעלמת מהכותבים לשדה הזה.

שיטות

מחיקה
מחיקה של תצורת ההישג עם המזהה הנתון.
מקבלים
מאחזר את המטא-נתונים של תצורת ההישג עם המזהה הנתון.
הוספה
צריך להוסיף לאפליקציה הזו הגדרה חדשה של הישג.
list
מחזיר רשימה של הגדרות ההישגים באפליקציה הזו.
עדכון
עדכון המטא-נתונים של תצורת ההישג באמצעות המזהה הנתון.