{"action":"created","comment":{"url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/pulls/comments/71666625","id":71666625,"diff_hunk":"@@ -8,28 +8,74 @@\n \n import UIKit\n \n-class HomeViewController: UIViewController {\n+class HomeViewController: UIViewController, UITableViewDelegate, UITableViewDataSource {\n     \n+    @IBOutlet var tableView: UITableView!\n     private let logOnModel = LogOnModel()\n+    private let timeLineModel = UserTimeLineModel()\n+    let homeViewModel = HomeViewControllerViewModel()\n+    let refresh = UIRefreshControl()\n     \n     override func viewDidLoad() {\n         super.viewDidLoad()\n-        \n+        tableView.delegate = self\n+        tableView.dataSource = self\n+        tableView.estimatedRowHeight = 50.0\n         let rightBarButton = UIBarButtonItem.init(title: \"登陆\", style: UIBarButtonItemStyle.Plain, target: self, action:#selector(HomeViewController.logOn))\n         self.navigationItem.rightBarButtonItem = rightBarButton\n+        \n+        addRefreshView()\n+        getUserTimeLine()\n     }\n     \n-    override func didReceiveMemoryWarning() {\n-        super.didReceiveMemoryWarning()\n-        // Dispose of any resources that can be recreated.\n+    /*\n+     private\n+     */","path":"weibo_jingzhao/Home/HomeViewController.swift","position":31,"original_position":31,"commit_id":"e47b10f12b960f80f29a542643fe1e8afc9bba33","original_commit_id":"e47b10f12b960f80f29a542643fe1e8afc9bba33","user":{"login":"itrufeng","id":685975,"avatar_url":"https://avatars.githubusercontent.com/u/685975?v=3","gravatar_id":"","url":"https://api.github.com/users/itrufeng","html_url":"https://github.com/itrufeng","followers_url":"https://api.github.com/users/itrufeng/followers","following_url":"https://api.github.com/users/itrufeng/following{/other_user}","gists_url":"https://api.github.com/users/itrufeng/gists{/gist_id}","starred_url":"https://api.github.com/users/itrufeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itrufeng/subscriptions","organizations_url":"https://api.github.com/users/itrufeng/orgs","repos_url":"https://api.github.com/users/itrufeng/repos","events_url":"https://api.github.com/users/itrufeng/events{/privacy}","received_events_url":"https://api.github.com/users/itrufeng/received_events","type":"User","site_admin":false},"body":"// MARK: private","created_at":"2016-07-21T08:36:15Z","updated_at":"2016-07-21T08:36:15Z","html_url":"https://github.com/xianmobilelab/weibo_jingzhao/pull/7#discussion_r71666625","pull_request_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/pulls/comments/71666625"},"html":{"href":"https://github.com/xianmobilelab/weibo_jingzhao/pull/7#discussion_r71666625"},"pull_request":{"href":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/pulls/7","id":78147597,"html_url":"https://github.com/xianmobilelab/weibo_jingzhao/pull/7","diff_url":"https://github.com/xianmobilelab/weibo_jingzhao/pull/7.diff","patch_url":"https://github.com/xianmobilelab/weibo_jingzhao/pull/7.patch","issue_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/issues/7","number":7,"state":"open","locked":false,"title":"展示登陆用户 timeLine 图片类型用户 和单纯内容用户进行区分","user":{"login":"zhaojing","id":3012924,"avatar_url":"https://avatars.githubusercontent.com/u/3012924?v=3","gravatar_id":"","url":"https://api.github.com/users/zhaojing","html_url":"https://github.com/zhaojing","followers_url":"https://api.github.com/users/zhaojing/followers","following_url":"https://api.github.com/users/zhaojing/following{/other_user}","gists_url":"https://api.github.com/users/zhaojing/gists{/gist_id}","starred_url":"https://api.github.com/users/zhaojing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhaojing/subscriptions","organizations_url":"https://api.github.com/users/zhaojing/orgs","repos_url":"https://api.github.com/users/zhaojing/repos","events_url":"https://api.github.com/users/zhaojing/events{/privacy}","received_events_url":"https://api.github.com/users/zhaojing/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-20T13:34:17Z","updated_at":"2016-07-21T08:36:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"12cc405118d7025151c35a4432a4b6369a90730e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/pulls/7/commits","review_comments_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/pulls/7/comments","review_comment_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/issues/7/comments","statuses_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/statuses/e47b10f12b960f80f29a542643fe1e8afc9bba33","head":{"label":"xianmobilelab:weibo","ref":"weibo","sha":"e47b10f12b960f80f29a542643fe1e8afc9bba33","user":{"login":"xianmobilelab","id":8955262,"avatar_url":"https://avatars.githubusercontent.com/u/8955262?v=3","gravatar_id":"","url":"https://api.github.com/users/xianmobilelab","html_url":"https://github.com/xianmobilelab","followers_url":"https://api.github.com/users/xianmobilelab/followers","following_url":"https://api.github.com/users/xianmobilelab/following{/other_user}","gists_url":"https://api.github.com/users/xianmobilelab/gists{/gist_id}","starred_url":"https://api.github.com/users/xianmobilelab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xianmobilelab/subscriptions","organizations_url":"https://api.github.com/users/xianmobilelab/orgs","repos_url":"https://api.github.com/users/xianmobilelab/repos","events_url":"https://api.github.com/users/xianmobilelab/events{/privacy}","received_events_url":"https://api.github.com/users/xianmobilelab/received_events","type":"Organization","site_admin":false},"repo":{"id":62768575,"name":"weibo_jingzhao","full_name":"xianmobilelab/weibo_jingzhao","owner":{"login":"xianmobilelab","id":8955262,"avatar_url":"https://avatars.githubusercontent.com/u/8955262?v=3","gravatar_id":"","url":"https://api.github.com/users/xianmobilelab","html_url":"https://github.com/xianmobilelab","followers_url":"https://api.github.com/users/xianmobilelab/followers","following_url":"https://api.github.com/users/xianmobilelab/following{/other_user}","gists_url":"https://api.github.com/users/xianmobilelab/gists{/gist_id}","starred_url":"https://api.github.com/users/xianmobilelab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xianmobilelab/subscriptions","organizations_url":"https://api.github.com/users/xianmobilelab/orgs","repos_url":"https://api.github.com/users/xianmobilelab/repos","events_url":"https://api.github.com/users/xianmobilelab/events{/privacy}","received_events_url":"https://api.github.com/users/xianmobilelab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xianmobilelab/weibo_jingzhao","description":null,"fork":false,"url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao","forks_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/forks","keys_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/teams","hooks_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/hooks","issue_events_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/issues/events{/number}","events_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/events","assignees_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/assignees{/user}","branches_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/branches{/branch}","tags_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/tags","blobs_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/git/refs{/sha}","trees_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/statuses/{sha}","languages_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/languages","stargazers_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/stargazers","contributors_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/contributors","subscribers_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/subscribers","subscription_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/subscription","commits_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/commits{/sha}","git_commits_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/git/commits{/sha}","comments_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/comments{/number}","issue_comment_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/issues/comments{/number}","contents_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/contents/{+path}","compare_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/merges","archive_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/downloads","issues_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/issues{/number}","pulls_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/pulls{/number}","milestones_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/milestones{/number}","notifications_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/labels{/name}","releases_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/releases{/id}","deployments_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/deployments","created_at":"2016-07-07T02:32:04Z","updated_at":"2016-07-07T02:51:12Z","pushed_at":"2016-07-20T13:34:17Z","git_url":"git://github.com/xianmobilelab/weibo_jingzhao.git","ssh_url":"git@github.com:xianmobilelab/weibo_jingzhao.git","clone_url":"https://github.com/xianmobilelab/weibo_jingzhao.git","svn_url":"https://github.com/xianmobilelab/weibo_jingzhao","homepage":null,"size":14417,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"xianmobilelab:master","ref":"master","sha":"82a379af037be53338189a908e48872593963f7f","user":{"login":"xianmobilelab","id":8955262,"avatar_url":"https://avatars.githubusercontent.com/u/8955262?v=3","gravatar_id":"","url":"https://api.github.com/users/xianmobilelab","html_url":"https://github.com/xianmobilelab","followers_url":"https://api.github.com/users/xianmobilelab/followers","following_url":"https://api.github.com/users/xianmobilelab/following{/other_user}","gists_url":"https://api.github.com/users/xianmobilelab/gists{/gist_id}","starred_url":"https://api.github.com/users/xianmobilelab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xianmobilelab/subscriptions","organizations_url":"https://api.github.com/users/xianmobilelab/orgs","repos_url":"https://api.github.com/users/xianmobilelab/repos","events_url":"https://api.github.com/users/xianmobilelab/events{/privacy}","received_events_url":"https://api.github.com/users/xianmobilelab/received_events","type":"Organization","site_admin":false},"repo":{"id":62768575,"name":"weibo_jingzhao","full_name":"xianmobilelab/weibo_jingzhao","owner":{"login":"xianmobilelab","id":8955262,"avatar_url":"https://avatars.githubusercontent.com/u/8955262?v=3","gravatar_id":"","url":"https://api.github.com/users/xianmobilelab","html_url":"https://github.com/xianmobilelab","followers_url":"https://api.github.com/users/xianmobilelab/followers","following_url":"https://api.github.com/users/xianmobilelab/following{/other_user}","gists_url":"https://api.github.com/users/xianmobilelab/gists{/gist_id}","starred_url":"https://api.github.com/users/xianmobilelab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xianmobilelab/subscriptions","organizations_url":"https://api.github.com/users/xianmobilelab/orgs","repos_url":"https://api.github.com/users/xianmobilelab/repos","events_url":"https://api.github.com/users/xianmobilelab/events{/privacy}","received_events_url":"https://api.github.com/users/xianmobilelab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xianmobilelab/weibo_jingzhao","description":null,"fork":false,"url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao","forks_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/forks","keys_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/teams","hooks_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/hooks","issue_events_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/issues/events{/number}","events_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/events","assignees_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/assignees{/user}","branches_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/branches{/branch}","tags_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/tags","blobs_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/git/refs{/sha}","trees_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/statuses/{sha}","languages_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/languages","stargazers_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/stargazers","contributors_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/contributors","subscribers_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/subscribers","subscription_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/subscription","commits_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/commits{/sha}","git_commits_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/git/commits{/sha}","comments_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/comments{/number}","issue_comment_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/issues/comments{/number}","contents_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/contents/{+path}","compare_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/merges","archive_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/downloads","issues_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/issues{/number}","pulls_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/pulls{/number}","milestones_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/milestones{/number}","notifications_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/labels{/name}","releases_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/releases{/id}","deployments_url":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/deployments","created_at":"2016-07-07T02:32:04Z","updated_at":"2016-07-07T02:51:12Z","pushed_at":"2016-07-20T13:34:17Z","git_url":"git://github.com/xianmobilelab/weibo_jingzhao.git","ssh_url":"git@github.com:xianmobilelab/weibo_jingzhao.git","clone_url":"https://github.com/xianmobilelab/weibo_jingzhao.git","svn_url":"https://github.com/xianmobilelab/weibo_jingzhao","homepage":null,"size":14417,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/pulls/7"},"html":{"href":"https://github.com/xianmobilelab/weibo_jingzhao/pull/7"},"issue":{"href":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/issues/7"},"comments":{"href":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/xianmobilelab/weibo_jingzhao/statuses/e47b10f12b960f80f29a542643fe1e8afc9bba33"}}}}
{"actor":{"display_login":"itrufeng"}}