示例#1
0
 public ConvertLiveSegmentJobData(JToken node) : base(node)
 {
     if (node["entryId"] != null)
     {
         this._EntryId = node["entryId"].Value <string>();
     }
     if (node["assetId"] != null)
     {
         this._AssetId = node["assetId"].Value <string>();
     }
     if (node["mediaServerIndex"] != null)
     {
         this._MediaServerIndex = (EntryServerNodeType)StringEnum.Parse(typeof(EntryServerNodeType), node["mediaServerIndex"].Value <string>());
     }
     if (node["fileIndex"] != null)
     {
         this._FileIndex = ParseInt(node["fileIndex"].Value <string>());
     }
     if (node["srcFilePath"] != null)
     {
         this._SrcFilePath = node["srcFilePath"].Value <string>();
     }
     if (node["destFilePath"] != null)
     {
         this._DestFilePath = node["destFilePath"].Value <string>();
     }
     if (node["endTime"] != null)
     {
         this._EndTime = ParseFloat(node["endTime"].Value <string>());
     }
     if (node["destDataFilePath"] != null)
     {
         this._DestDataFilePath = node["destDataFilePath"].Value <string>();
     }
 }
示例#2
0
 public LiveChannelUnregisterMediaServerRequestBuilder(string entryId, string hostname, EntryServerNodeType mediaServerIndex)
     : this()
 {
     this.EntryId          = entryId;
     this.Hostname         = hostname;
     this.MediaServerIndex = mediaServerIndex;
 }
 public EntryServerNode(JToken node) : base(node)
 {
     if (node["id"] != null)
     {
         this._Id = ParseInt(node["id"].Value <string>());
     }
     if (node["entryId"] != null)
     {
         this._EntryId = node["entryId"].Value <string>();
     }
     if (node["serverNodeId"] != null)
     {
         this._ServerNodeId = ParseInt(node["serverNodeId"].Value <string>());
     }
     if (node["partnerId"] != null)
     {
         this._PartnerId = ParseInt(node["partnerId"].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["status"] != null)
     {
         this._Status = (EntryServerNodeStatus)ParseEnum(typeof(EntryServerNodeStatus), node["status"].Value <string>());
     }
     if (node["serverType"] != null)
     {
         this._ServerType = (EntryServerNodeType)StringEnum.Parse(typeof(EntryServerNodeType), node["serverType"].Value <string>());
     }
 }
示例#4
0
 public LiveChannelCreateRecordedEntryRequestBuilder(string entryId, EntryServerNodeType mediaServerIndex, EntryServerNodeStatus liveEntryStatus)
     : this()
 {
     this.EntryId          = entryId;
     this.MediaServerIndex = mediaServerIndex;
     this.LiveEntryStatus  = liveEntryStatus;
 }
示例#5
0
 public EntryServerNodeBaseFilter(JToken node) : base(node)
 {
     if (node["entryIdEqual"] != null)
     {
         this._EntryIdEqual = node["entryIdEqual"].Value <string>();
     }
     if (node["entryIdIn"] != null)
     {
         this._EntryIdIn = node["entryIdIn"].Value <string>();
     }
     if (node["serverNodeIdEqual"] != null)
     {
         this._ServerNodeIdEqual = ParseInt(node["serverNodeIdEqual"].Value <string>());
     }
     if (node["serverNodeIdIn"] != null)
     {
         this._ServerNodeIdIn = node["serverNodeIdIn"].Value <string>();
     }
     if (node["serverNodeIdNotIn"] != null)
     {
         this._ServerNodeIdNotIn = node["serverNodeIdNotIn"].Value <string>();
     }
     if (node["createdAtLessThanOrEqual"] != null)
     {
         this._CreatedAtLessThanOrEqual = ParseInt(node["createdAtLessThanOrEqual"].Value <string>());
     }
     if (node["createdAtGreaterThanOrEqual"] != null)
     {
         this._CreatedAtGreaterThanOrEqual = ParseInt(node["createdAtGreaterThanOrEqual"].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["statusEqual"] != null)
     {
         this._StatusEqual = (EntryServerNodeStatus)ParseEnum(typeof(EntryServerNodeStatus), node["statusEqual"].Value <string>());
     }
     if (node["statusIn"] != null)
     {
         this._StatusIn = node["statusIn"].Value <string>();
     }
     if (node["serverTypeEqual"] != null)
     {
         this._ServerTypeEqual = (EntryServerNodeType)StringEnum.Parse(typeof(EntryServerNodeType), node["serverTypeEqual"].Value <string>());
     }
     if (node["serverTypeIn"] != null)
     {
         this._ServerTypeIn = node["serverTypeIn"].Value <string>();
     }
     if (node["serverTypeNotIn"] != null)
     {
         this._ServerTypeNotIn = node["serverTypeNotIn"].Value <string>();
     }
 }
示例#6
0
 public LiveChannelSetRecordedContentRequestBuilder(string entryId, EntryServerNodeType mediaServerIndex, DataCenterContentResource resource, float duration, string recordedEntryId, int flavorParamsId)
     : this()
 {
     this.EntryId          = entryId;
     this.MediaServerIndex = mediaServerIndex;
     this.Resource         = resource;
     this.Duration         = duration;
     this.RecordedEntryId  = recordedEntryId;
     this.FlavorParamsId   = flavorParamsId;
 }
        public EntryServerNodeBaseFilter(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "entryIdEqual":
                    this._EntryIdEqual = propertyNode.InnerText;
                    continue;

                case "entryIdIn":
                    this._EntryIdIn = propertyNode.InnerText;
                    continue;

                case "serverNodeIdEqual":
                    this._ServerNodeIdEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "createdAtLessThanOrEqual":
                    this._CreatedAtLessThanOrEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "createdAtGreaterThanOrEqual":
                    this._CreatedAtGreaterThanOrEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "updatedAtGreaterThanOrEqual":
                    this._UpdatedAtGreaterThanOrEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "updatedAtLessThanOrEqual":
                    this._UpdatedAtLessThanOrEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "statusEqual":
                    this._StatusEqual = (EntryServerNodeStatus)ParseEnum(typeof(EntryServerNodeStatus), propertyNode.InnerText);
                    continue;

                case "statusIn":
                    this._StatusIn = propertyNode.InnerText;
                    continue;

                case "serverTypeEqual":
                    this._ServerTypeEqual = (EntryServerNodeType)StringEnum.Parse(typeof(EntryServerNodeType), propertyNode.InnerText);
                    continue;

                case "serverTypeIn":
                    this._ServerTypeIn = propertyNode.InnerText;
                    continue;
                }
            }
        }
