• 製品
  • 価格
  • リソース
  • サポート
このページは現在英語版のみで提供されており、日本語版も近日中に提供される予定です。ご利用いただきありがとうございます。

Gift System Configuration Guide

Gift System Overview

Gift-related information consists of gift, gift categorization, gift-category relationship, and language information. The information follows:
Gift: includes GiftId, default name, default description, severity, virtual currency price, icon, and custom extension information. Among them, GiftId is the unique identifier of the gift in the system and the object for subsequent operations. The virtual currency price of the gift is used for the "pricing" in gift display. The correspondence between virtual currency and actual payment amount requires additional self-definition by the business.
Gift categorization: including CategoryId, default name, default description, and custom extension information. Same as GiftId, CategoryId is the unique identifier of gift categorization in the system and the object of subsequent operations.
Note:
Gift classification information does not include the gift-category relationship.
Gift-category relationship: for description of which gifts are under a category
Language information: The names and descriptions of gifts and gift categories support internationalization. Language information is used to record translations of gift descriptions in different languages.
Note:
Note: When using SDK to get the gift list, if the gift or gift category does not have a name and description in the specified language, return the default gift name and description set when creating the gift.

Gift System Configuration Process

The gift function in the component requires the corresponding application (SDKAppID) to be TUILiveKit trial version or large-scale live stream version to be usable. After activation, add gift-related information in an ordered manner. Below are the gift configuration order:
1. Add gifts and gift categories
First add gifts and gift categories. After addition, you will get several GiftIds and CategoryIds. Use these Ids to continue subsequent operations. For the add method, see Add Gift and Add Gift Category.
2. Add gift categories and gift relationships
Use the GiftId and CategoryId obtained in the previous step to set the corresponding relationship. For instructions, see Add Gift Category Relationships.
3. Add language info for gifts and gift categories
This step is not required. If there is a need for internationalization, you can configure it. For instructions, see Add Gift Language Infomation and Add Gift Category Language Infomation.
The configuration order is as follows: