20 _personService = personService;
44 public int NumberOfValidStarts => _personService.GetAllPersonStarts().Count(s => s.IsActive && s.IsCompetitionObjAssigned);
50 foreach (
string placeholder
in Placeholders.Placeholders_AnalyticsStartsCountersNumberStarts) { textPlaceholder.Add(placeholder,
NumberOfStarts.ToString()); }
51 foreach (
string placeholder
in Placeholders.Placeholders_AnalyticsStartsCountersNumberValidStarts) { textPlaceholder.Add(placeholder,
NumberOfValidStarts.ToString()); }
52 foreach (
string placeholder
in Placeholders.Placeholders_AnalyticsStartsCountersNumberInactiveStarts) { textPlaceholder.Add(placeholder,
NumberOfInactiveStarts.ToString()); }
53 foreach (
string placeholder
in Placeholders.Placeholders_AnalyticsStartsCountersNumberStartsWithMissingCompetition) { textPlaceholder.Add(placeholder,
NumberOfStartsWithMissingCompetition.ToString()); }
54 return textPlaceholder;
60 Placeholders.PLACEHOLDER_KEY_ANALYTICS_STARTS_COUNTERS_NUMBER_STARTS,
61 Placeholders.PLACEHOLDER_KEY_ANALYTICS_STARTS_COUNTERS_NUMBER_VALID_STARTS,
62 Placeholders.PLACEHOLDER_KEY_ANALYTICS_STARTS_COUNTERS_NUMBER_INACTIVE_STARTS,
63 Placeholders.PLACEHOLDER_KEY_ANALYTICS_STARTS_COUNTERS_NUMBER_STARTS_WITH_MISSING_COMPETITION
DocXPlaceholderHelper.TextPlaceholders CollectDocumentPlaceholderContents()
Collect the values for all document placeholders that are supported by this IAnalyticsModule....
AnalyticsModuleStartsCounters(IPersonService personService)
Constructor for the AnalyticsModuleStartsCounters
List< string > SupportedDocumentPlaceholderKeys
List of all document placeholder keys that are supported by this analytics module....
int NumberOfValidStarts
Number of active starts with a competition assigned (valid starts)
bool AnalyticsAvailable
Flag indicating if the analytics module has data.
int NumberOfStarts
Total number of starts.
int NumberOfInactiveStarts
Number of inactive starts.
int NumberOfStartsWithMissingCompetition
Number of active starts with missing competitions.
Class to hold text placeholders and their values.
Interface for an analytics module.
Interface for a service used to get and store a list of Person objects.