From: David ‘Bombe’ Roden Date: Mon, 8 Nov 2010 19:42:37 +0000 (+0100) Subject: Add member “new” to Sone accessor. X-Git-Tag: 0.2.1~21 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=7f4d1f9fc01b2c0dfa8ce9788125f0ad21a2b7cd;p=Sone.git Add member “new” to Sone accessor. --- 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); }