{"action":"opened","issue":{"url":"https://api.github.com/repos/Huruikagi/Meshinator/issues/31","repository_url":"https://api.github.com/repos/Huruikagi/Meshinator","labels_url":"https://api.github.com/repos/Huruikagi/Meshinator/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/Huruikagi/Meshinator/issues/31/comments","events_url":"https://api.github.com/repos/Huruikagi/Meshinator/issues/31/events","html_url":"https://github.com/Huruikagi/Meshinator/issues/31","id":172368455,"number":31,"title":"オススメ機能：ContinueRecommendQuestion実装","user":{"login":"Huruikagi","id":10933612,"avatar_url":"https://avatars.githubusercontent.com/u/10933612?v=3","gravatar_id":"","url":"https://api.github.com/users/Huruikagi","html_url":"https://github.com/Huruikagi","followers_url":"https://api.github.com/users/Huruikagi/followers","following_url":"https://api.github.com/users/Huruikagi/following{/other_user}","gists_url":"https://api.github.com/users/Huruikagi/gists{/gist_id}","starred_url":"https://api.github.com/users/Huruikagi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Huruikagi/subscriptions","organizations_url":"https://api.github.com/users/Huruikagi/orgs","repos_url":"https://api.github.com/users/Huruikagi/repos","events_url":"https://api.github.com/users/Huruikagi/events{/privacy}","received_events_url":"https://api.github.com/users/Huruikagi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Huruikagi/Meshinator/labels/%E8%BF%BD%E5%8A%A0","name":"追加","color":"cccccc"}],"state":"open","locked":false,"assignee":{"login":"nakamuratomohiko","id":20035879,"avatar_url":"https://avatars.githubusercontent.com/u/20035879?v=3","gravatar_id":"","url":"https://api.github.com/users/nakamuratomohiko","html_url":"https://github.com/nakamuratomohiko","followers_url":"https://api.github.com/users/nakamuratomohiko/followers","following_url":"https://api.github.com/users/nakamuratomohiko/following{/other_user}","gists_url":"https://api.github.com/users/nakamuratomohiko/gists{/gist_id}","starred_url":"https://api.github.com/users/nakamuratomohiko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nakamuratomohiko/subscriptions","organizations_url":"https://api.github.com/users/nakamuratomohiko/orgs","repos_url":"https://api.github.com/users/nakamuratomohiko/repos","events_url":"https://api.github.com/users/nakamuratomohiko/events{/privacy}","received_events_url":"https://api.github.com/users/nakamuratomohiko/received_events","type":"User","site_admin":false},"assignees":[{"login":"nakamuratomohiko","id":20035879,"avatar_url":"https://avatars.githubusercontent.com/u/20035879?v=3","gravatar_id":"","url":"https://api.github.com/users/nakamuratomohiko","html_url":"https://github.com/nakamuratomohiko","followers_url":"https://api.github.com/users/nakamuratomohiko/followers","following_url":"https://api.github.com/users/nakamuratomohiko/following{/other_user}","gists_url":"https://api.github.com/users/nakamuratomohiko/gists{/gist_id}","starred_url":"https://api.github.com/users/nakamuratomohiko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nakamuratomohiko/subscriptions","organizations_url":"https://api.github.com/users/nakamuratomohiko/orgs","repos_url":"https://api.github.com/users/nakamuratomohiko/repos","events_url":"https://api.github.com/users/nakamuratomohiko/events{/privacy}","received_events_url":"https://api.github.com/users/nakamuratomohiko/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/Huruikagi/Meshinator/milestones/2","html_url":"https://github.com/Huruikagi/Meshinator/milestones/%E3%82%AA%E3%82%B9%E3%82%B9%E3%83%A1%E6%A9%9F%E8%83%BD%E3%81%AE%E4%BD%9C%E6%88%90","labels_url":"https://api.github.com/repos/Huruikagi/Meshinator/milestones/2/labels","id":1893470,"number":2,"title":"オススメ機能の作成","description":"ユーザーにいくつか質問を投げかけ、返答に応じておすすめの料理を提案できるようにする。","creator":{"login":"Huruikagi","id":10933612,"avatar_url":"https://avatars.githubusercontent.com/u/10933612?v=3","gravatar_id":"","url":"https://api.github.com/users/Huruikagi","html_url":"https://github.com/Huruikagi","followers_url":"https://api.github.com/users/Huruikagi/followers","following_url":"https://api.github.com/users/Huruikagi/following{/other_user}","gists_url":"https://api.github.com/users/Huruikagi/gists{/gist_id}","starred_url":"https://api.github.com/users/Huruikagi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Huruikagi/subscriptions","organizations_url":"https://api.github.com/users/Huruikagi/orgs","repos_url":"https://api.github.com/users/Huruikagi/repos","events_url":"https://api.github.com/users/Huruikagi/events{/privacy}","received_events_url":"https://api.github.com/users/Huruikagi/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":5,"state":"open","created_at":"2016-07-20T05:31:51Z","updated_at":"2016-08-22T04:39:31Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-08-22T04:39:31Z","updated_at":"2016-08-22T04:39:31Z","closed_at":null,"body":"## 概要\r\n`SimpleItemRecommendQuestion`をした後に、そのまま続けてさらに深く絞り込みを行うかどうかを尋ねるQuestionを実装する。\r\n\r\n> もっと絞り込んでみやすか？\r\n> 0: はい\r\n> 1: いいえ\r\n\r\n## 実装の詳細\r\n- [ ] ContinueRecommendQuestionの定義  \r\n`core/think/recommend/ContinueRecommedQuestion.ts`に定義し、`core/data/model/Question`を継承して宣言する。\r\n\r\n- [ ] コンストラクタの実装  \r\nQuestionのコンストラクタのシグネチャが以前と違うので注意すること。\r\ncontextIdと、どのモデルについての質問かを示すaboutフィールドが要求される。\r\nこのクラスではcontextIdだけ上からもらってくる形にして、aboutには固定で`-1`あたりを格納しておこう。\r\nselectのインスタンス化もコンストラクタ内で行う。\r\n\r\n- [ ] firstMessageメソッドの実装  \r\n質問文を生成してcontextに保存する。\r\n\r\n- [ ] answerメソッドの実装\r\n「いいえ」が選ばれたら、この質問自身を閉じるとともに、`context.isClosed = true`にする。"}}
{"actor":{"display_login":"Huruikagi"}}