diff --git a/xyz.veronie.bgg.ui/src/xyz/veronie/bgg/result/IdString.java b/xyz.veronie.bgg.ui/src/xyz/veronie/bgg/result/IdString.java new file mode 100644 index 0000000..c252896 --- /dev/null +++ b/xyz.veronie.bgg.ui/src/xyz/veronie/bgg/result/IdString.java @@ -0,0 +1,12 @@ +package xyz.veronie.bgg.result; + +/// Holds an id and its string representation, for example for Family, Extension, Mechanic, or Category. +public class IdString { + int id; + String string; + + public IdString(int id, String string) { + this.id = id; + this.string = string; + } +} diff --git a/xyz.veronie.bgg.ui/src/xyz/veronie/bgg/result/Recommendation.java b/xyz.veronie.bgg.ui/src/xyz/veronie/bgg/result/Recommendation.java index da9a6c8..2fdbede 100644 --- a/xyz.veronie.bgg.ui/src/xyz/veronie/bgg/result/Recommendation.java +++ b/xyz.veronie.bgg.ui/src/xyz/veronie/bgg/result/Recommendation.java @@ -1,8 +1,9 @@ package xyz.veronie.bgg.result; public enum Recommendation { - N, // not supported - P, // not recommended - R, // recommended - B // best + N, // (N)onplayable + P, // (P)layable, not recommended + R, // (R)ecommended + B // (B)est with... } + diff --git a/xyz.veronie.bgg.ui/src/xyz/veronie/bgg/result/Thing.java b/xyz.veronie.bgg.ui/src/xyz/veronie/bgg/result/Thing.java index 6131b31..bf0423c 100644 --- a/xyz.veronie.bgg.ui/src/xyz/veronie/bgg/result/Thing.java +++ b/xyz.veronie.bgg.ui/src/xyz/veronie/bgg/result/Thing.java @@ -164,6 +164,7 @@ public class Thing { * * @return */ + // TODO: rewrite: order isn't important, column names are public String toResultTxtLine() { StringBuilder str = new StringBuilder(); final String emptyItem = "\"\","; diff --git a/xyz.veronie.bgg.ui/src/xyz/veronie/bgg/result/ThingDetails.java b/xyz.veronie.bgg.ui/src/xyz/veronie/bgg/result/ThingDetails.java index ae3a9fd..c4dcd82 100644 --- a/xyz.veronie.bgg.ui/src/xyz/veronie/bgg/result/ThingDetails.java +++ b/xyz.veronie.bgg.ui/src/xyz/veronie/bgg/result/ThingDetails.java @@ -23,12 +23,12 @@ public class ThingDetails { Float stddev; Float median; String image; - Integer category; - Integer mechanic; + IdString[] category; + IdString[] mechanic; String comment; Recommendation[] players; // 1 to 20 String description; - Integer expansion; + IdString[] expansion; Integer basegameId; Integer reimplementId; String reimplement_name; @@ -44,6 +44,6 @@ public class ThingDetails { Float price; Integer expansions; String domain; - String family; + IdString[] family; Float age_poll; }