Add member “new” to Sone accessor.
[Sone.git] / src / main / java / net / pterodactylus / sone / template / SoneAccessor.java
index a21794d..edc0eec 100644 (file)
@@ -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);
        }