コード例 #1
0
 static void OnLoggedOff(SteamUser.LoggedOffCallback callback)
 {
     IsLoggedIn          = false;
     CurrentPersonaState = 0;
     Console.WriteLine("[" + Program.BOTNAME + "] - Logged off of Steam: {0}", callback.Result);
     InfoForm.InfoHelper.CustomMessageBox.Show("Error", "Logged off of Steam:" + callback.Result);
 }
コード例 #2
0
        private void OnLoggedOff(SteamUser.LoggedOffCallback callback)
        {
            Application.ChangelistTimer.Stop();

            Log.WriteInfo("Steam", "Logged out of Steam: {0}", callback.Result);

            IRC.Instance.SendEmoteAnnounce("logged out of Steam: {0}", callback.Result);
        }
コード例 #3
0
 private void OnLoggedOff(SteamUser.LoggedOffCallback callback)
 {
     //if we are shutting down - ok; if drop - throw
     if (_isRunning == SteamManagerStatus.Stopped)
     {
         return;
     }
     _exception = new SteamLoginException("Unexpectedly logged off");
 }
コード例 #4
0
 private void OnLoggedOff(SteamUser.LoggedOffCallback obj)
 {
     logger.Warn("Steam user logged off with result {result}", obj.Result);
     logger.Warn("Client is connected: {isConnected}", client.IsConnected);
     if (client.IsConnected)
     {
         user.LogOnAnonymous();
     }
 }
コード例 #5
0
ファイル: Bot.cs プロジェクト: xkomachi/ArchiSteamFarm
        private void OnLoggedOff(SteamUser.LoggedOffCallback callback)
        {
            if (callback == null)
            {
                return;
            }

            Logging.LogGenericInfo(BotName, "Logged off of Steam: " + callback.Result);
        }
コード例 #6
0
ファイル: Bot.cs プロジェクト: Steam-Chat-Bot/SteamChatBot
 private static void OnLoggedOff(SteamUser.LoggedOffCallback callback)
 {
     Log.Instance.Warn("Logged off from Steam for reason: " + callback.Result + ", logging in again...");
     foreach (var trigger in triggers)
     {
         trigger.OnLoggedOff();
     }
     LogOn();
 }
コード例 #7
0
ファイル: Steam.cs プロジェクト: gamedb/updater
        private static void OnLoggedOff(SteamUser.LoggedOffCallback callback)
        {
            Log.Info("Logged off");
            isLoggedOn = false;

            if (quitOnDisconnect)
            {
                steamClient.Disconnect();
            }
        }
コード例 #8
0
 // Run when given logged off callback
 // Resets logonmanager to default state
 private void OnLoggedOff(SteamUser.LoggedOffCallback callback)
 {
     UpdateUILabel("System logged off");
     user               = null;
     pass               = null;
     twoFactorAuth      = null;
     authCode           = null;
     loggedOn           = false;
     attemptedToConnect = false;
 }
コード例 #9
0
        private void OnLoggedOff(SteamUser.LoggedOffCallback callback)
        {
            Application.ChangelistTimer.Stop();

            Log.WriteInfo("Steam", "Logged out of Steam: {0}", callback.Result);

            IRC.Instance.SendEmoteAnnounce("logged out of Steam: {0}", callback.Result);

            GameCoordinator.UpdateStatus(0, callback.Result.ToString());
        }
コード例 #10
0
        private void OnLoggedOff(SteamUser.LoggedOffCallback callback)
        {
            Timer.Stop();

            Log.WriteInfo("Steam", "Logged out of Steam: {0}", callback.Result);

            IRC.SendMain("Logged out of Steam: {0}{1}{2}. See{3} http://steamstat.us", Colors.OLIVE, callback.Result, Colors.NORMAL, Colors.DARK_BLUE);
            IRC.SendEmoteAnnounce("logged out of Steam: {0}", callback.Result);

            GameCoordinator.UpdateStatus(0, callback.Result.ToString());
        }
