示例#1
0
        public DateTime?GetRelevanceAsDate()
        {
            DateTime?relevance = null;

            try
            {
                relevance = HUtil.Timestamps2Datetime(this["relevance"].ToObject <long>());
            }
            catch (Exception e)
            {
                Debug.WriteLine("{0} : Can not fetch the relevance attribute", e.ToString());
            }
            return(relevance);
        }
示例#2
0
        /// <summary>
        /// Mandatory. The date and time at which the message has been published. NULL if undefined
        /// </summary>
        /// <returns></returns>
        public DateTime?GetPublishedAsDate()
        {
            DateTime?published = null;

            try
            {
                published = HUtil.Timestamps2Datetime(this["published"].ToObject <long>());
            }
            catch (Exception e)
            {
                Debug.WriteLine("{0} : Can not fetch the published attribute", e.ToString());
            }
            return(published);
        }
示例#3
0
        /// <summary>
        ///
        /// </summary>
        /// <returns>sent. Null if undefined.</returns>
        public DateTime?GetSentAsDate()
        {
            DateTime?sent = null;

            try
            {
                sent = HUtil.Timestamps2Datetime(this["sent"].ToObject <long>());
            }
            catch (Exception e)
            {
                Debug.WriteLine("{0} : Can not fetch the sent attribute", e.ToString());
            }
            return(sent);
        }