private string ReturnFilterTrackBitrateRangeAsString(FilterTrackBitrateRange br) { if (br.HighBound != null && br.LowBound != null) { return(string.Format("{0}-{1}", br.LowBound, br.HighBound)); } else { if (br.HighBound != null) { return(br.HighBound.ToString()); } else { return(br.LowBound.ToString()); } } }
/// <summary> /// /// </summary> /// <param name="filterTrackBitrateRange">string representation of <see cref="FilterTrackBitrateRange"/></param> /// <param name="filterTrackCompareOperator"> string representation of <see cref="FilterTrackCompareOperator"/></param> internal FilterTrackBitrateRangeCondition(string filterTrackBitrateRange, string filterTrackCompareOperator) : base(filterTrackCompareOperator) { Value = new FilterTrackBitrateRange(filterTrackBitrateRange); }
/// <summary> /// /// </summary> /// <param name="filterTrackBitrateRange">A range of bitrates or a specific bitrate. For example, 0-2427000.</param> /// <param name="filterTrackCompareOperator"><see cref="FilterTrackCompareOperator"/></param> public FilterTrackBitrateRangeCondition(FilterTrackBitrateRange filterTrackBitrateRange, FilterTrackCompareOperator filterTrackCompareOperator = FilterTrackCompareOperator.Equal) : base(filterTrackCompareOperator) { Value = filterTrackBitrateRange; }