{"action":"created","comment":{"url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/pulls/comments/59480745","id":59480745,"diff_hunk":"@@ -11,113 +11,163 @@ const path = require('path');\n const fs = require('fs');\n \n // connection settings\n-const connection_settings_path = '../config/connection_settings.json';\n-console.log(fs.readFileSync(connection_settings_path, 'utf8'));\n-let connection_settings = JSON.parse(fs.readFileSync(connection_settings_path, 'utf8'));\n+const CONNECTION_SETTINGS_PATH = '../config/connection_settings.json';\n+\n+// create connection string\n+let connection_settings = JSON.parse(fs.readFileSync(CONNECTION_SETTINGS_PATH, 'utf8')); \n+const CONNECTION_STRING = 'HostName=' + connection_settings.host_name + ';DeviceId=' + connection_settings.device_id + ';SharedAccessKey=' + connection_settings.access_key + ';';\n \n-// String containing Hostname, Device Id & Device Key in the following formats:\n-const connection_string = 'HostName=' + connection_settings.host_name + ';DeviceId=' + connection_settings.device_id + ';SharedAccessKey=' + connection_settings.access_key + ';';\n-console.log(connection_string);\n // fromConnectionString must specify a transport constructor, coming from any transport package.\n-let client = Client.fromConnectionString(connection_string, Protocol);\n+let client = Client.fromConnectionString(CONNECTION_STRING, Protocol);\n \n-// define output file path\n-const nfc_read_data_dir = '/home/pi/work/p-zero-read/read-felica-by-usb-test/output/';\n-const nfc_read_data_file = path.join(nfc_read_data_dir, 'nfc-read-data.txt');\n+// define watch file path\n+const NFC_READ_DATA_DIR = '/home/pi/work/p-zero-read/read-felica-by-usb-test/output/';\n+const NFC_READ_DATA_FILE = path.join(NFC_READ_DATA_DIR, 'nfc-read-data.txt');\n \n-const ble_read_data_dir = '/home/pi/work/p-zero-read/read-ble-by-usb-test/output/';\n-const ble_read_data_file = path.join(ble_read_data_dir, 'ble-read-data.txt');\n+const BLE_READ_DATA_DIR = '/home/pi/work/p-zero-read/read-ble-by-usb-test/output/';\n+const BLE_READ_DATA_FILE = path.join(BLE_READ_DATA_DIR, 'ble-read-data.txt');\n \n // define object type\n-const message_object_type = 'TagCatch';\n+const MESSAGE_OBJECT_TYPE = 'TagCatch';\n \n-// converter\n-let convertToD2Cformat = (rawData) => {\n-  // 空ならとばす\n-  if (!rawData) {\n-    return;\n-  } \n+// P-ZERO tagType ENUM\n+const P_ZERO_TAG_TYPE = {\n+  'NFC_TYPE3_TAG': 'NFC-Type3Tag',\n+  'NFC_TYPE4_TAG': 'NFC-Type4Tag',\n+  'BLE_TAG': 'BLE-Tag',\n+};\n \n-  let ID = '';\n-  let tagType = '';\n-  let tags = [];\n+// nfc tagType ENUM\n+const NFC_TAG_TYPE = {\n+  'TYPE1_TAG': 'Type1Tag',\n+  'TYPE2_TAG': 'Type2Tag',\n+  'TYPE3_TAG': 'Type3Tag',\n+  'TYPE4_TAG': 'Type4Tag',\n+};\n \n-  // try to json parse\n-  let json = JSON.parse(rawData);\n+// receiver type\n+const RECEIVER_TYPE = {\n+  'NFC': 'NFC',\n+  'BLE': 'BLE',\n+};\n \n-  if (json){\n-    console.log(json); \n-  } else { \n-    let array = rawData.split(' ');\n+let createTagFormat = (id, tagType, dataObject) => {\n+  return {\n+    'ID':   id,\n+    'Type': tagType,\n+    'Data': dataObject,\n+  };\n+};\n \n-    // space区切りじゃなきゃとばす\n-    if (array.length === 1) {\n-      return;\n+let convertToBLEtags = (BLErawData) => {\n+  let tags = [];\n+  let json_parsed_data = JSON.parse(BLErawData); \n+  json_parsed_data.map((item) => {\n+    if (item.uuid && item.major && item.minor && item.measuredPower && item.rssi && item.accuracy && item.proximity && item.Timestamp) {\n+      tags.push(createTagFormat(item.uuid, P_ZERO_TAG_TYPE.BLE_TAG, item)); \n     }\n+  });\n+  return tags;\n+};\n+\n+let convertToNFCtags = (NFCrawData) => {\n+  let arrayNFCData = NFCrawData.split(' ');\n+  let ID = '';\n+  let tagType = arrayNFCData[0];\n \n-    tagType = array[0] || 'nothing';\n-\n-    switch (tagType) {\n-      case 'Type1Tag':\n-      case 'Type2Tag':\n-        console.log(`${tagType}'s format is not excluded.`);\n-        return;\n-        break;\n-      case 'Type3Tag':\n-        // IDmを\n-        ID = array[1].split('=')[1]; \n-        break;\n-      case 'Type4Tag':\n-        // ATSを\n-        ID = array[4].split('=')[1]; \n+  if (arrayNFCData.length === 1) {\n+    console.error('not space separated.'); \n+    return;\n+  }\n+\n+  switch (tagType) {\n+    case NFC_TAG_TYPE.TYPE1_TAG:\n+    case NFC_TAG_TYPE.TYPE2_TAG:\n+      console.error(`${tagType}'s format is not expected.`);\n+      return;\n       break;\n-      default:\n-        console.log('this type is not excluded.');\n-        return;\n+    case NFC_TAG_TYPE.TYPE3_TAG:\n+      // IDmを\n+      ID = arrayNFCData[1].split('=')[1]; \n+      tagType = P_ZERO_TAG_TYPE.NFC_TYPE3_TAG;\n       break;\n+    case NFC_TAG_TYPE.TYPE4_TAG:\n+      // ATSを\n+      ID = arrayNFCData[4].split('=')[1]; \n+      tagType = P_ZERO_TAG_TYPE.NFC_TYPE4_TAG;\n+    break;\n+    default:\n+      console.error('this type is not expected.');\n+      return;\n+    break;\n+  }\n+\n+  // delete tagType\n+  arrayNFCData.shift();\n+\n+  // array => object\n+  let dataObject = {};\n+  let tags = [];\n+  arrayNFCData.map((str) => {\n+    // format is key=value\n+    let splitStr = str.split('=');\n+    if (splitStr.length == 2) { \n+      dataObject[splitStr[0]] = splitStr[1];\n+    } else {\n+      // format error\n+      console.error(`it's not expect format : [${str}]`);\n+      return;\n     }\n+  });\n+  tags.push(createTagFormat(ID, tagType, dataObject));\n+  return tags;\n+};\n \n-    // tagTypeを切り詰めて、Dataにしちゃえ\n-    array.shift();\n-\n-    // array => object\n-    let dataObject = {};\n-    array.map((str) => {\n-      // key=value形式になっている\n-      let splitStr = str.split('=');\n-      if (splitStr.length == 2) { \n-        dataObject[splitStr[0]] = splitStr[1];\n-      } else {\n-        // key=value形式ではない\n-        console.log(`it's not expect format : [${str}]`);\n-        return;\n-      }\n-      tags = {\n-        'ID': ID,\n-        'Type': tagType,\n-        'Data':  dataObject\n-      };\n-    });\n+let convertToD2Cformat = (rawData, receiverType) => {\n+  if (!rawData || !receiverType) {\n+    console.error('[convertToD2Cformat] args is not setting.');\n+    return;\n   } \n+\n+  let tagType = '';\n+  let tags = [];\n+\n+  switch (receiverType) {","path":"send-data-to-iot-hub.js","position":195,"original_position":195,"commit_id":"37632cf586d2123c43a47deb27aaa8724947cd57","original_commit_id":"37632cf586d2123c43a47deb27aaa8724947cd57","user":{"login":"7474","id":4744735,"avatar_url":"https://avatars.githubusercontent.com/u/4744735?v=3","gravatar_id":"","url":"https://api.github.com/users/7474","html_url":"https://github.com/7474","followers_url":"https://api.github.com/users/7474/followers","following_url":"https://api.github.com/users/7474/following{/other_user}","gists_url":"https://api.github.com/users/7474/gists{/gist_id}","starred_url":"https://api.github.com/users/7474/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/7474/subscriptions","organizations_url":"https://api.github.com/users/7474/orgs","repos_url":"https://api.github.com/users/7474/repos","events_url":"https://api.github.com/users/7474/events{/privacy}","received_events_url":"https://api.github.com/users/7474/received_events","type":"User","site_admin":false},"body":"このへん、ファクトリーパターンなすめるがして分かりやすくていいですね。","created_at":"2016-04-13T01:19:14Z","updated_at":"2016-04-13T01:19:14Z","html_url":"https://github.com/TongChang/send-to-azure-iothub/pull/1#discussion_r59480745","pull_request_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/TongChang/send-to-azure-iothub/pulls/comments/59480745"},"html":{"href":"https://github.com/TongChang/send-to-azure-iothub/pull/1#discussion_r59480745"},"pull_request":{"href":"https://api.github.com/repos/TongChang/send-to-azure-iothub/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/pulls/1","id":66173206,"html_url":"https://github.com/TongChang/send-to-azure-iothub/pull/1","diff_url":"https://github.com/TongChang/send-to-azure-iothub/pull/1.diff","patch_url":"https://github.com/TongChang/send-to-azure-iothub/pull/1.patch","issue_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/issues/1","number":1,"state":"open","locked":false,"title":"Mod to operable(動くように修正する、という意味)","user":{"login":"TongChang","id":1296140,"avatar_url":"https://avatars.githubusercontent.com/u/1296140?v=3","gravatar_id":"","url":"https://api.github.com/users/TongChang","html_url":"https://github.com/TongChang","followers_url":"https://api.github.com/users/TongChang/followers","following_url":"https://api.github.com/users/TongChang/following{/other_user}","gists_url":"https://api.github.com/users/TongChang/gists{/gist_id}","starred_url":"https://api.github.com/users/TongChang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TongChang/subscriptions","organizations_url":"https://api.github.com/users/TongChang/orgs","repos_url":"https://api.github.com/users/TongChang/repos","events_url":"https://api.github.com/users/TongChang/events{/privacy}","received_events_url":"https://api.github.com/users/TongChang/received_events","type":"User","site_admin":false},"body":"ついに動きました。","created_at":"2016-04-12T15:01:48Z","updated_at":"2016-04-13T01:19:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b9d4e467d428ca8a33efe9422c8a1b9d43c12cee","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/pulls/1/commits","review_comments_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/pulls/1/comments","review_comment_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/issues/1/comments","statuses_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/statuses/37632cf586d2123c43a47deb27aaa8724947cd57","head":{"label":"TongChang:mod-to-operable","ref":"mod-to-operable","sha":"37632cf586d2123c43a47deb27aaa8724947cd57","user":{"login":"TongChang","id":1296140,"avatar_url":"https://avatars.githubusercontent.com/u/1296140?v=3","gravatar_id":"","url":"https://api.github.com/users/TongChang","html_url":"https://github.com/TongChang","followers_url":"https://api.github.com/users/TongChang/followers","following_url":"https://api.github.com/users/TongChang/following{/other_user}","gists_url":"https://api.github.com/users/TongChang/gists{/gist_id}","starred_url":"https://api.github.com/users/TongChang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TongChang/subscriptions","organizations_url":"https://api.github.com/users/TongChang/orgs","repos_url":"https://api.github.com/users/TongChang/repos","events_url":"https://api.github.com/users/TongChang/events{/privacy}","received_events_url":"https://api.github.com/users/TongChang/received_events","type":"User","site_admin":false},"repo":{"id":56060049,"name":"send-to-azure-iothub","full_name":"TongChang/send-to-azure-iothub","owner":{"login":"TongChang","id":1296140,"avatar_url":"https://avatars.githubusercontent.com/u/1296140?v=3","gravatar_id":"","url":"https://api.github.com/users/TongChang","html_url":"https://github.com/TongChang","followers_url":"https://api.github.com/users/TongChang/followers","following_url":"https://api.github.com/users/TongChang/following{/other_user}","gists_url":"https://api.github.com/users/TongChang/gists{/gist_id}","starred_url":"https://api.github.com/users/TongChang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TongChang/subscriptions","organizations_url":"https://api.github.com/users/TongChang/orgs","repos_url":"https://api.github.com/users/TongChang/repos","events_url":"https://api.github.com/users/TongChang/events{/privacy}","received_events_url":"https://api.github.com/users/TongChang/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TongChang/send-to-azure-iothub","description":"","fork":false,"url":"https://api.github.com/repos/TongChang/send-to-azure-iothub","forks_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/forks","keys_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/teams","hooks_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/hooks","issue_events_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/issues/events{/number}","events_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/events","assignees_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/assignees{/user}","branches_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/branches{/branch}","tags_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/tags","blobs_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/git/refs{/sha}","trees_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/statuses/{sha}","languages_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/languages","stargazers_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/stargazers","contributors_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/contributors","subscribers_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/subscribers","subscription_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/subscription","commits_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/commits{/sha}","git_commits_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/git/commits{/sha}","comments_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/comments{/number}","issue_comment_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/issues/comments{/number}","contents_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/contents/{+path}","compare_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/merges","archive_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/downloads","issues_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/issues{/number}","pulls_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/pulls{/number}","milestones_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/milestones{/number}","notifications_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/labels{/name}","releases_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/releases{/id}","deployments_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/deployments","created_at":"2016-04-12T12:13:01Z","updated_at":"2016-04-12T12:17:18Z","pushed_at":"2016-04-12T15:01:48Z","git_url":"git://github.com/TongChang/send-to-azure-iothub.git","ssh_url":"git@github.com:TongChang/send-to-azure-iothub.git","clone_url":"https://github.com/TongChang/send-to-azure-iothub.git","svn_url":"https://github.com/TongChang/send-to-azure-iothub","homepage":null,"size":10,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"TongChang:master","ref":"master","sha":"78ff4f0f0d93665e4ea7d5470736c42dd20daf96","user":{"login":"TongChang","id":1296140,"avatar_url":"https://avatars.githubusercontent.com/u/1296140?v=3","gravatar_id":"","url":"https://api.github.com/users/TongChang","html_url":"https://github.com/TongChang","followers_url":"https://api.github.com/users/TongChang/followers","following_url":"https://api.github.com/users/TongChang/following{/other_user}","gists_url":"https://api.github.com/users/TongChang/gists{/gist_id}","starred_url":"https://api.github.com/users/TongChang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TongChang/subscriptions","organizations_url":"https://api.github.com/users/TongChang/orgs","repos_url":"https://api.github.com/users/TongChang/repos","events_url":"https://api.github.com/users/TongChang/events{/privacy}","received_events_url":"https://api.github.com/users/TongChang/received_events","type":"User","site_admin":false},"repo":{"id":56060049,"name":"send-to-azure-iothub","full_name":"TongChang/send-to-azure-iothub","owner":{"login":"TongChang","id":1296140,"avatar_url":"https://avatars.githubusercontent.com/u/1296140?v=3","gravatar_id":"","url":"https://api.github.com/users/TongChang","html_url":"https://github.com/TongChang","followers_url":"https://api.github.com/users/TongChang/followers","following_url":"https://api.github.com/users/TongChang/following{/other_user}","gists_url":"https://api.github.com/users/TongChang/gists{/gist_id}","starred_url":"https://api.github.com/users/TongChang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TongChang/subscriptions","organizations_url":"https://api.github.com/users/TongChang/orgs","repos_url":"https://api.github.com/users/TongChang/repos","events_url":"https://api.github.com/users/TongChang/events{/privacy}","received_events_url":"https://api.github.com/users/TongChang/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TongChang/send-to-azure-iothub","description":"","fork":false,"url":"https://api.github.com/repos/TongChang/send-to-azure-iothub","forks_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/forks","keys_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/teams","hooks_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/hooks","issue_events_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/issues/events{/number}","events_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/events","assignees_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/assignees{/user}","branches_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/branches{/branch}","tags_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/tags","blobs_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/git/refs{/sha}","trees_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/statuses/{sha}","languages_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/languages","stargazers_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/stargazers","contributors_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/contributors","subscribers_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/subscribers","subscription_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/subscription","commits_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/commits{/sha}","git_commits_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/git/commits{/sha}","comments_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/comments{/number}","issue_comment_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/issues/comments{/number}","contents_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/contents/{+path}","compare_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/merges","archive_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/downloads","issues_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/issues{/number}","pulls_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/pulls{/number}","milestones_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/milestones{/number}","notifications_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/labels{/name}","releases_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/releases{/id}","deployments_url":"https://api.github.com/repos/TongChang/send-to-azure-iothub/deployments","created_at":"2016-04-12T12:13:01Z","updated_at":"2016-04-12T12:17:18Z","pushed_at":"2016-04-12T15:01:48Z","git_url":"git://github.com/TongChang/send-to-azure-iothub.git","ssh_url":"git@github.com:TongChang/send-to-azure-iothub.git","clone_url":"https://github.com/TongChang/send-to-azure-iothub.git","svn_url":"https://github.com/TongChang/send-to-azure-iothub","homepage":null,"size":10,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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/TongChang/send-to-azure-iothub/pulls/1"},"html":{"href":"https://github.com/TongChang/send-to-azure-iothub/pull/1"},"issue":{"href":"https://api.github.com/repos/TongChang/send-to-azure-iothub/issues/1"},"comments":{"href":"https://api.github.com/repos/TongChang/send-to-azure-iothub/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/TongChang/send-to-azure-iothub/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/TongChang/send-to-azure-iothub/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TongChang/send-to-azure-iothub/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/TongChang/send-to-azure-iothub/statuses/37632cf586d2123c43a47deb27aaa8724947cd57"}}}}