Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RepeatTime

An SDP repeat time element.

Hierarchy

  • RepeatTime

Index

Constructors

constructor

  • new RepeatTime(repeatInterval: TimeSpan, activeDuration: TimeSpan, offsets: TimeSpan[]): RepeatTime
  • new RepeatTime(repeatInterval: TimeSpan, activeDuration: TimeSpan): RepeatTime
  • Initializes a new instance of the fm.icelink.sdp.repeatTime class.

    Parameters

    • repeatInterval: TimeSpan

      The repeat interval.

    • activeDuration: TimeSpan

      The active duration.

    • offsets: TimeSpan[]

      The offsets from the start time.

    Returns RepeatTime

  • Initializes a new instance of the fm.icelink.sdp.repeatTime class.

    Parameters

    • repeatInterval: TimeSpan

      The repeat interval.

    • activeDuration: TimeSpan

      The active duration.

    Returns RepeatTime

Properties

Private __offsets

__offsets: Array<TimeSpan>
internal

Private _activeDuration

_activeDuration: TimeSpan
internal

Private _repeatInterval

_repeatInterval: TimeSpan
internal

Methods

addOffset

  • addOffset(offset: TimeSpan): void
  • Adds an offset from the start time.

    Parameters

    • offset: TimeSpan

      The offset from the start time to add.

    Returns void

getActiveDuration

  • getActiveDuration(): TimeSpan
  • Gets the active duration.

    Returns TimeSpan

getOffsets

  • getOffsets(): TimeSpan[]
  • Gets the array of offsets from the start time.

    Returns TimeSpan[]

getRepeatInterval

  • getRepeatInterval(): TimeSpan
  • Gets the repeat interval.

    Returns TimeSpan

getTypeString

  • getTypeString(): string
  • Returns string

removeOffset

  • removeOffset(offset: TimeSpan): boolean
  • Removes an offset from the start time.

    Parameters

    • offset: TimeSpan

      The offset from the start time to remove.

    Returns boolean

Private setActiveDuration

  • setActiveDuration(value: TimeSpan): void
  • internal

    Parameters

    • value: TimeSpan

    Returns void

Private setRepeatInterval

  • setRepeatInterval(value: TimeSpan): void
  • internal

    Parameters

    • value: TimeSpan

    Returns void

toString

  • toString(): string
  • Converts this instance to a string.

    Returns string

Static parse

  • parse(s: string): RepeatTime
  • Creates an fm.icelink.sdp.repeatTime instance from a string.

    Parameters

    • s: string

      The string to parse.

    Returns RepeatTime