Ejemplo n.º 1
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="node"></param>
 /// <returns></returns>
 public static EntryComment GetEntryComment(XmlNode node)
 {
     XmlUtils.UseNode(node);
     EntryComment e = new EntryComment();
     e.Id = XmlUtils.Int("cid");
     e.Date = CommonUtils.FromUnixTime(XmlUtils.Int("date"));
     e.Text = XmlUtils.String("text");
     e.UserId = XmlUtils.Int("uid");
     e.ReplyToComment = XmlUtils.Int("reply_to_сid");
     e.ReplyToUser = XmlUtils.Int("reply_to_uid");
     return e;
 }
Ejemplo n.º 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="node"></param>
        /// <returns></returns>
        public static EntryComment GetEntryComment(XmlNode node)
        {
            XmlUtils.UseNode(node);
            EntryComment e = new EntryComment();

            e.Id             = XmlUtils.Int("cid");
            e.Date           = CommonUtils.FromUnixTime(XmlUtils.Int("date"));
            e.Text           = XmlUtils.String("text");
            e.UserId         = XmlUtils.Int("uid");
            e.ReplyToComment = XmlUtils.Int("reply_to_сid");
            e.ReplyToUser    = XmlUtils.Int("reply_to_uid");
            return(e);
        }