Пример #1
0
 public Message(DatingProfile sender, string MessageTitle, string MessageData)
 {
     this.sender       = sender;
     this.MessageTitle = MessageTitle;
     this.MessageData  = MessageData;
     isRead            = false;
 }
Пример #2
0
        static void Main(string[] args)
        {
            DatingProfile debra = new DatingProfile("Debra", "Zebra", 32, "Female");

            debra.WriteBio("Just a young lady looking for Mr. Right. Love long walks on the beach and movies (particularly a good romantic comedy). If that sounds like your thing, HMU! ;)");

            DatingProfile don = new DatingProfile("Don", "John", 36, "Male");

            don.WriteBio("hey");

            debra.SendMessage("Wow", "You sound so mysterious. Maybe u wanna get some coffee sometime? xD", don);
            don.ReadMessage();
        }
Пример #3
0
        public void SendMessage(string MessageTitle, string MessageData, DatingProfile sender)
        {
            Message message = new Message(this, MessageTitle, MessageData);

            sender.SendtoInbox(message);
        }