示例#8
0
        public EntryServerNode(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "id":
                    this._Id = ParseInt(propertyNode.InnerText);
                    continue;

                case "entryId":
                    this._EntryId = propertyNode.InnerText;
                    continue;

                case "serverNodeId":
                    this._ServerNodeId = ParseInt(propertyNode.InnerText);
                    continue;

                case "partnerId":
                    this._PartnerId = ParseInt(propertyNode.InnerText);
                    continue;

                case "createdAt":
                    this._CreatedAt = ParseInt(propertyNode.InnerText);
                    continue;

                case "updatedAt":
                    this._UpdatedAt = ParseInt(propertyNode.InnerText);
                    continue;

                case "status":
                    this._Status = (EntryServerNodeStatus)ParseEnum(typeof(EntryServerNodeStatus), propertyNode.InnerText);
                    continue;

                case "serverType":
                    this._ServerType = (EntryServerNodeType)StringEnum.Parse(typeof(EntryServerNodeType), propertyNode.InnerText);
                    continue;
                }
            }
        }
        public ConvertLiveSegmentJobData(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "entryId":
                    this._EntryId = propertyNode.InnerText;
                    continue;

                case "assetId":
                    this._AssetId = propertyNode.InnerText;
                    continue;

                case "mediaServerIndex":
                    this._MediaServerIndex = (EntryServerNodeType)StringEnum.Parse(typeof(EntryServerNodeType), propertyNode.InnerText);
                    continue;

                case "fileIndex":
                    this._FileIndex = ParseInt(propertyNode.InnerText);
                    continue;

                case "srcFilePath":
                    this._SrcFilePath = propertyNode.InnerText;
                    continue;

                case "destFilePath":
                    this._DestFilePath = propertyNode.InnerText;
                    continue;

                case "endTime":
                    this._EndTime = ParseFloat(propertyNode.InnerText);
                    continue;

                case "destDataFilePath":
                    this._DestDataFilePath = propertyNode.InnerText;
                    continue;
                }
            }
        }
