// NOTE: Flaw in design resulting in need for specification of user-defined message type in service /// <summary> /// Retrieves a list of message listings' details that make up an inbox. Each message listing contains these details in this order: /// Message ID, read status of the message, sent date, first name, and last name /// </summary> /// <param name="dao">Object used to access messages from a database</param> /// <param name="receiverID">ID of the user who is retrieving messages from their inbox</param> /// <param name="isGeneral">Boolean value indicating whether a message is a general message or not</param> /// <returns>A list of message listing details</returns> public IList <IList <string> > GetInbox(MessageDAO dao, int receiverID, bool isGeneral) { return(dao.ReadInboxFromDB(receiverID, isGeneral)); }