Esempio n. 1
0
 public Messages(DatingProfile sender, string messageTitle, string messageData)
 {
     this.sender       = sender;
     this.messageTitle = messageTitle;
     this.messageData  = messageData;
     isRead            = false;
 }
Esempio n. 2
0
        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();
        }
Esempio n. 3
0
        public void SendMessage(string messageTitle, string messageData, DatingProfile sentTo)
        {
            messages message = new messages(this, messageTitle, messageData);

            sentTo.AddToInbox(message);
        }