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
    }
  }
}
ชื่อพร็อพเพอร์ตี้ ค่า คำอธิบาย Notes
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 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 ในภาษาเวลส์หรือ 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 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 ในภาษาเวลส์หรือ 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
ส่งคืนรายการการกำหนดค่าลีดเดอร์บอร์ดในแอปพลิเคชันนี้
อัปเดต
อัปเดตข้อมูลเมตาของการกำหนดค่าลีดเดอร์บอร์ดด้วยรหัสที่กำหนด