Exemple #1
0
        private static bool s_GetWakeupInfo(out ApolloWakeupInfo wakeupInfo)
        {
            wakeupInfo = null;
            StringBuilder stringBuilder = new StringBuilder(20480);
            bool          flag          = ApolloQuickLoginService.apollo_account_GetWakeupInfo(stringBuilder, 20480);

            ADebug.Log("s_GetWakeupInfo : " + flag);
            if (flag)
            {
                string text = stringBuilder.ToString();
                ADebug.Log("s_GetWakeupInfo: " + text);
                if (text != null && text.get_Length() > 0)
                {
                    ApolloStringParser apolloStringParser = new ApolloStringParser(text);
                    if (apolloStringParser != null)
                    {
                        wakeupInfo = apolloStringParser.GetObject <ApolloWakeupInfo>("WakeupInfo");
                        if (wakeupInfo != null)
                        {
                            ADebug.Log("s_GetWakeupInfo parser.GetObject success");
                            return(true);
                        }
                        ADebug.Log("s_GetWakeupInfo parser.GetObject error");
                    }
                    else
                    {
                        ADebug.Log("GetWakeupInfo parser.GetObjec error");
                    }
                }
            }
            return(false);
        }
Exemple #2
0
        private static void QuickLoginOccur()
        {
            ADebug.Log("C# Apollo pulled up by quicklogin");
            ApolloWakeupInfo wakeupInfo = new ApolloWakeupInfo();
            bool             flag       = ApolloQuickLoginService.s_GetWakeupInfo(out wakeupInfo);

            if (ApolloQuickLoginService.m_callback != null)
            {
                ApolloQuickLoginService.m_callback(wakeupInfo);
            }
            else
            {
                ADebug.Log("QuickLoginOccur m_callback is null");
            }
        }
Exemple #3
0
 public void SwitchUser(bool useExternalAccount)
 {
     ApolloQuickLoginService.apollo_account_SwitchUser(useExternalAccount);
 }
Exemple #4
0
 public void SetQuickLoginNotify(ApolloQuickLoginNotify callback)
 {
     ADebug.Log("C# ApolloQuickLoginService::SetCallback");
     ApolloQuickLoginService.m_callback = callback;
     ApolloQuickLoginService.apollo_account_SetQuickLoginBaseCallback(new ApolloQuickLoginService.ApolloQuickLoginBaseDelegate(ApolloQuickLoginService.QuickLoginOccur));
 }