Esempio n. 1
0
        /// <summary>
        /// Creates the XML product.
        /// </summary>
        /// <param name="filename">The filename.</param>
        /// <param name="timeStamp">The time stamp.</param>
        /// <param name="content">The content.</param>
        /// <param name="receivedAt">The received at.</param>
        /// <param name="seq">The seq.</param>
        /// <param name="source">The source.</param>
        /// <returns>XmlProduct.</returns>
        public static XmlProduct Create(string filename, DateTimeOffset timeStamp, TextContent content, DateTimeOffset receivedAt, int seq, string source)
        {
            var product = new XmlProduct
            {
                Filename = filename,
                TimeStamp = timeStamp,
                ReceivedAt = receivedAt,
                Content = content,
                Source = source
            };

            return product;
        }
Esempio n. 2
0
        /// <summary>
        /// Creates the bulletin product.
        /// </summary>
        /// <param name="filename">The filename.</param>
        /// <param name="timeStamp">The time stamp.</param>
        /// <param name="content">The content.</param>
        /// <param name="receivedAt">The received at.</param>
        /// <param name="seq">The seq.</param>
        /// <param name="source">The source.</param>
        /// <returns>TextProduct.</returns>
        public static TextProductSegment Create(string filename, DateTimeOffset timeStamp, TextContent content, DateTimeOffset receivedAt, int seq, string source)
        {
            var product = new TextProductSegment
            {
                Filename = filename,
                TimeStamp = timeStamp,
                Content = content,
                ReceivedAt = receivedAt,
                SequenceNumber = seq,
                Source = source
            };

            return product;
        }