コード例 #1
0
        private void readMessages()
        {
            followUser         fm  = new followUser();
            tweetMessageReader tmr = new tweetMessageReader();

            string user = commandlineparameters[0];

            tmr.ReadmessagesForUsers(user);
            sb.AppendLine(tmr.ToString());

            sb.AppendLine("Followed Users:");
            tmr.ReadFollowedUsers(fm.showFollowed(user));
            sb.AppendLine(tmr.ToString());
        }
コード例 #2
0
        private void readAllMessages()
        {
            followUser         fm  = new followUser();
            tweetMessageReader tmr = new tweetMessageReader();

            tmr.ReadAllmessages();
            sb.AppendLine(tmr.ToString());
        }
コード例 #3
0
        private void Wall()
        {
            string walltext = commandlineparameters[2];

            tweetMessageReader tmr = new tweetMessageReader();

            tmr.ReadmessagesWithText(walltext);
            sb.AppendLine("Wall");
            sb.AppendLine(tmr.ToString());
        }
コード例 #4
0
        private void postMessage()
        {
            string        user       = commandlineparameters[0];
            string        Message    = commandlineparameters[2];
            tweetyMessage newmessage = new tweetyMessage(user, Message);

            TweetMessageWriter tmw = new TweetMessageWriter(newmessage);
            tweetMessageReader tmr = new tweetMessageReader(false);

            tmr.addMessage(newmessage);
            tmw.writeMessage();

            this.sb.AppendLine("New Post!...");
            this.sb.AppendLine(tmr.ToString());
        }