{"action":"created","comment":{"url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/pulls/comments/91673816","pull_request_review_id":12183916,"id":91673816,"diff_hunk":"@@ -30,4 +36,56 @@ export default class StateOps extends BaseOp {\n             });\n         })\n     }\n-}\n\\ No newline at end of file\n+\n+    queryStates(requestObject: QueryHistoryStatesRequest): Promise<HistoryStateResults> {\n+        return new Promise<HistoryStateResults>((resolve, reject)=>{\n+            var contentType: string;\n+            var url = this.baseUrl;\n+            if(requestObject.traitAlias){\n+                contentType = \"application/vnd.kii.TraitStateQueryRequest+json\";","path":"src/ops/StateOps.ts","position":40,"original_position":40,"commit_id":"9e662d8544d6a9fca28f905f956a3f0716d0f9ff","original_commit_id":"9e662d8544d6a9fca28f905f956a3f0716d0f9ff","user":{"login":"yongpingchen","id":1248696,"avatar_url":"https://avatars.githubusercontent.com/u/1248696?v=3","gravatar_id":"","url":"https://api.github.com/users/yongpingchen","html_url":"https://github.com/yongpingchen","followers_url":"https://api.github.com/users/yongpingchen/followers","following_url":"https://api.github.com/users/yongpingchen/following{/other_user}","gists_url":"https://api.github.com/users/yongpingchen/gists{/gist_id}","starred_url":"https://api.github.com/users/yongpingchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yongpingchen/subscriptions","organizations_url":"https://api.github.com/users/yongpingchen/orgs","repos_url":"https://api.github.com/users/yongpingchen/repos","events_url":"https://api.github.com/users/yongpingchen/events{/privacy}","received_events_url":"https://api.github.com/users/yongpingchen/received_events","type":"User","site_admin":false},"body":"should check whether requestObject.traitAlias is not empty string if it is not null.","created_at":"2016-12-09T08:15:49Z","updated_at":"2016-12-09T08:44:27Z","html_url":"https://github.com/KiiPlatform/thing-if-JSSDK/pull/166#discussion_r91673816","pull_request_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/pulls/166","_links":{"self":{"href":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/pulls/comments/91673816"},"html":{"href":"https://github.com/KiiPlatform/thing-if-JSSDK/pull/166#discussion_r91673816"},"pull_request":{"href":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/pulls/166"}}},"pull_request":{"url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/pulls/166","id":97262309,"html_url":"https://github.com/KiiPlatform/thing-if-JSSDK/pull/166","diff_url":"https://github.com/KiiPlatform/thing-if-JSSDK/pull/166.diff","patch_url":"https://github.com/KiiPlatform/thing-if-JSSDK/pull/166.patch","issue_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/issues/166","number":166,"state":"open","locked":false,"title":"Support trait impl akimoto","user":{"login":"naoki-akimoto","id":1961578,"avatar_url":"https://avatars.githubusercontent.com/u/1961578?v=3","gravatar_id":"","url":"https://api.github.com/users/naoki-akimoto","html_url":"https://github.com/naoki-akimoto","followers_url":"https://api.github.com/users/naoki-akimoto/followers","following_url":"https://api.github.com/users/naoki-akimoto/following{/other_user}","gists_url":"https://api.github.com/users/naoki-akimoto/gists{/gist_id}","starred_url":"https://api.github.com/users/naoki-akimoto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naoki-akimoto/subscriptions","organizations_url":"https://api.github.com/users/naoki-akimoto/orgs","repos_url":"https://api.github.com/users/naoki-akimoto/repos","events_url":"https://api.github.com/users/naoki-akimoto/events{/privacy}","received_events_url":"https://api.github.com/users/naoki-akimoto/received_events","type":"User","site_admin":false},"body":"Trait関連で変更、追加されたAPIの実装とスモールテストの修正、追加を行いました。\r\nレビューをお願いします。\r\n\r\nTrigger関連のテストはAliasが入っているように修正しました。しかしこれはもしかしたら要らない修正かもしれません。\r\nClause関連のテストでAliasがある場合の確認が取れるためです。","created_at":"2016-12-09T07:21:18Z","updated_at":"2016-12-09T08:44:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"011ebd33b2c71471e5ffd19b55cb9b617b792529","assignee":{"login":"yongpingchen","id":1248696,"avatar_url":"https://avatars.githubusercontent.com/u/1248696?v=3","gravatar_id":"","url":"https://api.github.com/users/yongpingchen","html_url":"https://github.com/yongpingchen","followers_url":"https://api.github.com/users/yongpingchen/followers","following_url":"https://api.github.com/users/yongpingchen/following{/other_user}","gists_url":"https://api.github.com/users/yongpingchen/gists{/gist_id}","starred_url":"https://api.github.com/users/yongpingchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yongpingchen/subscriptions","organizations_url":"https://api.github.com/users/yongpingchen/orgs","repos_url":"https://api.github.com/users/yongpingchen/repos","events_url":"https://api.github.com/users/yongpingchen/events{/privacy}","received_events_url":"https://api.github.com/users/yongpingchen/received_events","type":"User","site_admin":false},"assignees":[{"login":"yongpingchen","id":1248696,"avatar_url":"https://avatars.githubusercontent.com/u/1248696?v=3","gravatar_id":"","url":"https://api.github.com/users/yongpingchen","html_url":"https://github.com/yongpingchen","followers_url":"https://api.github.com/users/yongpingchen/followers","following_url":"https://api.github.com/users/yongpingchen/following{/other_user}","gists_url":"https://api.github.com/users/yongpingchen/gists{/gist_id}","starred_url":"https://api.github.com/users/yongpingchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yongpingchen/subscriptions","organizations_url":"https://api.github.com/users/yongpingchen/orgs","repos_url":"https://api.github.com/users/yongpingchen/repos","events_url":"https://api.github.com/users/yongpingchen/events{/privacy}","received_events_url":"https://api.github.com/users/yongpingchen/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/pulls/166/commits","review_comments_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/pulls/166/comments","review_comment_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/pulls/comments{/number}","comments_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/issues/166/comments","statuses_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/statuses/9e662d8544d6a9fca28f905f956a3f0716d0f9ff","head":{"label":"KiiPlatform:support_trait_impl_akimoto","ref":"support_trait_impl_akimoto","sha":"9e662d8544d6a9fca28f905f956a3f0716d0f9ff","user":{"login":"KiiPlatform","id":3078752,"avatar_url":"https://avatars.githubusercontent.com/u/3078752?v=3","gravatar_id":"","url":"https://api.github.com/users/KiiPlatform","html_url":"https://github.com/KiiPlatform","followers_url":"https://api.github.com/users/KiiPlatform/followers","following_url":"https://api.github.com/users/KiiPlatform/following{/other_user}","gists_url":"https://api.github.com/users/KiiPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/KiiPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KiiPlatform/subscriptions","organizations_url":"https://api.github.com/users/KiiPlatform/orgs","repos_url":"https://api.github.com/users/KiiPlatform/repos","events_url":"https://api.github.com/users/KiiPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/KiiPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":61766435,"name":"thing-if-JSSDK","full_name":"KiiPlatform/thing-if-JSSDK","owner":{"login":"KiiPlatform","id":3078752,"avatar_url":"https://avatars.githubusercontent.com/u/3078752?v=3","gravatar_id":"","url":"https://api.github.com/users/KiiPlatform","html_url":"https://github.com/KiiPlatform","followers_url":"https://api.github.com/users/KiiPlatform/followers","following_url":"https://api.github.com/users/KiiPlatform/following{/other_user}","gists_url":"https://api.github.com/users/KiiPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/KiiPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KiiPlatform/subscriptions","organizations_url":"https://api.github.com/users/KiiPlatform/orgs","repos_url":"https://api.github.com/users/KiiPlatform/repos","events_url":"https://api.github.com/users/KiiPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/KiiPlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/KiiPlatform/thing-if-JSSDK","description":null,"fork":false,"url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK","forks_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/forks","keys_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/teams","hooks_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/hooks","issue_events_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/issues/events{/number}","events_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/events","assignees_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/assignees{/user}","branches_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/branches{/branch}","tags_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/tags","blobs_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/git/refs{/sha}","trees_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/statuses/{sha}","languages_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/languages","stargazers_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/stargazers","contributors_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/contributors","subscribers_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/subscribers","subscription_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/subscription","commits_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/commits{/sha}","git_commits_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/git/commits{/sha}","comments_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/comments{/number}","issue_comment_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/issues/comments{/number}","contents_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/contents/{+path}","compare_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/merges","archive_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/downloads","issues_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/issues{/number}","pulls_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/pulls{/number}","milestones_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/milestones{/number}","notifications_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/labels{/name}","releases_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/releases{/id}","deployments_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/deployments","created_at":"2016-06-23T02:23:23Z","updated_at":"2016-11-11T03:26:28Z","pushed_at":"2016-12-09T07:27:02Z","git_url":"git://github.com/KiiPlatform/thing-if-JSSDK.git","ssh_url":"git@github.com:KiiPlatform/thing-if-JSSDK.git","clone_url":"https://github.com/KiiPlatform/thing-if-JSSDK.git","svn_url":"https://github.com/KiiPlatform/thing-if-JSSDK","homepage":"https://kiiplatform.github.io/thing-if-JSSDK/","size":1164,"stargazers_count":4,"watchers_count":4,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":4,"default_branch":"master"}},"base":{"label":"KiiPlatform:support_trait","ref":"support_trait","sha":"330900d5302d7ec99705d7c52bfc176bd565e1c4","user":{"login":"KiiPlatform","id":3078752,"avatar_url":"https://avatars.githubusercontent.com/u/3078752?v=3","gravatar_id":"","url":"https://api.github.com/users/KiiPlatform","html_url":"https://github.com/KiiPlatform","followers_url":"https://api.github.com/users/KiiPlatform/followers","following_url":"https://api.github.com/users/KiiPlatform/following{/other_user}","gists_url":"https://api.github.com/users/KiiPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/KiiPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KiiPlatform/subscriptions","organizations_url":"https://api.github.com/users/KiiPlatform/orgs","repos_url":"https://api.github.com/users/KiiPlatform/repos","events_url":"https://api.github.com/users/KiiPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/KiiPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":61766435,"name":"thing-if-JSSDK","full_name":"KiiPlatform/thing-if-JSSDK","owner":{"login":"KiiPlatform","id":3078752,"avatar_url":"https://avatars.githubusercontent.com/u/3078752?v=3","gravatar_id":"","url":"https://api.github.com/users/KiiPlatform","html_url":"https://github.com/KiiPlatform","followers_url":"https://api.github.com/users/KiiPlatform/followers","following_url":"https://api.github.com/users/KiiPlatform/following{/other_user}","gists_url":"https://api.github.com/users/KiiPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/KiiPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KiiPlatform/subscriptions","organizations_url":"https://api.github.com/users/KiiPlatform/orgs","repos_url":"https://api.github.com/users/KiiPlatform/repos","events_url":"https://api.github.com/users/KiiPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/KiiPlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/KiiPlatform/thing-if-JSSDK","description":null,"fork":false,"url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK","forks_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/forks","keys_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/teams","hooks_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/hooks","issue_events_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/issues/events{/number}","events_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/events","assignees_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/assignees{/user}","branches_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/branches{/branch}","tags_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/tags","blobs_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/git/refs{/sha}","trees_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/statuses/{sha}","languages_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/languages","stargazers_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/stargazers","contributors_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/contributors","subscribers_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/subscribers","subscription_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/subscription","commits_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/commits{/sha}","git_commits_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/git/commits{/sha}","comments_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/comments{/number}","issue_comment_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/issues/comments{/number}","contents_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/contents/{+path}","compare_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/merges","archive_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/downloads","issues_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/issues{/number}","pulls_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/pulls{/number}","milestones_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/milestones{/number}","notifications_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/labels{/name}","releases_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/releases{/id}","deployments_url":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/deployments","created_at":"2016-06-23T02:23:23Z","updated_at":"2016-11-11T03:26:28Z","pushed_at":"2016-12-09T07:27:02Z","git_url":"git://github.com/KiiPlatform/thing-if-JSSDK.git","ssh_url":"git@github.com:KiiPlatform/thing-if-JSSDK.git","clone_url":"https://github.com/KiiPlatform/thing-if-JSSDK.git","svn_url":"https://github.com/KiiPlatform/thing-if-JSSDK","homepage":"https://kiiplatform.github.io/thing-if-JSSDK/","size":1164,"stargazers_count":4,"watchers_count":4,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/pulls/166"},"html":{"href":"https://github.com/KiiPlatform/thing-if-JSSDK/pull/166"},"issue":{"href":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/issues/166"},"comments":{"href":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/issues/166/comments"},"review_comments":{"href":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/pulls/166/comments"},"review_comment":{"href":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/pulls/166/commits"},"statuses":{"href":"https://api.github.com/repos/KiiPlatform/thing-if-JSSDK/statuses/9e662d8544d6a9fca28f905f956a3f0716d0f9ff"}}}}
{"actor":{"display_login":"yongpingchen"}}