{"action":"created","comment":{"url":"https://api.github.com/repos/donatieng/mbed-os/pulls/comments/212666280","pull_request_review_id":149349819,"id":212666280,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMjY2NjI4MA==","diff_hunk":"@@ -0,0 +1,145 @@\n+/* mbed Microcontroller Library\n+ * Copyright (c) 2018 ARM Limited\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ *     http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\n+#ifndef NFC_COMMON_TEXT_H_\n+#define NFC_COMMON_TEXT_H_\n+\n+#include \"platform/Span.h\"\n+#include <nfc/ndef/RecordParser.h>\n+#include <nfc/ndef/MessageBuilder.h>\n+#include <stdint.h>\n+\n+namespace mbed {\n+namespace nfc {\n+namespace common {\n+\n+/**\n+ * @addtogroup nfc\n+ * @{\n+ */\n+\n+/**\n+ * Represent the well known type text.\n+ */\n+class Text {\n+public:\n+    /**\n+     * Encoding of the text.\n+     */\n+    enum encoding_t {\n+        UTF8 = 0,//!< UTF8\n+        UTF16 = 1//!< UTF16\n+    };\n+\n+    /**\n+     * Construct an empty text element.\n+     */\n+    Text();\n+\n+    /**\n+     * Construct a text element from a data buffer and an encoding.\n+     * @param text_encoding The encoding of the text.\n+     * @param language_code The string of the language code.\n+     * @param text The text buffer.\n+     */\n+    Text(\n+        encoding_t text_encoding,\n+        const Span<const uint8_t> &language_code,\n+        const Span<const uint8_t> &text","path":"features/nfc/nfc/common/Text.h","position":61,"original_position":61,"commit_id":"16cdb76196a3ff29d64824faf2428b5c43a015d1","original_commit_id":"16cdb76196a3ff29d64824faf2428b5c43a015d1","user":{"login":"donatieng","id":4488374,"node_id":"MDQ6VXNlcjQ0ODgzNzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/4488374?v=4","gravatar_id":"","url":"https://api.github.com/users/donatieng","html_url":"https://github.com/donatieng","followers_url":"https://api.github.com/users/donatieng/followers","following_url":"https://api.github.com/users/donatieng/following{/other_user}","gists_url":"https://api.github.com/users/donatieng/gists{/gist_id}","starred_url":"https://api.github.com/users/donatieng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donatieng/subscriptions","organizations_url":"https://api.github.com/users/donatieng/orgs","repos_url":"https://api.github.com/users/donatieng/repos","events_url":"https://api.github.com/users/donatieng/events{/privacy}","received_events_url":"https://api.github.com/users/donatieng/received_events","type":"User","site_admin":false},"body":"Same comment as for Mime type","created_at":"2018-08-24T15:28:06Z","updated_at":"2018-08-24T15:37:17Z","html_url":"https://github.com/donatieng/mbed-os/pull/5#discussion_r212666280","pull_request_url":"https://api.github.com/repos/donatieng/mbed-os/pulls/5","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/donatieng/mbed-os/pulls/comments/212666280"},"html":{"href":"https://github.com/donatieng/mbed-os/pull/5#discussion_r212666280"},"pull_request":{"href":"https://api.github.com/repos/donatieng/mbed-os/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/donatieng/mbed-os/pulls/5","id":210771896,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEwNzcxODk2","html_url":"https://github.com/donatieng/mbed-os/pull/5","diff_url":"https://github.com/donatieng/mbed-os/pull/5.diff","patch_url":"https://github.com/donatieng/mbed-os/pull/5.patch","issue_url":"https://api.github.com/repos/donatieng/mbed-os/issues/5","number":5,"state":"open","locked":false,"title":"NDEF framework","user":{"login":"pan-","id":409941,"node_id":"MDQ6VXNlcjQwOTk0MQ==","avatar_url":"https://avatars3.githubusercontent.com/u/409941?v=4","gravatar_id":"","url":"https://api.github.com/users/pan-","html_url":"https://github.com/pan-","followers_url":"https://api.github.com/users/pan-/followers","following_url":"https://api.github.com/users/pan-/following{/other_user}","gists_url":"https://api.github.com/users/pan-/gists{/gist_id}","starred_url":"https://api.github.com/users/pan-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pan-/subscriptions","organizations_url":"https://api.github.com/users/pan-/orgs","repos_url":"https://api.github.com/users/pan-/repos","events_url":"https://api.github.com/users/pan-/events{/privacy}","received_events_url":"https://api.github.com/users/pan-/received_events","type":"User","site_admin":false},"body":"### Description\r\n\r\nNDEF framework inplementation.\r\n\r\n### Pull request type\r\n\r\n    [ ] Fix\r\n    [ ] Refactor\r\n    [ ] New target\r\n    [X] Feature\r\n    [ ] Breaking change\r\n\r\n","created_at":"2018-08-24T15:20:06Z","updated_at":"2018-08-24T15:37:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c7e16eece2ec9b921e1ac16bdba6cada04393e69","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/donatieng/mbed-os/pulls/5/commits","review_comments_url":"https://api.github.com/repos/donatieng/mbed-os/pulls/5/comments","review_comment_url":"https://api.github.com/repos/donatieng/mbed-os/pulls/comments{/number}","comments_url":"https://api.github.com/repos/donatieng/mbed-os/issues/5/comments","statuses_url":"https://api.github.com/repos/donatieng/mbed-os/statuses/16cdb76196a3ff29d64824faf2428b5c43a015d1","head":{"label":"pan-:nfc","ref":"nfc","sha":"16cdb76196a3ff29d64824faf2428b5c43a015d1","user":{"login":"pan-","id":409941,"node_id":"MDQ6VXNlcjQwOTk0MQ==","avatar_url":"https://avatars3.githubusercontent.com/u/409941?v=4","gravatar_id":"","url":"https://api.github.com/users/pan-","html_url":"https://github.com/pan-","followers_url":"https://api.github.com/users/pan-/followers","following_url":"https://api.github.com/users/pan-/following{/other_user}","gists_url":"https://api.github.com/users/pan-/gists{/gist_id}","starred_url":"https://api.github.com/users/pan-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pan-/subscriptions","organizations_url":"https://api.github.com/users/pan-/orgs","repos_url":"https://api.github.com/users/pan-/repos","events_url":"https://api.github.com/users/pan-/events{/privacy}","received_events_url":"https://api.github.com/users/pan-/received_events","type":"User","site_admin":false},"repo":{"id":59667574,"node_id":"MDEwOlJlcG9zaXRvcnk1OTY2NzU3NA==","name":"mbed","full_name":"pan-/mbed","owner":{"login":"pan-","id":409941,"node_id":"MDQ6VXNlcjQwOTk0MQ==","avatar_url":"https://avatars3.githubusercontent.com/u/409941?v=4","gravatar_id":"","url":"https://api.github.com/users/pan-","html_url":"https://github.com/pan-","followers_url":"https://api.github.com/users/pan-/followers","following_url":"https://api.github.com/users/pan-/following{/other_user}","gists_url":"https://api.github.com/users/pan-/gists{/gist_id}","starred_url":"https://api.github.com/users/pan-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pan-/subscriptions","organizations_url":"https://api.github.com/users/pan-/orgs","repos_url":"https://api.github.com/users/pan-/repos","events_url":"https://api.github.com/users/pan-/events{/privacy}","received_events_url":"https://api.github.com/users/pan-/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pan-/mbed","description":"mbed libraries and tools (Classic). For mbed OS, look here: https://www.mbed.com/en/development/software/mbed-os/","fork":true,"url":"https://api.github.com/repos/pan-/mbed","forks_url":"https://api.github.com/repos/pan-/mbed/forks","keys_url":"https://api.github.com/repos/pan-/mbed/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pan-/mbed/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pan-/mbed/teams","hooks_url":"https://api.github.com/repos/pan-/mbed/hooks","issue_events_url":"https://api.github.com/repos/pan-/mbed/issues/events{/number}","events_url":"https://api.github.com/repos/pan-/mbed/events","assignees_url":"https://api.github.com/repos/pan-/mbed/assignees{/user}","branches_url":"https://api.github.com/repos/pan-/mbed/branches{/branch}","tags_url":"https://api.github.com/repos/pan-/mbed/tags","blobs_url":"https://api.github.com/repos/pan-/mbed/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pan-/mbed/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pan-/mbed/git/refs{/sha}","trees_url":"https://api.github.com/repos/pan-/mbed/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pan-/mbed/statuses/{sha}","languages_url":"https://api.github.com/repos/pan-/mbed/languages","stargazers_url":"https://api.github.com/repos/pan-/mbed/stargazers","contributors_url":"https://api.github.com/repos/pan-/mbed/contributors","subscribers_url":"https://api.github.com/repos/pan-/mbed/subscribers","subscription_url":"https://api.github.com/repos/pan-/mbed/subscription","commits_url":"https://api.github.com/repos/pan-/mbed/commits{/sha}","git_commits_url":"https://api.github.com/repos/pan-/mbed/git/commits{/sha}","comments_url":"https://api.github.com/repos/pan-/mbed/comments{/number}","issue_comment_url":"https://api.github.com/repos/pan-/mbed/issues/comments{/number}","contents_url":"https://api.github.com/repos/pan-/mbed/contents/{+path}","compare_url":"https://api.github.com/repos/pan-/mbed/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pan-/mbed/merges","archive_url":"https://api.github.com/repos/pan-/mbed/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pan-/mbed/downloads","issues_url":"https://api.github.com/repos/pan-/mbed/issues{/number}","pulls_url":"https://api.github.com/repos/pan-/mbed/pulls{/number}","milestones_url":"https://api.github.com/repos/pan-/mbed/milestones{/number}","notifications_url":"https://api.github.com/repos/pan-/mbed/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pan-/mbed/labels{/name}","releases_url":"https://api.github.com/repos/pan-/mbed/releases{/id}","deployments_url":"https://api.github.com/repos/pan-/mbed/deployments","created_at":"2016-05-25T13:56:37Z","updated_at":"2018-07-03T11:25:51Z","pushed_at":"2018-08-24T15:19:05Z","git_url":"git://github.com/pan-/mbed.git","ssh_url":"git@github.com:pan-/mbed.git","clone_url":"https://github.com/pan-/mbed.git","svn_url":"https://github.com/pan-/mbed","homepage":"","size":216182,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"donatieng:nfc-impl","ref":"nfc-impl","sha":"ad4aa914e98898ead373bc6488633428e69e0b5b","user":{"login":"donatieng","id":4488374,"node_id":"MDQ6VXNlcjQ0ODgzNzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/4488374?v=4","gravatar_id":"","url":"https://api.github.com/users/donatieng","html_url":"https://github.com/donatieng","followers_url":"https://api.github.com/users/donatieng/followers","following_url":"https://api.github.com/users/donatieng/following{/other_user}","gists_url":"https://api.github.com/users/donatieng/gists{/gist_id}","starred_url":"https://api.github.com/users/donatieng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donatieng/subscriptions","organizations_url":"https://api.github.com/users/donatieng/orgs","repos_url":"https://api.github.com/users/donatieng/repos","events_url":"https://api.github.com/users/donatieng/events{/privacy}","received_events_url":"https://api.github.com/users/donatieng/received_events","type":"User","site_admin":false},"repo":{"id":17516910,"node_id":"MDEwOlJlcG9zaXRvcnkxNzUxNjkxMA==","name":"mbed-os","full_name":"donatieng/mbed-os","owner":{"login":"donatieng","id":4488374,"node_id":"MDQ6VXNlcjQ0ODgzNzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/4488374?v=4","gravatar_id":"","url":"https://api.github.com/users/donatieng","html_url":"https://github.com/donatieng","followers_url":"https://api.github.com/users/donatieng/followers","following_url":"https://api.github.com/users/donatieng/following{/other_user}","gists_url":"https://api.github.com/users/donatieng/gists{/gist_id}","starred_url":"https://api.github.com/users/donatieng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donatieng/subscriptions","organizations_url":"https://api.github.com/users/donatieng/orgs","repos_url":"https://api.github.com/users/donatieng/repos","events_url":"https://api.github.com/users/donatieng/events{/privacy}","received_events_url":"https://api.github.com/users/donatieng/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/donatieng/mbed-os","description":"mbed libraries and tools","fork":true,"url":"https://api.github.com/repos/donatieng/mbed-os","forks_url":"https://api.github.com/repos/donatieng/mbed-os/forks","keys_url":"https://api.github.com/repos/donatieng/mbed-os/keys{/key_id}","collaborators_url":"https://api.github.com/repos/donatieng/mbed-os/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/donatieng/mbed-os/teams","hooks_url":"https://api.github.com/repos/donatieng/mbed-os/hooks","issue_events_url":"https://api.github.com/repos/donatieng/mbed-os/issues/events{/number}","events_url":"https://api.github.com/repos/donatieng/mbed-os/events","assignees_url":"https://api.github.com/repos/donatieng/mbed-os/assignees{/user}","branches_url":"https://api.github.com/repos/donatieng/mbed-os/branches{/branch}","tags_url":"https://api.github.com/repos/donatieng/mbed-os/tags","blobs_url":"https://api.github.com/repos/donatieng/mbed-os/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/donatieng/mbed-os/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/donatieng/mbed-os/git/refs{/sha}","trees_url":"https://api.github.com/repos/donatieng/mbed-os/git/trees{/sha}","statuses_url":"https://api.github.com/repos/donatieng/mbed-os/statuses/{sha}","languages_url":"https://api.github.com/repos/donatieng/mbed-os/languages","stargazers_url":"https://api.github.com/repos/donatieng/mbed-os/stargazers","contributors_url":"https://api.github.com/repos/donatieng/mbed-os/contributors","subscribers_url":"https://api.github.com/repos/donatieng/mbed-os/subscribers","subscription_url":"https://api.github.com/repos/donatieng/mbed-os/subscription","commits_url":"https://api.github.com/repos/donatieng/mbed-os/commits{/sha}","git_commits_url":"https://api.github.com/repos/donatieng/mbed-os/git/commits{/sha}","comments_url":"https://api.github.com/repos/donatieng/mbed-os/comments{/number}","issue_comment_url":"https://api.github.com/repos/donatieng/mbed-os/issues/comments{/number}","contents_url":"https://api.github.com/repos/donatieng/mbed-os/contents/{+path}","compare_url":"https://api.github.com/repos/donatieng/mbed-os/compare/{base}...{head}","merges_url":"https://api.github.com/repos/donatieng/mbed-os/merges","archive_url":"https://api.github.com/repos/donatieng/mbed-os/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/donatieng/mbed-os/downloads","issues_url":"https://api.github.com/repos/donatieng/mbed-os/issues{/number}","pulls_url":"https://api.github.com/repos/donatieng/mbed-os/pulls{/number}","milestones_url":"https://api.github.com/repos/donatieng/mbed-os/milestones{/number}","notifications_url":"https://api.github.com/repos/donatieng/mbed-os/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/donatieng/mbed-os/labels{/name}","releases_url":"https://api.github.com/repos/donatieng/mbed-os/releases{/id}","deployments_url":"https://api.github.com/repos/donatieng/mbed-os/deployments","created_at":"2014-03-07T14:47:35Z","updated_at":"2018-07-04T17:12:04Z","pushed_at":"2018-08-24T15:20:07Z","git_url":"git://github.com/donatieng/mbed-os.git","ssh_url":"git@github.com:donatieng/mbed-os.git","clone_url":"https://github.com/donatieng/mbed-os.git","svn_url":"https://github.com/donatieng/mbed-os","homepage":null,"size":212224,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/donatieng/mbed-os/pulls/5"},"html":{"href":"https://github.com/donatieng/mbed-os/pull/5"},"issue":{"href":"https://api.github.com/repos/donatieng/mbed-os/issues/5"},"comments":{"href":"https://api.github.com/repos/donatieng/mbed-os/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/donatieng/mbed-os/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/donatieng/mbed-os/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/donatieng/mbed-os/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/donatieng/mbed-os/statuses/16cdb76196a3ff29d64824faf2428b5c43a015d1"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"donatieng"}}