public NotificationUserAction(string id, string title, NotificationActionType type = NotificationActionType.Default, string icon = "") { Id = id; Title = title; Type = type; Icon = icon; }
public NotificationActionType GetNotificationActionType() { NotificationActionType returnType = null; if (Type.Equals(NotificationType.ActivityMessage) || Type.Equals(NotificationType.ActivityReply) || Type.Equals(NotificationType.ActivityMention) || Type.Equals(NotificationType.ActivityLike) || Type.Equals(NotificationType.ActivityReplyLike) || Type.Equals(NotificationType.ActivityReplySubscribed)) { returnType = NotificationActionType.Activity; } else if (Type.Equals(NotificationType.Following)) { returnType = NotificationActionType.User; } else if (Type.Equals(NotificationType.ThreadCommentMention) || Type.Equals(NotificationType.ThreadSubscribed) || Type.Equals(NotificationType.ThreadCommentReply) || Type.Equals(NotificationType.ThreadLike) || Type.Equals(NotificationType.ThreadCommentLike)) { returnType = NotificationActionType.Thread; } else if (Type.EqualsAny(NotificationType.Airing, NotificationType.RelatedMediaAddition)) { returnType = NotificationActionType.Media; } return(returnType); }
public NotificationUserReplyAction(string id, string title, NotificationActionType type = NotificationActionType.Default, string icon = "", string placeholder = "") : base(id, title, type, icon) { Placeholder = placeholder; }
public NotificationAction(string identifier, string title, NotificationActionType actionType = NotificationActionType.None) { this.Identifier = identifier; this.Title = title; this.ActionType = actionType; }