From: David ‘Bombe’ Roden Date: Tue, 19 Oct 2010 06:41:56 +0000 (+0200) Subject: Add “modified” property. X-Git-Tag: 0.1-RC1~203 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=916b45a47c8dce3c6837c12d4facb6eb572bb987;p=Sone.git Add “modified” property. --- diff --git a/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java b/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java index ee7d16d..d0a287f 100644 --- a/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java +++ b/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java @@ -59,6 +59,8 @@ public class SoneAccessor extends ReflectionAccessor { } else if (member.equals("blocked")) { Sone currentSone = (Sone) dataProvider.getData("currentSone"); return currentSone.isSoneBlocked(sone.getId()); + } else if (member.equals("modified")) { + return sone.getModificationCounter() > 0; } return super.get(dataProvider, object, member); }