Beispiel #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);
 }
Beispiel #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);
        }
Beispiel #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");
     }
 }
Beispiel #4
0
 public bool IsPlatformSupportApi(ApolloPlatform platform)
 {
     return(ApolloAccountService.apollo_account_IsPlatformSupportApi(platform));
 }
Beispiel #5
0
 public bool IsPlatformInstalled(ApolloPlatform platform)
 {
     return(ApolloAccountService.apollo_account_IsPlatformInstalled(platform));
 }
Beispiel #6
0
 public void RefreshAccessToken()
 {
     ApolloAccountService.apollo_account_refreshAtk(base.ObjectId);
 }
Beispiel #7
0
 public void Logout()
 {
     ApolloAccountService.apollo_account_logout(base.ObjectId);
 }
Beispiel #8
0
 public void Login(ApolloPlatform platform)
 {
     ADebug.Log("Login");
     ApolloAccountService.apollo_account_login(base.ObjectId, platform);
 }
Beispiel #9
0
 public void Reset()
 {
     ApolloAccountService.apollo_account_reset();
 }