{"action":"created","issue":{"url":"https://api.github.com/repos/leancloud/LeanMessage-Demo/issues/10","labels_url":"https://api.github.com/repos/leancloud/LeanMessage-Demo/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/leancloud/LeanMessage-Demo/issues/10/comments","events_url":"https://api.github.com/repos/leancloud/LeanMessage-Demo/issues/10/events","html_url":"https://github.com/leancloud/LeanMessage-Demo/issues/10","id":79321241,"number":10,"title":"Demo 不应该包含的代码","user":{"login":"wujun4code","id":5119542,"avatar_url":"https://avatars.githubusercontent.com/u/5119542?v=3","gravatar_id":"","url":"https://api.github.com/users/wujun4code","html_url":"https://github.com/wujun4code","followers_url":"https://api.github.com/users/wujun4code/followers","following_url":"https://api.github.com/users/wujun4code/following{/other_user}","gists_url":"https://api.github.com/users/wujun4code/gists{/gist_id}","starred_url":"https://api.github.com/users/wujun4code/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wujun4code/subscriptions","organizations_url":"https://api.github.com/users/wujun4code/orgs","repos_url":"https://api.github.com/users/wujun4code/repos","events_url":"https://api.github.com/users/wujun4code/events{/privacy}","received_events_url":"https://api.github.com/users/wujun4code/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/leancloud/LeanMessage-Demo/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"lzwjava","id":5022872,"avatar_url":"https://avatars.githubusercontent.com/u/5022872?v=3","gravatar_id":"","url":"https://api.github.com/users/lzwjava","html_url":"https://github.com/lzwjava","followers_url":"https://api.github.com/users/lzwjava/followers","following_url":"https://api.github.com/users/lzwjava/following{/other_user}","gists_url":"https://api.github.com/users/lzwjava/gists{/gist_id}","starred_url":"https://api.github.com/users/lzwjava/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lzwjava/subscriptions","organizations_url":"https://api.github.com/users/lzwjava/orgs","repos_url":"https://api.github.com/users/lzwjava/repos","events_url":"https://api.github.com/users/lzwjava/events{/privacy}","received_events_url":"https://api.github.com/users/lzwjava/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/leancloud/LeanMessage-Demo/milestones/1","html_url":"https://github.com/leancloud/LeanMessage-Demo/milestones/LeanMessage-Demo.ios","labels_url":"https://api.github.com/repos/leancloud/LeanMessage-Demo/milestones/1/labels","id":1111901,"number":1,"title":"LeanMessage-Demo.ios","description":"\r\n* 完整的实现 trllo 上 https://trello.com/c/tOyT9Tk2/56-demo-leanmessage-simple-demo 里面 mock up 的界面效果以及功能\r\n* 代码符合 Google 的代码规范\r\n* 注释在符合规范的情况下使用中文\r\n* repo 使用 pod 依赖，但是官方网站的 zip 包下载是包含了 sdk的\r\n\r\n","creator":{"login":"wujun4code","id":5119542,"avatar_url":"https://avatars.githubusercontent.com/u/5119542?v=3","gravatar_id":"","url":"https://api.github.com/users/wujun4code","html_url":"https://github.com/wujun4code","followers_url":"https://api.github.com/users/wujun4code/followers","following_url":"https://api.github.com/users/wujun4code/following{/other_user}","gists_url":"https://api.github.com/users/wujun4code/gists{/gist_id}","starred_url":"https://api.github.com/users/wujun4code/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wujun4code/subscriptions","organizations_url":"https://api.github.com/users/wujun4code/orgs","repos_url":"https://api.github.com/users/wujun4code/repos","events_url":"https://api.github.com/users/wujun4code/events{/privacy}","received_events_url":"https://api.github.com/users/wujun4code/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":3,"state":"open","created_at":"2015-05-15T10:03:23Z","updated_at":"2015-05-22T06:49:29Z","due_on":"2015-06-15T16:00:00Z","closed_at":null},"comments":1,"created_at":"2015-05-22T06:49:29Z","updated_at":"2015-05-27T04:25:50Z","closed_at":null,"body":"* 删除所有跟 NSUserDefaults 相关的调用，Demo 只保证一次运行是正确的即可，不需要存缓存，Demo 代码不需要考虑本地保留 ClientId 这种操作。\r\n\r\n* `LoginViewController` 中 `openSessionAndGoMainViewController` 的方法里面实现的打开 session 和跳转到 MainViewController ，这段逻辑直接加到 onLoginButtonClicked 中即可，Demo 封装的越多越会对用户造成困扰， Demo 就是越简单越好，不是越专业越好。\r\n\r\n* `MainViewController` 中的 `onChatButtonClicked` 中的调用 LeanMessageManager 的代码全都展示出来， LeanMessageManager 这个类**必须**在 Demo 中删除\r\n"},"comment":{"url":"https://api.github.com/repos/leancloud/LeanMessage-Demo/issues/comments/105752019","html_url":"https://github.com/leancloud/LeanMessage-Demo/issues/10#issuecomment-105752019","issue_url":"https://api.github.com/repos/leancloud/LeanMessage-Demo/issues/10","id":105752019,"user":{"login":"lzwjava","id":5022872,"avatar_url":"https://avatars.githubusercontent.com/u/5022872?v=3","gravatar_id":"","url":"https://api.github.com/users/lzwjava","html_url":"https://github.com/lzwjava","followers_url":"https://api.github.com/users/lzwjava/followers","following_url":"https://api.github.com/users/lzwjava/following{/other_user}","gists_url":"https://api.github.com/users/lzwjava/gists{/gist_id}","starred_url":"https://api.github.com/users/lzwjava/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lzwjava/subscriptions","organizations_url":"https://api.github.com/users/lzwjava/orgs","repos_url":"https://api.github.com/users/lzwjava/repos","events_url":"https://api.github.com/users/lzwjava/events{/privacy}","received_events_url":"https://api.github.com/users/lzwjava/received_events","type":"User","site_admin":false},"created_at":"2015-05-27T04:25:50Z","updated_at":"2015-05-27T04:25:50Z","body":"* NSUserDefaults 是为了开发者调试用。应用能自动登录不单是为了用户方便，调试上也方便。直接跳转到主页面，进行相关调试。本来是没有的，后来手动输入登录多了，就弄了个轻量级的自动登录。\r\n\r\n* fixed\r\n\r\n* fixed"}}