Exemplo n.º 1
0
 /// <summary>
 /// Asynchronously get the list of available team <see cref="ReferenceIdCI"/>
 /// </summary>
 /// <returns>A <see cref="Task{T}"/> representing an async operation</returns>
 public async Task <IDictionary <URN, ReferenceIdCI> > GetCompetitorsReferencesAsync()
 {
     if (!LoadedFixtures.Any())
     {
         await FetchMissingFixtures(new[] { DefaultCulture }).ConfigureAwait(false);
     }
     return(_competitorsReferences);
 }
Exemplo n.º 2
0
        /// <summary>
        /// Asynchronously gets a <see cref="BookingStatus"/> enum member providing booking status for the associated entity or a null reference if booking status is not known
        /// </summary>
        /// <returns>Asynchronously returns the <see cref="BookingStatus"/> if available</returns>
        public async Task <BookingStatus?> GetBookingStatusAsync()
        {
            if (LoadedFixtures.Any() || Id.TypeGroup == ResourceTypeGroup.STAGE || _bookingStatus != null)
            {
                return(_bookingStatus);
            }
            await FetchMissingFixtures(new[] { DefaultCulture }).ConfigureAwait(false);

            return(_bookingStatus);
        }