Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Added Brightcove Rendition Id to Deserialization #35

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ namespace BrightcoveMapiWrapper.Model.Items
/// </summary>
public class BrightcoveRendition : BrightcoveItem, IJavaScriptConvertable
{
/// <summary>
/// The rendition's id.
/// </summary>
public long Id
{
get;
private set;
}

/// <summary>
/// [Optional — required for live streaming only] Depending on your CDN, one of the following
/// values: LIMELIGHT_LIVE or AKAMAI_LIVE.
Expand Down Expand Up @@ -158,6 +167,13 @@ public void Deserialize(IDictionary<string, object> dictionary, JavaScriptSerial
ApiUtil.ThrowIfError(dictionary, key, serializer);
break;

case "id":
if (dictionary[key] != null)
{
Id = (long)dictionary[key];
}
break;

case "controllerType":
ControllerType = ((string)dictionary[key]).ToBrightcoveEnum<ControllerType>();
break;
Expand Down