44 lines
2.0 KiB
C#
44 lines
2.0 KiB
C#
|
#if UNITY_PURCHASE
|
|||
|
using System.Collections;
|
|||
|
using System.Collections.Generic;
|
|||
|
using UnityEngine;
|
|||
|
|
|||
|
namespace WZ
|
|||
|
{
|
|||
|
|
|||
|
public struct SubscribeInfo
|
|||
|
{
|
|||
|
|
|||
|
public int Illegal_order; // 0:代表合法订单,1:代表非法订单
|
|||
|
public string Illegal_msg; // 非法订单信息
|
|||
|
public string Environment; // production & sandbox
|
|||
|
public string Purchase_time; //订阅时间,单位毫秒
|
|||
|
public int Is_subscribed; //是否订阅过 0:未订阅过,1:订阅过
|
|||
|
public int Is_expired; //是否过期 0未过期,1:已过期
|
|||
|
public int Is_cancelled; // 0:未取消,1:已取消
|
|||
|
public int Is_free_trial; // 0:不是免费试用,1:是免费试用
|
|||
|
public int Is_auto_renewing; //是否自动续订 0:非自动,1:自动
|
|||
|
public string Remaining_time; //订阅到期剩余时间,单位毫秒
|
|||
|
public string Expiry_time; //过期时间,单位毫秒
|
|||
|
public string Latest_order_id; //当前订阅的最新订单号
|
|||
|
public string Product_id; //产品ID
|
|||
|
|
|||
|
public SubscribeInfo(int illegal_order, string illegal_msg, string environment, string purchase_time, int is_subscribed, int is_expired, int is_cancelled, int is_free_trial, int is_auto_renewing, string remaining_time, string expiry_time, string latest_order_id,string product_id)
|
|||
|
{
|
|||
|
Illegal_order = illegal_order;
|
|||
|
Illegal_msg = illegal_msg;
|
|||
|
Environment = environment;
|
|||
|
Purchase_time = purchase_time;
|
|||
|
Is_subscribed = is_subscribed;
|
|||
|
Is_expired = is_expired;
|
|||
|
Is_cancelled = is_cancelled;
|
|||
|
Is_free_trial = is_free_trial;
|
|||
|
Is_auto_renewing = is_auto_renewing;
|
|||
|
Remaining_time = remaining_time;
|
|||
|
Expiry_time = expiry_time;
|
|||
|
Latest_order_id = latest_order_id;
|
|||
|
Product_id = product_id;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
#endif
|