示例#10
0
 public static LiveChannelUnregisterMediaServerRequestBuilder UnregisterMediaServer(string entryId, string hostname, EntryServerNodeType mediaServerIndex)
 {
     return(new LiveChannelUnregisterMediaServerRequestBuilder(entryId, hostname, mediaServerIndex));
 }
示例#11
0
 public static LiveChannelSetRecordedContentRequestBuilder SetRecordedContent(string entryId, EntryServerNodeType mediaServerIndex, DataCenterContentResource resource, float duration, string recordedEntryId = null, int flavorParamsId = Int32.MinValue)
 {
     return(new LiveChannelSetRecordedContentRequestBuilder(entryId, mediaServerIndex, resource, duration, recordedEntryId, flavorParamsId));
 }
示例#12
0
 public static LiveChannelRegisterMediaServerRequestBuilder RegisterMediaServer(string entryId, string hostname, EntryServerNodeType mediaServerIndex, string applicationName = null, EntryServerNodeStatus liveEntryStatus = (EntryServerNodeStatus)(1), bool shouldCreateRecordedEntry = true)
 {
     return(new LiveChannelRegisterMediaServerRequestBuilder(entryId, hostname, mediaServerIndex, applicationName, liveEntryStatus, shouldCreateRecordedEntry));
 }
示例#13
0
 public static LiveChannelCreateRecordedEntryRequestBuilder CreateRecordedEntry(string entryId, EntryServerNodeType mediaServerIndex, EntryServerNodeStatus liveEntryStatus)
 {
     return(new LiveChannelCreateRecordedEntryRequestBuilder(entryId, mediaServerIndex, liveEntryStatus));
 }
示例#14
0
 public static LiveChannelAppendRecordingRequestBuilder AppendRecording(string entryId, string assetId, EntryServerNodeType mediaServerIndex, DataCenterContentResource resource, float duration, bool isLastChunk = false)
 {
     return(new LiveChannelAppendRecordingRequestBuilder(entryId, assetId, mediaServerIndex, resource, duration, isLastChunk));
 }
示例#15
0
 public static LiveStreamAuthenticateRequestBuilder Authenticate(string entryId, string token, string hostname = null, EntryServerNodeType mediaServerIndex = null, string applicationName = null)
 {
     return(new LiveStreamAuthenticateRequestBuilder(entryId, token, hostname, mediaServerIndex, applicationName));
 }
示例#16
0
 public LiveStreamAuthenticateRequestBuilder(string entryId, string token, string hostname, EntryServerNodeType mediaServerIndex, string applicationName)
     : this()
 {
     this.EntryId          = entryId;
     this.Token            = token;
     this.Hostname         = hostname;
     this.MediaServerIndex = mediaServerIndex;
     this.ApplicationName  = applicationName;
 }
示例#17
0
 public LiveChannelRegisterMediaServerRequestBuilder(string entryId, string hostname, EntryServerNodeType mediaServerIndex, string applicationName, EntryServerNodeStatus liveEntryStatus, bool shouldCreateRecordedEntry)
     : this()
 {
     this.EntryId                   = entryId;
     this.Hostname                  = hostname;
     this.MediaServerIndex          = mediaServerIndex;
     this.ApplicationName           = applicationName;
     this.LiveEntryStatus           = liveEntryStatus;
     this.ShouldCreateRecordedEntry = shouldCreateRecordedEntry;
 }
示例#18
0
 public LiveChannelAppendRecordingRequestBuilder(string entryId, string assetId, EntryServerNodeType mediaServerIndex, DataCenterContentResource resource, float duration, bool isLastChunk)
     : this()
 {
     this.EntryId          = entryId;
     this.AssetId          = assetId;
     this.MediaServerIndex = mediaServerIndex;
     this.Resource         = resource;
     this.Duration         = duration;
     this.IsLastChunk      = isLastChunk;
 }