using UnityEngine;
namespace Unity.Notifications.Android
{
///
/// Wrapper for the AndroidNotification. Contains the notification's id and channel.
///
public class AndroidNotificationIntentData
{
///
/// The id of the notification.
///
public int Id { get; }
///
/// The channel id that the notification was sent to.
///
public string Channel { get; }
///
/// Returns the AndroidNotification.
///
public AndroidNotification Notification { get; }
///
/// Returns the proxy to the Android Java instance of Notification class.
///
public AndroidJavaObject NativeNotification { get; internal set; }
///
/// Create an AndroidNotificationIntentData with AndroidNotification, id, and channel id.
///
/// Notification id
/// ID of the notification channel
/// Data of the received notification
public AndroidNotificationIntentData(int id, string channelId, AndroidNotification notification)
{
Id = id;
Channel = channelId;
Notification = notification;
}
}
}