AGENT.Contrib.Notifications.NotificationSummary.NotificationSummary C# (CSharp) Method

NotificationSummary() public method

public NotificationSummary ( IProvideNotifications notifications ) : System
notifications IProvideNotifications
return System
        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++;

                }
            }
        }
NotificationSummary