using System.Collections.Generic;
namespace UTNotifications
{
///
/// Represents a received notification
///
public class ReceivedNotification
{
public ReceivedNotification(string title, string text, int id, IDictionary userData, string notificationProfile, int badgeNumber)
{
this.title = title;
this.text = text;
this.id = id;
this.userData = userData;
this.notificationProfile = notificationProfile;
this.badgeNumber = badgeNumber;
}
///
/// The title.
///
public readonly string title;
///
/// The text.
///
public readonly string text;
///
/// The id.
///
public readonly int id;
///
/// The user data provided by you in Manager.PostLocalNotification, Manager.ScheduleNotification or Manager.ScheduleNotificationRepeating
/// or by your server in a push notification payload.
///
///
/// When the ReceivedNotification is an argument of Manager.OnNotificationClicked event handler, stores the user data of the clicked notification button
/// (if specified). When the notification itself is clicked (even when there are custom buttons), stores the user data of the notification itself.
///
public readonly IDictionary userData;
///
/// The name of the notification profile (sound, icon and other notification attributes).
///
public readonly string notificationProfile;
///
/// The badge number.
///
public readonly int badgeNumber;
}
}