public NotificationSummary(IProvideNotifications notifications)
{
if (notifications != null)
{
foreach (INotification n in notifications.Notifications)
{
if (n.Type == "Email") EmailCount++;
if (n.Type == "Text") TextCount++;
if (n.Type == "MissedCall") MissedCallCount++;
if (n.Type == "Voice") VoiceCount++;
}
}
}