Пример #1
0
 /// <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;
     }
 }
Пример #2
0
 /// <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;
     }
 }
Пример #3
0
        /// <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();
            }
        }
Пример #4
0
        /// <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();
            }
        }
Пример #5
0
        /// <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;
        }