Пример #1
0
        public CommentDTO(int CommentId, int PostId, String CommentText, int CommentScore, DateTime CommentCreateDate, int OwnerUserId, Post post, UserInfoDTO UserInfo)

        {
            this.CommentId    = CommentId;
            this.Body         = CommentText;
            this.PostId       = PostId;
            this.Score        = CommentScore;
            this.CreationDate = CommentCreateDate;
            this.User         = OwnerUserId;
            this.post         = post;
            this.UserInfo     = UserInfo;
        }
Пример #2
0
 public PostDTO(int Id, int OwneruserId, String Body, int PostTypeId, int?ParentId, String Title, int Score, DateTime CreationDate, DateTime?ClosedDate
                , ICollection <CommentDTO> Comments, PostTypeDTO PostType, ICollection <PostTagsDTO> PostTags, UserInfoDTO UserInfo)
 {
     this.Id           = Id;
     this.OwneruserId  = OwneruserId;
     this.Body         = Body;
     this.PostTypeId   = PostTypeId;
     this.ParentId     = ParentId;
     this.Title        = Title;
     this.Score        = Score;
     this.CreationDate = CreationDate;
     this.ClosedDate   = ClosedDate;
     this.Comments     = Comments;
     this.PostType     = PostType;
     this.PostTags     = PostTags;
     this.UserInfo     = UserInfo;
 }
Пример #3
0
 public QuestionDTO(int Id, int?AcceptedAnswerId, int OwneruserId, String Body, String Title, int Score, DateTime CreationDate, DateTime?ClosedDate
                    , ICollection <CommentDTO> Comments, ICollection <Post> Asnwers, ICollection <PostTagsDTO> PostTags, UserInfoDTO UserInfo, ICollection <QuestionDTO> LinkedPosts)
 {
     this.Id               = Id;
     this.OwneruserId      = OwneruserId;
     this.AcceptedAnswerId = AcceptedAnswerId;
     this.Body             = Body;
     this.Title            = Title;
     this.Score            = Score;
     this.CreationDate     = CreationDate;
     this.ClosedDate       = ClosedDate;
     this.Comments         = Comments;
     this.Answers          = Asnwers;
     this.PostTags         = PostTags;
     this.UserInfo         = UserInfo;
     this.LinkedPosts      = LinkedPosts;
 }