From ba27c4faf0e54d9bf741b19d97a551e462bd1060 Mon Sep 17 00:00:00 2001 From: "Niels Erik G. Nielsen" Date: Tue, 30 Apr 2013 13:25:10 -0400 Subject: [PATCH] Makes all stats ints (except progress) --- .../indexdata/mkjsf/pazpar2/data/StatResponse.java | 24 ++++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/main/java/com/indexdata/mkjsf/pazpar2/data/StatResponse.java b/src/main/java/com/indexdata/mkjsf/pazpar2/data/StatResponse.java index 9f808b1..941c0e9 100644 --- a/src/main/java/com/indexdata/mkjsf/pazpar2/data/StatResponse.java +++ b/src/main/java/com/indexdata/mkjsf/pazpar2/data/StatResponse.java @@ -22,28 +22,28 @@ public class StatResponse extends Pazpar2ResponseData { return getIntValue("records"); } - public String getUnconnected() { - return getOneElementValue("unconnected"); + public int getUnconnected() { + return getIntValue("unconnected"); } - public String getConnecting() { - return getOneElementValue("connecting"); + public int getConnecting() { + return getIntValue("connecting"); } - public String getWorking() { - return getOneElementValue("working"); + public int getWorking() { + return getIntValue("working"); } - public String getIdle() { - return getOneElementValue("idle"); + public int getIdle() { + return getIntValue("idle"); } - public String getFailed() { - return getOneElementValue("failed"); + public int getFailed() { + return getIntValue("failed"); } - public String getError() { - return getOneElementValue("error"); + public int getError() { + return getIntValue("error"); } public String getProgress() { -- 1.7.10.4