alertType method
Implementation
AlertType alertType() {
if (type != null) {
switch(type) {
case 'friendship_request':
return AlertType.FriendshipRequest;
case 'friendship_pending':
return AlertType.FriendshipPending;
case 'new_fan':
return AlertType.NewFan;
case 'friendship_accepted':
return AlertType.FriendshipAccepted;
case 'new_friend':
return AlertType.NewFriend;
case 'private_plurk':
return AlertType.PrivatePlurk;
case 'plurk_liked':
return AlertType.PlurkLiked;
case 'plurk_replurked':
return AlertType.PlurkReplurked;
case 'mentioned':
return AlertType.Mentioned;
case 'my_responded':
return AlertType.MyResponded;
}
}
return AlertType.Unknown;
}