/// <summary> /// Save the status received from the Sports API /// </summary> /// <param name="sapiDTO">The <see cref="SportEventStatusDTO"/> received from the Sports API</param> internal void SetSapiStatus(SportEventStatusDTO sapiDTO) { if (sapiDTO != null) { SapiStatusDTO = sapiDTO; } }
/// <summary> /// Save the status received from the feed /// </summary> /// <param name="feedDTO">The <see cref="SportEventStatusDTO"/> received from the feed</param> internal void SetFeedStatus(SportEventStatusDTO feedDTO) { if (feedDTO != null) { FeedStatusDTO = feedDTO; } }
/// <summary> /// Save the status received from the Sports API /// </summary> /// <param name="sapiDTO">The <see cref="SportEventStatusDTO"/> received from the Sports API</param> internal void SetSapiStatus(SportEventStatusDTO sapiDTO) { if (sapiDTO != null) { SapiStatusDTO = sapiDTO; UpdatePeriodStatistics(); } }
/// <summary> /// Save the status received from the feed /// </summary> /// <param name="feedDTO">The <see cref="SportEventStatusDTO"/> received from the feed</param> internal void SetFeedStatus(SportEventStatusDTO feedDTO) { if (feedDTO != null) { FeedStatusDTO = feedDTO; UpdatePeriodStatistics(); } }
/// <summary> /// Initializes a new instance of the <see cref="SportEventStatusCI"/> class /// </summary> /// <param name="feedStatusDTO">The <see cref="SportEventStatusDTO"/> received from the feed</param> /// <param name="sapiStatusDTO">The <see cref="SportEventStatusDTO"/> received from the Sports API</param> public SportEventStatusCI(SportEventStatusDTO feedStatusDTO, SportEventStatusDTO sapiStatusDTO) { if (feedStatusDTO == null && sapiStatusDTO == null) { throw new ArgumentNullException(nameof(feedStatusDTO)); } FeedStatusDTO = feedStatusDTO; SapiStatusDTO = sapiStatusDTO; }