Exemplo n.º 1
0
 public bool Initialize(ApolloBufferBase initInfo)
 {
     if (initInfo != null)
     {
         byte[] array;
         initInfo.Encode(out array);
         if (array != null)
         {
             return(ApolloAccountService.apollo_account_initialize(array, array.Length));
         }
         ADebug.LogError("Account Initialize Encode Error");
     }
     else
     {
         ADebug.LogError("Account Initialize param is null");
     }
     return(false);
 }
Exemplo n.º 2
0
        public ApolloResult GetRecord(ref ApolloAccountInfo pAccountInfo)
        {
            StringBuilder stringBuilder = new StringBuilder(4096);
            ApolloResult  apolloResult  = ApolloAccountService.apollo_account_getRecord(base.ObjectId, stringBuilder, 4096);
            string        text          = stringBuilder.ToString();

            ADebug.Log(string.Concat(new object[]
            {
                "GetRecord:",
                apolloResult,
                ", ",
                text
            }));
            if (text.get_Length() > 0)
            {
                pAccountInfo.FromString(text);
            }
            return(apolloResult);
        }
Exemplo n.º 3
0
 public void RealNameAuth(ApolloRealNameAuthInfo info)
 {
     if (info != null)
     {
         byte[] array;
         info.Encode(out array);
         if (array != null)
         {
             ApolloAccountService.apollo_account_realname_auth(array, array.Length);
         }
         else
         {
             ADebug.LogError("RealNameAuth Encode Error");
         }
     }
     else
     {
         ADebug.LogError("RealNameAuth param is null");
     }
 }
Exemplo n.º 4
0
 public bool IsPlatformSupportApi(ApolloPlatform platform)
 {
     return(ApolloAccountService.apollo_account_IsPlatformSupportApi(platform));
 }
Exemplo n.º 5
0
 public bool IsPlatformInstalled(ApolloPlatform platform)
 {
     return(ApolloAccountService.apollo_account_IsPlatformInstalled(platform));
 }
Exemplo n.º 6
0
 public void RefreshAccessToken()
 {
     ApolloAccountService.apollo_account_refreshAtk(base.ObjectId);
 }
Exemplo n.º 7
0
 public void Logout()
 {
     ApolloAccountService.apollo_account_logout(base.ObjectId);
 }
Exemplo n.º 8
0
 public void Login(ApolloPlatform platform)
 {
     ADebug.Log("Login");
     ApolloAccountService.apollo_account_login(base.ObjectId, platform);
 }
Exemplo n.º 9
0
 public void Reset()
 {
     ApolloAccountService.apollo_account_reset();
 }