/// <summary>
 /// Get match status as an asynchronous operation
 /// </summary>
 /// <param name="culture">The culture used to fetch status id and description</param>
 /// <returns>ILocalizedNamedValue</returns>
 public async Task <ILocalizedNamedValue> GetMatchStatusAsync(CultureInfo culture)
 {
     return(SportEventStatusCI == null || SportEventStatusCI.MatchStatusId < 0 || _matchStatusesCache == null
         ? null
         : await _matchStatusesCache.GetAsync(SportEventStatusCI.MatchStatusId, new List <CultureInfo> {
         culture
     }).ConfigureAwait(false));
 }
 /// <summary>
 /// Asynchronously gets the match status
 /// </summary>
 /// <param name="culture">The culture used to get match status id and description</param>
 /// <returns>Returns the match status id and description in selected culture</returns>
 /// <exception cref="NotImplementedException"></exception>
 public async Task <ILocalizedNamedValue> GetMatchStatusAsync(CultureInfo culture)
 {
     return(_matchStatusesCache == null
         ? null
         : await _matchStatusesCache.GetAsync(_matchStatusCode, new List <CultureInfo> {
         culture
     }).ConfigureAwait(false));
 }
Example #3
0
 /// <summary>
 /// Get match status as an asynchronous operation
 /// </summary>
 public async Task <ILocalizedNamedValue> GetMatchStatusAsync()
 {
     if (_cacheItem.MatchStatusId < 0)
     {
         //TODO: write ERRROR
         return(null);
     }
     return(await _matchStatusCache.GetAsync(_cacheItem.MatchStatusId).ConfigureAwait(false));
 }