public Messages(DatingProfile sender, string messageTitle, string messageData) { this.sender = sender; this.messageTitle = messageTitle; this.messageData = messageData; isRead = false; }
static void Main(string[] args) { DatingProfile andy = new DatingProfile("Andy", "Stitzer", 40, "Male"); andy.WriteBio("Love collecting action figures."); DatingProfile trish = new DatingProfile("Trish", "Piedmont", 40, "Female"); trish.WriteBio("Hot Milf"); andy.SendMessage("Hello Trish", "Im a virgin.", trish); trish.ReadMessage(); }
public void SendMessage(string messageTitle, string messageData, DatingProfile sentTo) { messages message = new messages(this, messageTitle, messageData); sentTo.AddToInbox(message); }