Exemple #1
0
        public Post(String subject, String content, User publisher, Post parent)
        {
            String checkStat = Post.checkPost(subject, content, publisher);
            if (checkStat.Length > 0) Console.Out.WriteLine(checkStat);

            this.subject = subject;
            this.content = content;
            this.publisher = publisher;
            this.parent = parent;
        }
Exemple #2
0
 public void postResponse(String subject, String content, Post parent, User u)
 {
     String checkStat = Post.checkPost(subject, content, u);
     if (checkStat.Length > 0) Console.Out.WriteLine(checkStat);
     posts.Add(new Post(subject, content, u, parent));
 }