Esempio n. 1
0
        public void ReadCommentBase(CommentBase comment)
        {
            if (comment.CommentId > -1)
            {
                CommentId = comment.CommentId;
            }

            if (comment.UserId > -1)
            {
                UserId = comment.UserId;
            }

            if (comment.ConferenceId > -1)
            {
                ConferenceId = comment.ConferenceId;
            }

            if (comment.SessionId > -1)
            {
                SessionId = comment.SessionId;
            }

            Datime = comment.Datime;

            if (!String.IsNullOrEmpty(comment.Remarks))
            {
                Remarks = comment.Remarks;
            }

            if (comment.Visibility > -1)
            {
                Visibility = comment.Visibility;
            }
        }
Esempio n. 2
0
 public CommentBase GetCommentBase()
 {
     CommentBase res = new CommentBase();
      res.CommentId = CommentId;
      res.UserId = UserId;
      res.ConferenceId = ConferenceId;
      res.SessionId = SessionId;
      res.Datime = Datime;
      res.Remarks = Remarks;
      res.Visibility = Visibility;
     return res;
 }
Esempio n. 3
0
        public CommentBase GetCommentBase()
        {
            CommentBase res = new CommentBase();

            res.CommentId    = CommentId;
            res.UserId       = UserId;
            res.ConferenceId = ConferenceId;
            res.SessionId    = SessionId;
            res.Datime       = Datime;
            res.Remarks      = Remarks;
            res.Visibility   = Visibility;
            return(res);
        }
Esempio n. 4
0
        public void ReadCommentBase(CommentBase comment)
        {
            if (comment.CommentId > -1)
                CommentId = comment.CommentId;

            if (comment.UserId > -1)
                UserId = comment.UserId;

            if (comment.ConferenceId > -1)
                ConferenceId = comment.ConferenceId;

            if (comment.SessionId > -1)
                SessionId = comment.SessionId;

            Datime = comment.Datime;

            if (!String.IsNullOrEmpty(comment.Remarks))
                Remarks = comment.Remarks;

            if (comment.Visibility > -1)
                Visibility = comment.Visibility;

        }