using System.Collections; using System.Collections.Generic; using UnityEngine; /// /// 快爆支付信息实体类 /// create by chenbaoyang /// namespace com.m3839.sdk.pay.bean { public class HykbPayInfo { public string goodsName; public int money; public int server; public string cpOrderId; public string ext; /// /// 支付信息包装 /// /// 商品信息 /// 下单金额,单位是元 /// 区服标识 /// 游戏的订单编号 /// 透传字段 public HykbPayInfo(string goodsName, int money, int server, string cpOrderId, string ext) { this.goodsName = goodsName; this.money = money; this.server = server; this.cpOrderId = cpOrderId; this.ext = ext; } /// /// 支付信息包装 /// /// 支付信java对象 public HykbPayInfo(AndroidJavaObject payInfo) { this.goodsName = payInfo.Get("goodsName"); this.money = payInfo.Get("money"); this.server = payInfo.Get("server"); this.cpOrderId = payInfo.Get("cpOrderId"); this.ext = payInfo.Get("ext"); } public static AndroidJavaObject ToA(HykbPayInfo info) { AndroidJavaObject payInfo = new AndroidJavaObject("com.m3839.sdk.pay.bean.HykbPayInfo"); payInfo.Set("cpOrderId", info.cpOrderId); payInfo.Set("goodsName", info.goodsName); payInfo.Set("money", info.money); payInfo.Set("server", info.server); payInfo.Set("ext", info.ext); return payInfo; } } }