package com.namelessmc.NamelessAPI;

public class Notification {
	
	private String message;
	private String url;
	private NotificationType type;
	
	public Notification(String message, String url, NotificationType type) {
		this.message = message;
		this.url = url;
		this.type = type;
	}
	
	public String getMessage() {
		return message;
	}
	
	public String getUrl() {
		return url;
	}
	
	public NotificationType getType() {
		return type;
	}
	
	public static enum NotificationType {

		TAG,
		MESSAGE,
		LIKE,
		PROFILE_COMMENT,
		COMMENT_REPLY,
		THREAD_REPLY,
		FOLLOW;
		
		public static NotificationType fromString(String string) {
			return NotificationType.valueOf(string.replace('-', '_').toUpperCase());
		}
		
	}

}

@@ -58,17 +58,16 @@
 ation %7B%0A
-%09
 %0A%09privat
@@ -64,24 +64,30 @@
 %7B%0A%0A%09private 
+final 
 String messa
@@ -99,16 +99,22 @@
 private 
+final 
 String u
@@ -126,16 +126,22 @@
 private 
+final 
 Notifica
@@ -155,17 +155,16 @@
 e type;%0A
-%09
 %0A%09public
@@ -177,16 +177,22 @@
 ication(
+final 
 String m
@@ -198,16 +198,22 @@
 message,
+ final
  String 
@@ -216,16 +216,22 @@
 ing url,
+ final
  Notific
@@ -307,34 +307,33 @@
 type = type;%0A%09%7D%0A
-%09
 %0A
+
 %09public String g
@@ -355,16 +355,21 @@
 %09return 
+this.
 message;
@@ -368,26 +368,25 @@
 message;%0A%09%7D%0A
-%09
 %0A
+
 %09public Stri
@@ -412,16 +412,21 @@
 urn 
+this.
 url;%0A%09%7D%0A
 %09%0A%09p
@@ -417,26 +417,25 @@
 his.url;%0A%09%7D%0A
-%09
 %0A
+
 %09public Noti
@@ -468,16 +468,21 @@
 %09return 
+this.
 type;%0A%09%7D
@@ -482,18 +482,17 @@
 ype;%0A%09%7D%0A
-%09
 %0A
+
 %09public 
@@ -609,20 +609,30 @@
 %09%09FOLLOW
-;
+,%0A
 %0A%09%09
+UNKNOWN;%0A
 %0A%09%09publi
@@ -668,16 +668,22 @@
 mString(
+final 
 String s
@@ -691,16 +691,26 @@
 ring) %7B%0A
+%09%09%09try %7B%0A%09
 %09%09%09retur
@@ -781,14 +781,102 @@
 ));%0A
+%09%09%09%7D catch (final IllegalArgumentException e) %7B%0A%09%09%09%09return NotificationType.UNKNOWN;%0A%09%09%09%7D%0A
 %09%09%7D%0A
-%09%09
 %0A%09%7D%0A

Add fallback "UNKNOWN" notification type