From 7f4d1f9fc01b2c0dfa8ce9788125f0ad21a2b7cd Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 8 Nov 2010 20:42:37 +0100 Subject: [PATCH] =?utf8?q?Add=20member=20=E2=80=9Cnew=E2=80=9D=20to=20Sone?= =?utf8?q?=20accessor.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/net/pterodactylus/sone/template/SoneAccessor.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java b/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java index a21794d..edc0eec 100644 --- a/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java +++ b/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java @@ -85,6 +85,8 @@ public class SoneAccessor extends ReflectionAccessor { return core.getSoneStatus(sone) == SoneStatus.inserting; } else if (member.equals("downloading")) { return core.getSoneStatus(sone) == SoneStatus.downloading; + } else if (member.equals("new")) { + return core.isNewSone(sone); } return super.get(dataProvider, object, member); } -- 2.7.4