コード例 #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();
        }
コード例 #2
0
 protected void SendNewTweet(object sender, EventArgs e)
 {
     var tweetContainer = new TweetContainer();
     tweetContainer.CreateTweet(new TweetEntity() { Message = this.NewTweet.Text.ToString()});
 }