public serverMessage(messageType p1, ForumPolicy p2, string forumName)
 {
     // TODO: Complete member initialization
     _messageType  = p1;
     policy        = p2;
     stringContent = new List <string>();
     stringContent.Add(forumName);
     intContent            = null;
     time                  = DateTime.Now;
     policy                = null;
     ListOfMemberMessages  = null;
     ListOfForumModerators = null;
     Threads               = null;
     getThread             = null;
 }
 public string checkForumPolicy(string forumName, ForumPolicy policy)
 {
     lock (syncLock)
     {
         serverMessage ans = sendMessage(forumName, policy);
         if (ans._messageType.Equals(serverMessage.messageType.success))
         {
             return("true");
         }
         if (ans.stringContent.Count > 0)
         {
             return(ans.stringContent.ElementAt(0));
         }
         return("error, not successful for unknown reason");
     }
 }
        private serverMessage sendMessage(string forumName, ForumPolicy policy)
        {
            serverMessage ans = new serverMessage(serverMessage.messageType.checkForumPolicy, policy, forumName);

            return(sendMessage(ans));
        }