Ejemplo n.º 1
0
 /// <summary>
 /// Gibt eine Liste mit EPG-Einträge zurück, welche den Suchtext enthalten.
 /// Returns a list of EPG entries containing the search text.
 /// </summary>
 /// <param name="searchText"></param>
 /// <param name="searchOptions">Optional: Default is T (Title) and S (Subtitle)</param>
 /// <returns></returns>
 public static Task <EpgList> GetEpgListAsync(string searchText, Enums.EpgSearchOptions searchOptions = Enums.EpgSearchOptions.T | Enums.EpgSearchOptions.S)
 {
     return(GetEpgListAsync(new List <Helper.UriParameter>
     {
         new Helper.UriParameter("search", searchText),
         new Helper.UriParameter("options", searchOptions.ToString("F").Replace(",", "").Replace(" ", "").Trim())
     }));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Gibt eine Liste mit EPG-Einträge zurück, welche den Suchtext enthalten.
 /// Returns a list of EPG entries containing the search text.
 /// </summary>
 /// <param name="searchText"></param>
 /// <param name="channelItem"></param>
 /// <param name="fromDate"></param>
 /// <param name="toDate"></param>
 /// <param name="searchOptions">Optional: Default is T (Title) and S (Subtitle)</param>
 /// <returns></returns>
 public static EpgList GetEpgList(string searchText, ChannelItem channelItem, DateTime fromDate, DateTime toDate, Enums.EpgSearchOptions searchOptions = Enums.EpgSearchOptions.T | Enums.EpgSearchOptions.S)
 {
     return(GetEpgListAsync(searchText, channelItem, fromDate, toDate, searchOptions).Result);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Gibt eine Liste mit EPG-Einträge zurück, welche den Suchtext enthalten.
 /// Returns a list of EPG entries containing the search text.
 /// </summary>
 /// <param name="searchText"></param>
 /// <param name="channelItem"></param>
 /// <param name="fromDate"></param>
 /// <param name="toDate"></param>
 /// <param name="searchOptions">Optional: Default is T (Title) and S (Subtitle)</param>
 /// <returns></returns>
 public static Task <EpgList> GetEpgListAsync(string searchText, ChannelItem channelItem, DateTime fromDate, DateTime toDate, Enums.EpgSearchOptions searchOptions = Enums.EpgSearchOptions.T | Enums.EpgSearchOptions.S)
 {
     return(GetEpgListAsync(new List <Helper.UriParameter>
     {
         new Helper.UriParameter("channel", $"{channelItem.EpgChannelID}"),
         new Helper.UriParameter("start", fromDate.ToOADate().ToString()),
         new Helper.UriParameter("end", toDate.ToOADate().ToString()),
         new Helper.UriParameter("search", searchText),
         new Helper.UriParameter("options", searchOptions.ToString("F").Replace(",", "").Replace(" ", "").Trim())
     }));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Gibt eine Liste mit EPG-Einträge zurück, welche den Suchtext enthalten.
 /// Returns a list of EPG entries containing the search text.
 /// </summary>
 /// <param name="searchText"></param>
 /// <param name="searchOptions">Optional: Default is T (Title) and S (Subtitle)</param>
 /// <returns></returns>
 public static EpgList GetEpgList(string searchText, Enums.EpgSearchOptions searchOptions = Enums.EpgSearchOptions.T | Enums.EpgSearchOptions.S)
 {
     return(GetEpgListAsync(searchText, searchOptions).Result);
 }