From 9d9ede6b0344ef1edf8af5bd32e59797d216b6c4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 18 Oct 2010 16:02:20 +0200 Subject: [PATCH] =?utf8?q?Add=20=E2=80=9CisBlocked=E2=80=9D=20property.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/net/pterodactylus/sone/template/SoneAccessor.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java b/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java index b45e140..dc4c0ab 100644 --- a/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java +++ b/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java @@ -56,6 +56,9 @@ public class SoneAccessor extends ReflectionAccessor { } else if (member.equals("isCurrent")) { Sone currentSone = (Sone) dataProvider.getData("currentSone"); return currentSone.equals(sone); + } else if (member.equals("isBlocked")) { + Sone currentSone = (Sone) dataProvider.getData("currentSone"); + return currentSone.isSoneBlocked(sone.getId()); } return super.get(dataProvider, object, member); } -- 2.7.4