コード例 #11
0
ファイル: Steam.cs プロジェクト: 6qoOsRnZLy5/SteamWebPipes
        private void OnLoggedOff(SteamUser.LoggedOffCallback callback)
        {
            if (IsLoggedOn)
            {
                Bootstrap.Broadcast(new LogOffEvent());

                IsLoggedOn = false;
            }

            Bootstrap.Log("Logged off from Steam");
        }
コード例 #12
0
ファイル: CSGOClient.cs プロジェクト: Kaotic/csgo-bot
        void OnLoggedOff(SteamUser.LoggedOffCallback callback)
        {
            if (callback == null)
            {
                return;
            }

            isConnected = false;
            isRunning   = false;
            form.AddLog(String.Format("[ERROR] Disconnected from steam: {0}", callback.Result));
            form.ToggleAll(false);
        }
コード例 #13
0
        static void OnLoggedOff(SteamUser.LoggedOffCallback callback)
        {
            if (callback == null)
            {
                return;
            }

            informationsteam = (String.Format("Отключен от стима: {0}", callback.Result));
            if (callback.Result == EResult.LoggedInElsewhere)
            {
                isRunning = false;
            }
        }
コード例 #14
0
        static void OnLoggedOff(SteamUser.LoggedOffCallback callback)
        {
            Console.WriteLine("Logged off of Steam: {0}", callback.Result);

            System.Threading.Thread.Sleep(5000);
            steamUser.LogOn(new SteamUser.LogOnDetails
            {
                Username = username,
                Password = password,
            });

            return;
        }
コード例 #15
0
        static void OnLoggedOff(SteamUser.LoggedOffCallback callback)
        {
            if (callback == null)
            {
                return;
            }

            informationsteam = (String.Format("Disconnected from steam: {0}", callback.Result));
            if (callback.Result == EResult.LoggedInElsewhere)
            {
                isRunning = false;
            }
        }
コード例 #16
0
 private void OnLoggedOff(SteamUser.LoggedOffCallback callback)
 {
     if (callback.Result.ToString().Contains("LoggedInElsewhere"))
     {
         accounts.Add(new AccountDetails()
         {
             login     = $"{username}:{password}",
             steam64id = steamid
         });
     }
     else
     {
         Console.WriteLine($"Logged off of Steam: {callback.Result}");
     }
 }
コード例 #17
0
        static void OnLoggedOff(SteamUser.LoggedOffCallback callback)
        {
            if (callback == null)
            {
                throw new ArgumentNullException(nameof(callback));
            }

            LastLogOnResult = callback.Result;


            IsLoggedIn          = false;
            CurrentPersonaState = 0;
            Console.WriteLine("[" + Program.BOTNAME + "] - Logged off of Steam: {0}", callback.Result);
            InfoForm.InfoHelper.CustomMessageBox.Show("Error", "Logged off of Steam:" + callback.Result);
        }
コード例 #18
0
        public override void OnLoggedOff(SteamUser.LoggedOffCallback callback)
        {
            if (callback.Result == EResult.LoggedInElsewhere || callback.Result == EResult.AlreadyLoggedInElsewhere)
            {
                Result = Result.AlreadyLoggedInSomewhereElse;
            }

            if (Result == Result.AlreadyLoggedInSomewhereElse)
            {
                _log.Warning("Account is already logged on somewhere else. Skipping...");
            }
            else
            {
                _log.Debug("Successfully logged off from Steam: {Result}", callback.Result);
            }
        }
コード例 #19
0
        } // Wird gecalled wenn wir uns einloggen

        static void OnLoggedOff(SteamUser.LoggedOffCallback callback)
        {
            Console.Title = "Steam Bot - Logged off";
            Console.WriteLine($"(WARNING) Steam logged us of: {callback.Result}", Color.OrangeRed);
            Console.WriteLine("(HELP US) Please send us a screenshot of this error!", Color.Yellow);
            Console.WriteLine("(INFORMATION) Logging back in.", Color.SkyBlue);

            steamUser.LogOn(new SteamUser.LogOnDetails
            {
                Username      = user,
                Password      = pass,
                AuthCode      = authcode,
                TwoFactorCode = twofactor,
                //SentryFileHash = sentryHash,
            });

            loggedBackOn = true;
        } // Wird gecalled wenn wir ausgelogged werden
