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); }
/// <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); }
/// <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); }