Android SDK_优惠券功能
如果要使用用户输入优惠券即处理为已使用的功能,请使用下列代码。
import io.gamepot.common.GamePot;
import io.gamepot.common.GamePotError;
import io.gamepot.common.GamePotListener;
GamePot.getInstance().coupon(/*用户输入的优惠券*/, new GamePotListener<String>() {
@Override
public void onSuccess(String message) {
// 优惠券使用成功。请通过弹窗显示message值。
}
@Override
public void onFailure(GamePotError error) {
// 优惠券使用失败。请使用error.getMessage()显示错误消息。
}
});
发放道具
优惠券使用成功时,将向开发公司服务器发送道具发放请求。
详细内容请参阅道具发放请求。
Last updated