/// <summary> /// Retrieves the contents of a message. The contents consist of: previous message ID, sender ID, read status, sent date, and message body or invitation response (in this order) /// The receiver ID and message ID of a message are omitted from the query because those are already known. Read status is also omitted because it will always be true in this case. /// </summary> /// <param name="receiverID">ID of the user who is retrieving messages from their inbox</param> /// <param name="messageID">ID of a message</param> /// <param name="isGeneral">Boolean value indicating whether a message is a general message or not</param> /// <returns>Contents of a message</returns> public IList <string> ReadMessage(MessageDAO dao, int receiverID, int messageID, bool isGeneral) { try { List <string> messageContent = (List <string>)dao.ReadMessageFromDB(receiverID, messageID, isGeneral); return(messageContent); } catch (Exception e) { throw e; } }