コード例 #20
0
        private void OnLoggedOff(SteamUser.LoggedOffCallback obj)
        {
            logger.Info($"Log off from Steam with bot {BotName} by reason: {obj.Result.ToString()}");
            if (obj.Result == EResult.LoggedInElsewhere)
            {
                logger.Error($"Error occuried with bot {BotName}. Maybe there are some problems with bot... Change bot state to 'Crashed'", new Exception());

                botManager.UpdateBotState(EBotState.Crashed);

                return;
            }

            if (obj.Result == EResult.LogonSessionReplaced)
            {
                return;
            }

            logger.Info("Disconnecting from SteamClient...");
            steamClient.Disconnect();
        }
コード例 #21
0
        public void HandleCallback(CallbackMsg msg)
        {
            if (msg.IsType <SteamClient.ConnectCallback>())
            {
                int    retryCount = SteamService.GetClient().GetRetryCount();
                String retries    = (retryCount > 0) ? " (retry " + retryCount + ")" : "";
                SteamAlerts.ShowProgressDialog("Connecting", "Logging in..." + retries, this);
            }
            else if (msg.IsType <SteamUser.LogOnCallback>())
            {
                SteamUser.LogOnCallback callback = (SteamUser.LogOnCallback)msg;

                if (callback.Result == EResult.AccountLogonDenied)
                {
                    RequestAuthKey();
                }
                else if (callback.Result == EResult.InvalidLoginAuthCode)
                {
                    InvalidAuthKey();
                }
                else if (callback.Result == EResult.InvalidPassword)
                {
                    SteamAlerts.ShowAlertDialog("Invalid credentials", "Invalid username or password", this);
                }
                else if (callback.Result == EResult.AlreadyLoggedInElsewhere)
                {
                    SteamAlerts.ShowAlertDialog("Already logged in", "This Steam account is already logged in elsewhere", this);
                }
            }
            else if (msg.IsType <SteamUser.LoggedOffCallback>())
            {
                SteamUser.LoggedOffCallback callback = (SteamUser.LoggedOffCallback)msg;

                if (callback.Result == EResult.InvalidProtocolVer)
                {
                    SteamAlerts.ShowAlertDialog("Error", "Invalid protocol version", this);
                }
            }

            UpdateButtons();
        }
コード例 #22
0
 //on Logg off function
 public void OnLoggedOff(SteamUser.LoggedOffCallback callback)
 {
     Console.WriteLine($"Logged off succesfully {callback.Result}");
 }
コード例 #23
0
ファイル: Program.cs プロジェクト: elitestuck/GMPublishNET
 static void OnLoggedOff(SteamUser.LoggedOffCallback callback)
 {
     Console.WriteLine("Logged off of Steam: {0}", callback.Result);
 }
コード例 #24
0
 private void onLoggedOff(SteamUser.LoggedOffCallback callback)
 {
     onLoggedOffEvent.Set();
 }
コード例 #25
0
ファイル: lobby.cs プロジェクト: knobik/GodnestCSGOTool
 static void OnLoggedOff(SteamUser.LoggedOffCallback callback)
 {
 }
コード例 #26
0
ファイル: TitanAccount.cs プロジェクト: skizap/Titan
 public abstract void OnLoggedOff(SteamUser.LoggedOffCallback callback);
コード例 #27
0
 private void OnLoggedOff(SteamUser.LoggedOffCallback callback)
 {
     Log.WriteInfo("SteamAnonymous", "Logged out of Steam: {0}", callback.Result);
 }
コード例 #28
0
 private void OnSteambotLoggedOff(SteamUser.LoggedOffCallback callback)
 {
     stop     = true;
     LoggedIn = false;
     Console.WriteLine("Logged off of Steam: {0}", callback.Result);
 }
コード例 #29
0
 private void OnLoggedOff(SteamUser.LoggedOffCallback callback)
 {
     Trace.WriteLine(string.Format("Logged off of Steam: {0}", callback.Result), "Steam");
 }
コード例 #30
0
 private void OnLoggedOff(SteamUser.LoggedOffCallback callback)
 {
     Console.WriteLine($"Logged off of Steam: {callback.Result}");
 }