Service to handle the fetch of ovp live data
Methods
# async inner getLiveData(params) → {Promise.<Array.<Object>>}
Returns the information for live data between star time and end time.
Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
params | 
  
  
  
      
Object
  
   | 
  
      Params object  | 
|
startTime | 
  
  
  
      
Number
  
   | 
  
      The start time to fetch information (unix timestamp in ms)  | 
|
endTime | 
  
  
  
      
Number
  
   | 
  
      The end time to fetch information (unix timestamp in ms)  | 
|
segmentationValue | 
  
  
  
      
string
  
   | 
  
      
      
          <optional> | 
  
  
  optional segment to get a different value based on config  | 
Live programs
Promise.<Array.<Object>>
    # async inner getProgramData(params) → {Promise.<any>}
Returns the program data associated with a channel for a certain time
Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
params | 
  
  
  
      
Object
  
   | 
  
      params object  | 
|
channel | 
  
  
  
      
string
  
   | 
  
      channel identifier  | 
|
startTime | 
  
  
  
      
number
  
   | 
  
      The start time to fetch information (unix timestamp in ms)  | 
|
segmentationValue | 
  
  
  
      
string
  
   | 
  
      
      
          <optional> | 
  
  
  optional segment to get a different value based on config  | 
program data
Promise.<any>
    # inner getTimeHoursMins(unixTimestamp) → {String}
Retrieves a pretty version of hours and minutes information from a timestamp. (HH:MM)
Parameters:
| Name | Type | Description | 
|---|---|---|
unixTimestamp | 
  
  
  
      
Number
  
   | 
  
  
  The unix timestamp to get the value from  | 
The hours and minutes in the format HH:SS
String
    # async inner getTvListings(params) → {Promise.<any>}
Returns a set of listings for the specified time and combination of count+offset
Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
params | 
  
  
  
      
Object
  
   | 
  
      Params object  | 
|
startTime | 
  
  
  
      
number
  
   | 
  
      timestamp value for the initial time to fetch the data for the listings  | 
|
endTime | 
  
  
  
      
number
  
   | 
  
      timestamp value for the final time to fetch the data for the listings  | 
|
count | 
  
  
  
      
number
  
   | 
  
      the number of channels to return the data from  | 
|
offset | 
  
  
  
      
number
  
   | 
  
      the initial position of the channel to start returning data from  | 
|
segmentationValue | 
  
  
  
      
string
  
   | 
  
      
      
          <optional> | 
  
  
  optional segment to get a different value based on config  | 
the listings for the specified params
Promise.<any>