Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            var tweetContainer = new TweetContainer();
            var userContainer = new UserContainer();

            this.Tweets.DataSource = tweetContainer.ListFollowingTweets();
            this.Tweets.DataBind();

            this.FollowingUsers.DataSource = userContainer.GetFollowingUsers();
            this.FollowingUsers.DataBind();

            this.Followers.DataSource = userContainer.GetFollowers();
            this.Followers.DataBind();
        }
Exemplo n.º 2
0
 protected void SendNewTweet(object sender, EventArgs e)
 {
     var tweetContainer = new TweetContainer();
     tweetContainer.CreateTweet(new TweetEntity() { Message = this.NewTweet.Text.ToString()});
 }