public LiveStreamConfiguration(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "protocol": this._Protocol = (PlaybackProtocol)StringEnum.Parse(typeof(PlaybackProtocol), propertyNode.InnerText); continue; case "url": this._Url = propertyNode.InnerText; continue; case "publishUrl": this._PublishUrl = propertyNode.InnerText; continue; case "backupUrl": this._BackupUrl = propertyNode.InnerText; continue; case "streamName": this._StreamName = propertyNode.InnerText; continue; } } }
public DeliveryProfileBaseFilter(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "idEqual": this._IdEqual = ParseInt(propertyNode.InnerText); continue; case "idIn": this._IdIn = propertyNode.InnerText; continue; case "partnerIdEqual": this._PartnerIdEqual = ParseInt(propertyNode.InnerText); continue; case "partnerIdIn": this._PartnerIdIn = propertyNode.InnerText; continue; case "systemNameEqual": this._SystemNameEqual = propertyNode.InnerText; continue; case "systemNameIn": this._SystemNameIn = propertyNode.InnerText; continue; case "createdAtGreaterThanOrEqual": this._CreatedAtGreaterThanOrEqual = ParseInt(propertyNode.InnerText); continue; case "createdAtLessThanOrEqual": this._CreatedAtLessThanOrEqual = ParseInt(propertyNode.InnerText); continue; case "updatedAtGreaterThanOrEqual": this._UpdatedAtGreaterThanOrEqual = ParseInt(propertyNode.InnerText); continue; case "updatedAtLessThanOrEqual": this._UpdatedAtLessThanOrEqual = ParseInt(propertyNode.InnerText); continue; case "streamerTypeEqual": this._StreamerTypeEqual = (PlaybackProtocol)StringEnum.Parse(typeof(PlaybackProtocol), propertyNode.InnerText); continue; case "statusEqual": this._StatusEqual = (DeliveryStatus)ParseEnum(typeof(DeliveryStatus), propertyNode.InnerText); continue; case "statusIn": this._StatusIn = propertyNode.InnerText; continue; } } }
public DeliveryProfileBaseFilter(JToken node) : base(node) { if (node["idEqual"] != null) { this._IdEqual = ParseInt(node["idEqual"].Value <string>()); } if (node["idIn"] != null) { this._IdIn = node["idIn"].Value <string>(); } if (node["partnerIdEqual"] != null) { this._PartnerIdEqual = ParseInt(node["partnerIdEqual"].Value <string>()); } if (node["partnerIdIn"] != null) { this._PartnerIdIn = node["partnerIdIn"].Value <string>(); } if (node["systemNameEqual"] != null) { this._SystemNameEqual = node["systemNameEqual"].Value <string>(); } if (node["systemNameIn"] != null) { this._SystemNameIn = node["systemNameIn"].Value <string>(); } if (node["createdAtGreaterThanOrEqual"] != null) { this._CreatedAtGreaterThanOrEqual = ParseInt(node["createdAtGreaterThanOrEqual"].Value <string>()); } if (node["createdAtLessThanOrEqual"] != null) { this._CreatedAtLessThanOrEqual = ParseInt(node["createdAtLessThanOrEqual"].Value <string>()); } if (node["updatedAtGreaterThanOrEqual"] != null) { this._UpdatedAtGreaterThanOrEqual = ParseInt(node["updatedAtGreaterThanOrEqual"].Value <string>()); } if (node["updatedAtLessThanOrEqual"] != null) { this._UpdatedAtLessThanOrEqual = ParseInt(node["updatedAtLessThanOrEqual"].Value <string>()); } if (node["streamerTypeEqual"] != null) { this._StreamerTypeEqual = (PlaybackProtocol)StringEnum.Parse(typeof(PlaybackProtocol), node["streamerTypeEqual"].Value <string>()); } if (node["statusEqual"] != null) { this._StatusEqual = (DeliveryStatus)ParseEnum(typeof(DeliveryStatus), node["statusEqual"].Value <string>()); } if (node["statusIn"] != null) { this._StatusIn = node["statusIn"].Value <string>(); } }
public LiveStatsEvent(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "partnerId": this._PartnerId = ParseInt(propertyNode.InnerText); continue; case "entryId": this._EntryId = propertyNode.InnerText; continue; case "eventType": this._EventType = (LiveStatsEventType)ParseEnum(typeof(LiveStatsEventType), propertyNode.InnerText); continue; case "sessionId": this._SessionId = propertyNode.InnerText; continue; case "eventIndex": this._EventIndex = ParseInt(propertyNode.InnerText); continue; case "bufferTime": this._BufferTime = ParseInt(propertyNode.InnerText); continue; case "bitrate": this._Bitrate = ParseInt(propertyNode.InnerText); continue; case "referrer": this._Referrer = propertyNode.InnerText; continue; case "isLive": this._IsLive = ParseBool(propertyNode.InnerText); continue; case "startTime": this._StartTime = propertyNode.InnerText; continue; case "deliveryType": this._DeliveryType = (PlaybackProtocol)StringEnum.Parse(typeof(PlaybackProtocol), propertyNode.InnerText); continue; } } }
public LiveStatsEvent(JToken node) : base(node) { if (node["partnerId"] != null) { this._PartnerId = ParseInt(node["partnerId"].Value <string>()); } if (node["entryId"] != null) { this._EntryId = node["entryId"].Value <string>(); } if (node["eventType"] != null) { this._EventType = (LiveStatsEventType)ParseEnum(typeof(LiveStatsEventType), node["eventType"].Value <string>()); } if (node["sessionId"] != null) { this._SessionId = node["sessionId"].Value <string>(); } if (node["eventIndex"] != null) { this._EventIndex = ParseInt(node["eventIndex"].Value <string>()); } if (node["bufferTime"] != null) { this._BufferTime = ParseInt(node["bufferTime"].Value <string>()); } if (node["bitrate"] != null) { this._Bitrate = ParseInt(node["bitrate"].Value <string>()); } if (node["referrer"] != null) { this._Referrer = node["referrer"].Value <string>(); } if (node["isLive"] != null) { this._IsLive = ParseBool(node["isLive"].Value <string>()); } if (node["startTime"] != null) { this._StartTime = node["startTime"].Value <string>(); } if (node["deliveryType"] != null) { this._DeliveryType = (PlaybackProtocol)StringEnum.Parse(typeof(PlaybackProtocol), node["deliveryType"].Value <string>()); } }
public LiveStreamConfiguration(JToken node) : base(node) { if (node["protocol"] != null) { this._Protocol = (PlaybackProtocol)StringEnum.Parse(typeof(PlaybackProtocol), node["protocol"].Value <string>()); } if (node["url"] != null) { this._Url = node["url"].Value <string>(); } if (node["publishUrl"] != null) { this._PublishUrl = node["publishUrl"].Value <string>(); } if (node["backupUrl"] != null) { this._BackupUrl = node["backupUrl"].Value <string>(); } if (node["streamName"] != null) { this._StreamName = node["streamName"].Value <string>(); } }
public DeliveryProfile(JToken node) : base(node) { if (node["id"] != null) { this._Id = ParseInt(node["id"].Value <string>()); } if (node["partnerId"] != null) { this._PartnerId = ParseInt(node["partnerId"].Value <string>()); } if (node["name"] != null) { this._Name = node["name"].Value <string>(); } if (node["type"] != null) { this._Type = (DeliveryProfileType)StringEnum.Parse(typeof(DeliveryProfileType), node["type"].Value <string>()); } if (node["systemName"] != null) { this._SystemName = node["systemName"].Value <string>(); } if (node["description"] != null) { this._Description = node["description"].Value <string>(); } if (node["createdAt"] != null) { this._CreatedAt = ParseInt(node["createdAt"].Value <string>()); } if (node["updatedAt"] != null) { this._UpdatedAt = ParseInt(node["updatedAt"].Value <string>()); } if (node["streamerType"] != null) { this._StreamerType = (PlaybackProtocol)StringEnum.Parse(typeof(PlaybackProtocol), node["streamerType"].Value <string>()); } if (node["url"] != null) { this._Url = node["url"].Value <string>(); } if (node["hostName"] != null) { this._HostName = node["hostName"].Value <string>(); } if (node["status"] != null) { this._Status = (DeliveryStatus)ParseEnum(typeof(DeliveryStatus), node["status"].Value <string>()); } if (node["recognizer"] != null) { this._Recognizer = ObjectFactory.Create <UrlRecognizer>(node["recognizer"]); } if (node["tokenizer"] != null) { this._Tokenizer = ObjectFactory.Create <UrlTokenizer>(node["tokenizer"]); } if (node["isDefault"] != null) { this._IsDefault = (NullableBoolean)ParseEnum(typeof(NullableBoolean), node["isDefault"].Value <string>()); } if (node["parentId"] != null) { this._ParentId = ParseInt(node["parentId"].Value <string>()); } if (node["mediaProtocols"] != null) { this._MediaProtocols = node["mediaProtocols"].Value <string>(); } if (node["priority"] != null) { this._Priority = ParseInt(node["priority"].Value <string>()); } if (node["extraParams"] != null) { this._ExtraParams = node["extraParams"].Value <string>(); } if (node["supplementaryAssetsFilter"] != null) { this._SupplementaryAssetsFilter = ObjectFactory.Create <AssetFilter>(node["supplementaryAssetsFilter"]); } }
public DeliveryProfile(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "id": this._Id = ParseInt(propertyNode.InnerText); continue; case "partnerId": this._PartnerId = ParseInt(propertyNode.InnerText); continue; case "name": this._Name = propertyNode.InnerText; continue; case "type": this._Type = (DeliveryProfileType)StringEnum.Parse(typeof(DeliveryProfileType), propertyNode.InnerText); continue; case "systemName": this._SystemName = propertyNode.InnerText; continue; case "description": this._Description = propertyNode.InnerText; continue; case "createdAt": this._CreatedAt = ParseInt(propertyNode.InnerText); continue; case "updatedAt": this._UpdatedAt = ParseInt(propertyNode.InnerText); continue; case "streamerType": this._StreamerType = (PlaybackProtocol)StringEnum.Parse(typeof(PlaybackProtocol), propertyNode.InnerText); continue; case "url": this._Url = propertyNode.InnerText; continue; case "hostName": this._HostName = propertyNode.InnerText; continue; case "status": this._Status = (DeliveryStatus)ParseEnum(typeof(DeliveryStatus), propertyNode.InnerText); continue; case "recognizer": this._Recognizer = ObjectFactory.Create <UrlRecognizer>(propertyNode); continue; case "tokenizer": this._Tokenizer = ObjectFactory.Create <UrlTokenizer>(propertyNode); continue; case "isDefault": this._IsDefault = (NullableBoolean)ParseEnum(typeof(NullableBoolean), propertyNode.InnerText); continue; case "parentId": this._ParentId = ParseInt(propertyNode.InnerText); continue; case "mediaProtocols": this._MediaProtocols = propertyNode.InnerText; continue; case "priority": this._Priority = ParseInt(propertyNode.InnerText); continue; case "extraParams": this._ExtraParams = propertyNode.InnerText; continue; case "supplementaryAssetsFilter": this._SupplementaryAssetsFilter = ObjectFactory.Create <AssetFilter>(propertyNode); continue; } } }
public LiveStreamIsLiveRequestBuilder(string id, PlaybackProtocol protocol) : this() { this.Id = id; this.Protocol = protocol; }
public static LiveStreamRemoveLiveStreamPushPublishConfigurationRequestBuilder RemoveLiveStreamPushPublishConfiguration(string entryId, PlaybackProtocol protocol) { return(new LiveStreamRemoveLiveStreamPushPublishConfigurationRequestBuilder(entryId, protocol)); }
public static LiveStreamIsLiveRequestBuilder IsLive(string id, PlaybackProtocol protocol = null) { return(new LiveStreamIsLiveRequestBuilder(id, protocol)); }
public static LiveStreamAddLiveStreamPushPublishConfigurationRequestBuilder AddLiveStreamPushPublishConfiguration(string entryId, PlaybackProtocol protocol, string url = null, LiveStreamConfiguration liveStreamConfiguration = null) { return(new LiveStreamAddLiveStreamPushPublishConfigurationRequestBuilder(entryId, protocol, url, liveStreamConfiguration)); }
public LiveStreamAddLiveStreamPushPublishConfigurationRequestBuilder(string entryId, PlaybackProtocol protocol, string url, LiveStreamConfiguration liveStreamConfiguration) : this() { this.EntryId = entryId; this.Protocol = protocol; this.Url = url; this.LiveStreamConfiguration = liveStreamConfiguration; }
public LiveStreamRemoveLiveStreamPushPublishConfigurationRequestBuilder(string entryId, PlaybackProtocol protocol) : this() { this.EntryId = entryId; this.Protocol = protocol; }