using System;
using KellermanSoftware.ContactsModule.Models;

namespace KellermanSoftware.ContactsModule.ViewModels
{
    public class ContactChangedEventArgs : EventArgs
    {
        private readonly Contact _contact;

        public ContactChangedEventArgs(Contact contact)
        {
            _contact = contact;
        }

        public Contact Contact
        {
            get { return _contact; }
        }
    }

    public interface IContactDetailsViewModel
    {
        event EventHandler<ContactChangedEventArgs> ContactChanged;
    }
}
