Пример #1
0
 public Messages(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 John = new DatingProfile("John", "Smith", 44, "Male");

            John.WriteBio("Video Game fanatic who still lives with mom and dad.");

            DatingProfile Jane = new DatingProfile("Jane", "Doe", 43, "Female");

            Jane.WriteBio("Enjoys making candles with my own earwax and has over 10,000 stuffed animals.");

            John.SendMessage("Hello Jane", "Want to go to the forest and make chalk outlines of our bodies?", Jane);
            Jane.ReadMessage();
        }
Пример #3
0
        static void Main(string[] args)
        {
            DatingProfile Ranveer = new DatingProfile("Ranveer", "Singh", 40, "Male");

            Ranveer.WriteBio("Strong outdoors type");

            DatingProfile Deepika = new DatingProfile("Deepika", "Padukoune", 35, "Female");

            Deepika.WriteBio("new to this site");

            Ranveer.SendMessage("Hello Deepika", "Want to get some coffee?", Deepika);
            Deepika.ReadMessage();
        }
Пример #4
0
        static void Main(string[] args)
        {
            DatingProfile kyle = new DatingProfile("Kyle", "Reese", 30, "Male");

            kyle.WriteBio("Soldier from the future");

            DatingProfile sarah = new DatingProfile("Sarah", "Connor", 25, "Female");

            sarah.WriteBio("It's supposed to be the 80s right? What's a dating app?");

            kyle.SendMessage("Hello Sarah", "Come with me if you want to live!", sarah);
            sarah.ReadMessage();
        }
Пример #5
0
        static void Main(string[] args)
        {
            DatingProfile bob = new DatingProfile("Bob", "Jones", 50, "Male");

            bob.WriteBio("Strong outdoors type");

            DatingProfile susie = new DatingProfile("Susie", "Sue", 45, "Female");

            susie.WriteBio("new to this site");

            bob.SendMessage("Hello Susie", "Want to get some coffee?", susie);
            susie.ReadMessage();
        }
Пример #6
0
        static void Main(string[] args)
        {
            DatingProfile Robert = new DatingProfile("Robert", "Williams", 50, "Male");

            Robert.WriteBio("Strong outdoors type");

            DatingProfile Barbara = new DatingProfile("Barbara", "Jones", 45, "Female");

            Barbara.WriteBio("new to this site");

            Robert.SendMessage("Hello Barbara", "Want to get some coffee?", Barbara);
            Barbara.ReadMessage();
        }
Пример #7
0
        public void SendMessage(string messageTitle, string messageData, DatingProfile sentTo)
        {
            Messages message = new Messages(this, messageTitle, messageData);

            sentTo.AddToInbox(message);
        }