Class RepeatTime
An SDP repeat time element.
Inheritance
System.Object
    RepeatTime
  Namespace: FM.LiveSwitch.Sdp
Assembly: FM.LiveSwitch.dll
Syntax
public class RepeatTime : object
  Constructors
RepeatTime(TimeSpan, TimeSpan)
Initializes a new instance of the RepeatTime class.
Declaration
public RepeatTime(TimeSpan repeatInterval, TimeSpan activeDuration)
  Parameters
| Type | Name | Description | 
|---|---|---|
| TimeSpan | repeatInterval | The repeat interval.  | 
      
| TimeSpan | activeDuration | The active duration.  | 
      
RepeatTime(TimeSpan, TimeSpan, TimeSpan[])
Initializes a new instance of the RepeatTime class.
Declaration
public RepeatTime(TimeSpan repeatInterval, TimeSpan activeDuration, TimeSpan[] offsets)
  Parameters
| Type | Name | Description | 
|---|---|---|
| TimeSpan | repeatInterval | The repeat interval.  | 
      
| TimeSpan | activeDuration | The active duration.  | 
      
| TimeSpan[] | offsets | The offsets from the start time.  | 
      
Properties
ActiveDuration
Gets or sets the active duration.
Declaration
public TimeSpan ActiveDuration { get; }
  Property Value
| Type | Description | 
|---|---|
| TimeSpan | 
Offsets
Gets the array of offsets from the start time.
Declaration
public TimeSpan[] Offsets { get; }
  Property Value
| Type | Description | 
|---|---|
| TimeSpan[] | 
RepeatInterval
Gets or sets the repeat interval.
Declaration
public TimeSpan RepeatInterval { get; }
  Property Value
| Type | Description | 
|---|---|
| TimeSpan | 
Methods
AddOffset(TimeSpan)
Adds an offset from the start time.
Declaration
public void AddOffset(TimeSpan offset)
  Parameters
| Type | Name | Description | 
|---|---|---|
| TimeSpan | offset | The offset from the start time to add.  | 
      
Parse(String)
Creates an RepeatTime instance from a string.
Declaration
public static RepeatTime Parse(string s)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | s | The string to parse.  | 
      
Returns
| Type | Description | 
|---|---|
| RepeatTime | 
RemoveOffset(TimeSpan)
Removes an offset from the start time.
Declaration
public bool RemoveOffset(TimeSpan offset)
  Parameters
| Type | Name | Description | 
|---|---|---|
| TimeSpan | offset | The offset from the start time to remove.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Boolean | 
ToString()
Converts this instance to a string.
Declaration
public override string ToString()
  Returns
| Type | Description | 
|---|---|
| System.String |