/// <summary> /// Initializes all the important objects and the API /// </summary> public void SetUpTwitter() { showUpdates.InitializeTwitter(); key = getUser.GetUser(); Friend startFriend = new Friend(); startFriend.ReadFriends(); User.Account.IncludeRetweets = true; drawing.StartScreen(); }
/// <summary> /// Toggles the friend switch ( ͡° ͜ʖ ͡°) /// </summary> private void ToggleFriend(string command) { string screenName = ""; try { bool exceptionTest = command.Split(' ')[1].StartsWith("@"); } catch (IndexOutOfRangeException) { return; } if (command.Split(' ')[1].Length != 2) { return; } else { screenName = TweetIdentification.GetTweetID(command.Split(' ')[1]).Status; } /* This is where the magic happens */ Friend luckyFriend = new Friend(); luckyFriend.FriendToggle(screenName); ScreenDraw.ShowMessage(screenName + "'s friend switch has been toggled ( ͡° ͜ʖ ͡°)"); }