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