Esempio n. 1
0
 //2-3 Constructor
 public Messages(DatingProfile sender, string Message_Title, string Message_Data)
 {
     this.sender        = sender;
     this.Message_Title = Message_Title;
     this.Message_Data  = Message_Data;
     isRead             = false;
 }
Esempio n. 2
0
        static void Main(string[] args) //Testing the Classes!!
        {
            DatingProfile zelda = new DatingProfile("Zelda", "Hyrule", 119, "Female");

            zelda.WriteBio("Hyrule Princess that has been battling Evil for a 100 years waiting for the hero to wake up.");

            DatingProfile link = new DatingProfile("Link", "Knight", 119, "Male");

            link.WriteBio("Just woke up in a strange chamber with no memory of how I got there or who I am.");

            zelda.SendMessage("Wake Up", "Link... Wake up.... Hyrule needs you.", link);
            link.ReadMessage();
        }
Esempio n. 3
0
        public void SendMessage(string Message_Title, string Message_Data, DatingProfile toProfile)
        { //Part 3 add-on create method
            Messages message = new Messages(this, Message_Title, Message_Data);

            toProfile.AddToInbox(message);
        }