public bool Initialize(ApolloBufferBase registerInfo)
 {
     ADebug.Log("ApolloPayService Initialize!");
     this.inited = true;
     byte[] array;
     registerInfo.Encode(out array);
     return(ApolloPayService.apollo_pay_Initialize(array, array.Length));
 }
 public void Action(ApolloActionBufferBase info, ApolloActionDelegate callback)
 {
     if (info == null)
     {
         ADebug.LogError("PayService Action Info == null");
         return;
     }
     byte[] array;
     if (!info.Encode(out array))
     {
         ADebug.LogError("Action Encode error!");
         return;
     }
     if (this.actionCallbackCollection.ContainsKey(info.Action))
     {
         this.actionCallbackCollection[info.Action] = callback;
     }
     else
     {
         this.actionCallbackCollection.Add(info.Action, callback);
     }
     ApolloPayService.apollo_pay_action(array, array.Length);
 }
 public bool Dipose()
 {
     this.inited = false;
     return(ApolloPayService.apollo_pay_Dipose());
 }
 public bool Pay4Mounth(ApolloBufferBase pay4MountInfo)
 {
     byte[] array;
     pay4MountInfo.Encode(out array);
     return(this.inited && ApolloPayService.apollo_pay_Pay4Mounth(array, array.Length));
 }