コード例 #1
0
ファイル: Comment.cs プロジェクト: Club-Albatros/Balises
 public CommentBase GetCommentBase()
 {
     CommentBase res = new CommentBase();
      res.CommentId = CommentId;
      res.UserId = UserId;
      res.FlightId = FlightId;
      res.Datime = Datime;
      res.Remarks = Remarks;
     return res;
 }
コード例 #2
0
        public CommentBase GetCommentBase()
        {
            CommentBase res = new CommentBase();

            res.CommentId = CommentId;
            res.UserId    = UserId;
            res.FlightId  = FlightId;
            res.Datime    = Datime;
            res.Remarks   = Remarks;
            return(res);
        }
コード例 #3
0
ファイル: CommentBase.cs プロジェクト: Club-Albatros/Balises
        public void ReadCommentBase(CommentBase comment)
        {
            if (comment.CommentId > -1)
            {
                CommentId = comment.CommentId;
            }

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

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

            Datime = comment.Datime;

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