{"action":"created","comment":{"url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/pulls/comments/35382487","id":35382487,"diff_hunk":"@@ -0,0 +1,90 @@\n+﻿using System;\n+using System.Collections.Generic;\n+using System.Web.Script.Serialization;\n+using BrightcoveMapiWrapper.Serialization;\n+using BrightcoveMapiWrapper.Util;\n+\n+namespace BrightcoveMapiWrapper.Model.Items\n+{\n+    /// <summary>\n+    /// A source that provides captions for a video\n+    /// </summary>\n+    /// <remarks>\n+    /// See https://docs.brightcove.com/en/video-cloud/media/references/reference.html#CaptionSource\n+    /// </remarks>\n+    public class BrightcoveCaptionSource : BrightcoveItem, IJavaScriptConvertable\n+    {\n+        /// <summary>\n+        /// A Boolean indicating whether a CaptionSource is usable.\n+        /// </summary>\n+        public bool Complete { get; set; }\n+\n+        /// <summary>\n+        /// The name of the caption source, which will be displayed in the Media module.\n+        /// </summary>\n+        public string DisplayName { get; set; }\n+\n+        /// <summary>\n+        /// A number that uniquely identifies this CaptionSource object, \n+        /// assigned by Video Cloud when this object is created.\n+        /// </summary>\n+        public long? Id { get; set; }\n+\n+        /// <summary>\n+        /// A Boolean indicating whether or not this CaptionSource is hosted on a remote server, \n+        /// as opposed to hosted by Brightcove.\n+        /// </summary>\n+        public bool IsRemote { get; set; }\n+\n+        /// <summary>\n+        /// The complete path to the file.\n+        /// </summary>\n+        public string Url { get; set; }\n+\n+        public IDictionary<string, object> Serialize(JavaScriptSerializer serializer)\n+        {\n+            IDictionary<string, object> serialized = new Dictionary<string, object>();\n+\n+            serialized[\"complete\"] = Complete;\n+            serialized[\"displayName\"] = DisplayName;\n+            serialized[\"id\"] = Id ?? 0;","path":"source/BrightcoveOS .NET-MAPI-Wrapper/Model/Items/BrightcoveCaptionSource.cs","position":50,"original_position":50,"commit_id":"317da5064af1a442661a2a4d8583a1f576211bd6","original_commit_id":"317da5064af1a442661a2a4d8583a1f576211bd6","user":{"login":"denmarkin","id":45307,"avatar_url":"https://avatars.githubusercontent.com/u/45307?v=3","gravatar_id":"","url":"https://api.github.com/users/denmarkin","html_url":"https://github.com/denmarkin","followers_url":"https://api.github.com/users/denmarkin/followers","following_url":"https://api.github.com/users/denmarkin/following{/other_user}","gists_url":"https://api.github.com/users/denmarkin/gists{/gist_id}","starred_url":"https://api.github.com/users/denmarkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denmarkin/subscriptions","organizations_url":"https://api.github.com/users/denmarkin/orgs","repos_url":"https://api.github.com/users/denmarkin/repos","events_url":"https://api.github.com/users/denmarkin/events{/privacy}","received_events_url":"https://api.github.com/users/denmarkin/received_events","type":"User","site_admin":false},"body":"Same concern about read-only fields. No need to set them, assuming Searilize is used to send data.","created_at":"2015-07-23T23:13:42Z","updated_at":"2015-07-23T23:13:42Z","html_url":"https://github.com/BrightcoveOS/.NET-MAPI-Wrapper/pull/36#discussion_r35382487","pull_request_url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/pulls/36","_links":{"self":{"href":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/pulls/comments/35382487"},"html":{"href":"https://github.com/BrightcoveOS/.NET-MAPI-Wrapper/pull/36#discussion_r35382487"},"pull_request":{"href":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/pulls/36"}}},"pull_request":{"url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/pulls/36","id":40726960,"html_url":"https://github.com/BrightcoveOS/.NET-MAPI-Wrapper/pull/36","diff_url":"https://github.com/BrightcoveOS/.NET-MAPI-Wrapper/pull/36.diff","patch_url":"https://github.com/BrightcoveOS/.NET-MAPI-Wrapper/pull/36.patch","issue_url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/issues/36","number":36,"state":"open","locked":false,"title":"Support for AddCaptioning","user":{"login":"amhed","id":579291,"avatar_url":"https://avatars.githubusercontent.com/u/579291?v=3","gravatar_id":"","url":"https://api.github.com/users/amhed","html_url":"https://github.com/amhed","followers_url":"https://api.github.com/users/amhed/followers","following_url":"https://api.github.com/users/amhed/following{/other_user}","gists_url":"https://api.github.com/users/amhed/gists{/gist_id}","starred_url":"https://api.github.com/users/amhed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amhed/subscriptions","organizations_url":"https://api.github.com/users/amhed/orgs","repos_url":"https://api.github.com/users/amhed/repos","events_url":"https://api.github.com/users/amhed/events{/privacy}","received_events_url":"https://api.github.com/users/amhed/received_events","type":"User","site_admin":false},"body":"Hey guys, \r\n\r\nWe've been using the API and found that the `add_captioning` method was missing from the wrapper, so we added it according to https://docs.brightcove.com/en/video-cloud/media/references/reference.html#Video_Write\r\n\r\nThanks again!","created_at":"2015-07-23T22:47:38Z","updated_at":"2015-07-23T23:13:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"230fac795ab748d20af7658f3cdf7d995597a0b7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/pulls/36/commits","review_comments_url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/pulls/36/comments","review_comment_url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/issues/36/comments","statuses_url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/statuses/317da5064af1a442661a2a4d8583a1f576211bd6","head":{"label":"revdotcom:feature/addCaptioning","ref":"feature/addCaptioning","sha":"317da5064af1a442661a2a4d8583a1f576211bd6","user":{"login":"revdotcom","id":2295433,"avatar_url":"https://avatars.githubusercontent.com/u/2295433?v=3","gravatar_id":"","url":"https://api.github.com/users/revdotcom","html_url":"https://github.com/revdotcom","followers_url":"https://api.github.com/users/revdotcom/followers","following_url":"https://api.github.com/users/revdotcom/following{/other_user}","gists_url":"https://api.github.com/users/revdotcom/gists{/gist_id}","starred_url":"https://api.github.com/users/revdotcom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/revdotcom/subscriptions","organizations_url":"https://api.github.com/users/revdotcom/orgs","repos_url":"https://api.github.com/users/revdotcom/repos","events_url":"https://api.github.com/users/revdotcom/events{/privacy}","received_events_url":"https://api.github.com/users/revdotcom/received_events","type":"Organization","site_admin":false},"repo":{"id":39533802,"name":".NET-MAPI-Wrapper","full_name":"revdotcom/.NET-MAPI-Wrapper","owner":{"login":"revdotcom","id":2295433,"avatar_url":"https://avatars.githubusercontent.com/u/2295433?v=3","gravatar_id":"","url":"https://api.github.com/users/revdotcom","html_url":"https://github.com/revdotcom","followers_url":"https://api.github.com/users/revdotcom/followers","following_url":"https://api.github.com/users/revdotcom/following{/other_user}","gists_url":"https://api.github.com/users/revdotcom/gists{/gist_id}","starred_url":"https://api.github.com/users/revdotcom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/revdotcom/subscriptions","organizations_url":"https://api.github.com/users/revdotcom/orgs","repos_url":"https://api.github.com/users/revdotcom/repos","events_url":"https://api.github.com/users/revdotcom/events{/privacy}","received_events_url":"https://api.github.com/users/revdotcom/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/revdotcom/.NET-MAPI-Wrapper","description":"This project provides a starting point for integrating the Brightcove Media API into your application. It provides simple ways to interact with the API.","fork":true,"url":"https://api.github.com/repos/revdotcom/.NET-MAPI-Wrapper","forks_url":"https://api.github.com/repos/revdotcom/.NET-MAPI-Wrapper/forks","keys_url":"https://api.github.com/repos/revdotcom/.NET-MAPI-Wrapper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/revdotcom/.NET-MAPI-Wrapper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/revdotcom/.NET-MAPI-Wrapper/teams","hooks_url":"https://api.github.com/repos/revdotcom/.NET-MAPI-Wrapper/hooks","issue_events_url":"https://api.github.com/repos/revdotcom/.NET-MAPI-Wrapper/issues/events{/number}","events_url":"https://api.github.com/repos/revdotcom/.NET-MAPI-Wrapper/events","assignees_url":"https://api.github.com/repos/revdotcom/.NET-MAPI-Wrapper/assignees{/user}","branches_url":"https://api.github.com/repos/revdotcom/.NET-MAPI-Wrapper/branches{/branch}","tags_url":"https://api.github.com/repos/revdotcom/.NET-MAPI-Wrapper/tags","blobs_url":"https://api.github.com/repos/revdotcom/.NET-MAPI-Wrapper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/revdotcom/.NET-MAPI-Wrapper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/revdotcom/.NET-MAPI-Wrapper/git/refs{/sha}","trees_url":"https://api.github.com/repos/revdotcom/.NET-MAPI-Wrapper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/revdotcom/.NET-MAPI-Wrapper/statuses/{sha}","languages_url":"https://api.github.com/repos/revdotcom/.NET-MAPI-Wrapper/languages","stargazers_url":"https://api.github.com/repos/revdotcom/.NET-MAPI-Wrapper/stargazers","contributors_url":"https://api.github.com/repos/revdotcom/.NET-MAPI-Wrapper/contributors","subscribers_url":"https://api.github.com/repos/revdotcom/.NET-MAPI-Wrapper/subscribers","subscription_url":"https://api.github.com/repos/revdotcom/.NET-MAPI-Wrapper/subscription","commits_url":"https://api.github.com/repos/revdotcom/.NET-MAPI-Wrapper/commits{/sha}","git_commits_url":"https://api.github.com/repos/revdotcom/.NET-MAPI-Wrapper/git/commits{/sha}","comments_url":"https://api.github.com/repos/revdotcom/.NET-MAPI-Wrapper/comments{/number}","issue_comment_url":"https://api.github.com/repos/revdotcom/.NET-MAPI-Wrapper/issues/comments{/number}","contents_url":"https://api.github.com/repos/revdotcom/.NET-MAPI-Wrapper/contents/{+path}","compare_url":"https://api.github.com/repos/revdotcom/.NET-MAPI-Wrapper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/revdotcom/.NET-MAPI-Wrapper/merges","archive_url":"https://api.github.com/repos/revdotcom/.NET-MAPI-Wrapper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/revdotcom/.NET-MAPI-Wrapper/downloads","issues_url":"https://api.github.com/repos/revdotcom/.NET-MAPI-Wrapper/issues{/number}","pulls_url":"https://api.github.com/repos/revdotcom/.NET-MAPI-Wrapper/pulls{/number}","milestones_url":"https://api.github.com/repos/revdotcom/.NET-MAPI-Wrapper/milestones{/number}","notifications_url":"https://api.github.com/repos/revdotcom/.NET-MAPI-Wrapper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/revdotcom/.NET-MAPI-Wrapper/labels{/name}","releases_url":"https://api.github.com/repos/revdotcom/.NET-MAPI-Wrapper/releases{/id}","created_at":"2015-07-22T22:43:32Z","updated_at":"2015-07-23T04:58:00Z","pushed_at":"2015-07-23T22:42:33Z","git_url":"git://github.com/revdotcom/.NET-MAPI-Wrapper.git","ssh_url":"git@github.com:revdotcom/.NET-MAPI-Wrapper.git","clone_url":"https://github.com/revdotcom/.NET-MAPI-Wrapper.git","svn_url":"https://github.com/revdotcom/.NET-MAPI-Wrapper","homepage":"http://opensource.brightcove.com/project/NET-MAPI-Wrapper","size":21375,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"BrightcoveOS:master","ref":"master","sha":"448b4ce0f846188c4c4d3eed39f0705bc9c166f1","user":{"login":"BrightcoveOS","id":442411,"avatar_url":"https://avatars.githubusercontent.com/u/442411?v=3","gravatar_id":"","url":"https://api.github.com/users/BrightcoveOS","html_url":"https://github.com/BrightcoveOS","followers_url":"https://api.github.com/users/BrightcoveOS/followers","following_url":"https://api.github.com/users/BrightcoveOS/following{/other_user}","gists_url":"https://api.github.com/users/BrightcoveOS/gists{/gist_id}","starred_url":"https://api.github.com/users/BrightcoveOS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrightcoveOS/subscriptions","organizations_url":"https://api.github.com/users/BrightcoveOS/orgs","repos_url":"https://api.github.com/users/BrightcoveOS/repos","events_url":"https://api.github.com/users/BrightcoveOS/events{/privacy}","received_events_url":"https://api.github.com/users/BrightcoveOS/received_events","type":"Organization","site_admin":false},"repo":{"id":1288449,"name":".NET-MAPI-Wrapper","full_name":"BrightcoveOS/.NET-MAPI-Wrapper","owner":{"login":"BrightcoveOS","id":442411,"avatar_url":"https://avatars.githubusercontent.com/u/442411?v=3","gravatar_id":"","url":"https://api.github.com/users/BrightcoveOS","html_url":"https://github.com/BrightcoveOS","followers_url":"https://api.github.com/users/BrightcoveOS/followers","following_url":"https://api.github.com/users/BrightcoveOS/following{/other_user}","gists_url":"https://api.github.com/users/BrightcoveOS/gists{/gist_id}","starred_url":"https://api.github.com/users/BrightcoveOS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrightcoveOS/subscriptions","organizations_url":"https://api.github.com/users/BrightcoveOS/orgs","repos_url":"https://api.github.com/users/BrightcoveOS/repos","events_url":"https://api.github.com/users/BrightcoveOS/events{/privacy}","received_events_url":"https://api.github.com/users/BrightcoveOS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BrightcoveOS/.NET-MAPI-Wrapper","description":"This project provides a starting point for integrating the Brightcove Media API into your application. It provides simple ways to interact with the API.","fork":false,"url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper","forks_url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/forks","keys_url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/teams","hooks_url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/hooks","issue_events_url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/issues/events{/number}","events_url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/events","assignees_url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/assignees{/user}","branches_url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/branches{/branch}","tags_url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/tags","blobs_url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/git/refs{/sha}","trees_url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/statuses/{sha}","languages_url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/languages","stargazers_url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/stargazers","contributors_url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/contributors","subscribers_url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/subscribers","subscription_url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/subscription","commits_url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/commits{/sha}","git_commits_url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/git/commits{/sha}","comments_url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/comments{/number}","issue_comment_url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/issues/comments{/number}","contents_url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/contents/{+path}","compare_url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/merges","archive_url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/downloads","issues_url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/issues{/number}","pulls_url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/pulls{/number}","milestones_url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/milestones{/number}","notifications_url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/labels{/name}","releases_url":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/releases{/id}","created_at":"2011-01-24T17:24:42Z","updated_at":"2015-03-30T21:31:36Z","pushed_at":"2015-07-23T22:47:38Z","git_url":"git://github.com/BrightcoveOS/.NET-MAPI-Wrapper.git","ssh_url":"git@github.com:BrightcoveOS/.NET-MAPI-Wrapper.git","clone_url":"https://github.com/BrightcoveOS/.NET-MAPI-Wrapper.git","svn_url":"https://github.com/BrightcoveOS/.NET-MAPI-Wrapper","homepage":"http://opensource.brightcove.com/project/NET-MAPI-Wrapper","size":22921,"stargazers_count":15,"watchers_count":15,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":4,"forks":20,"open_issues":4,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/pulls/36"},"html":{"href":"https://github.com/BrightcoveOS/.NET-MAPI-Wrapper/pull/36"},"issue":{"href":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/issues/36"},"comments":{"href":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/issues/36/comments"},"review_comments":{"href":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/pulls/36/comments"},"review_comment":{"href":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/pulls/36/commits"},"statuses":{"href":"https://api.github.com/repos/BrightcoveOS/.NET-MAPI-Wrapper/statuses/317da5064af1a442661a2a4d8583a1f576211bd6"}}}}