示例#1
0
 public void onCheckSubscriptionResult(string data)
 {
     if (OnCheckSubscriptionResult != null && OnCheckSubscriptionResult.GetInvocationList().Length > 0)
     {
         int  billingId     = -1;
         long remainSeconds = 0;
         if (!string.IsNullOrEmpty(data))
         {
             string[] str = data.Split(',');
             if (str.Length >= 2)
             {
                 billingId     = int.Parse(str[0]);
                 remainSeconds = long.Parse(str[1]);
             }
         }
         OnCheckSubscriptionResult(billingId, remainSeconds);
     }
 }
 public void onCheckSubscriptionResult(string data)
 {
     if (OnCheckSubscriptionResult != null && OnCheckSubscriptionResult.GetInvocationList().Length > 0)
     {
         int  billingId = -1;
         bool active    = false;
         if (!string.IsNullOrEmpty(data))
         {
             string[] str = data.Split(',');
             if (str.Length == 2)
             {
                 billingId = int.Parse(str[0]);
                 active    = int.Parse(str[1]) > 0 ? true : false;
             }
         }
         OnCheckSubscriptionResult(billingId, active);
     }
 }