Pārlūkot izejas kodu

Towards result output for nandeck...

pull/16/head
veronie pirms 4 gadiem
vecāks
revīzija
94ecc66ae3
4 mainītis faili ar 22 papildinājumiem un 8 dzēšanām
  1. +12
    -0
      xyz.veronie.bgg.ui/src/xyz/veronie/bgg/result/IdString.java
  2. +5
    -4
      xyz.veronie.bgg.ui/src/xyz/veronie/bgg/result/Recommendation.java
  3. +1
    -0
      xyz.veronie.bgg.ui/src/xyz/veronie/bgg/result/Thing.java
  4. +4
    -4
      xyz.veronie.bgg.ui/src/xyz/veronie/bgg/result/ThingDetails.java

+ 12
- 0
xyz.veronie.bgg.ui/src/xyz/veronie/bgg/result/IdString.java Parādīt failu

@@ -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;
}
}

+ 5
- 4
xyz.veronie.bgg.ui/src/xyz/veronie/bgg/result/Recommendation.java Parādīt failu

@@ -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...
}

+ 1
- 0
xyz.veronie.bgg.ui/src/xyz/veronie/bgg/result/Thing.java Parādīt failu

@@ -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 = "\"\",";


+ 4
- 4
xyz.veronie.bgg.ui/src/xyz/veronie/bgg/result/ThingDetails.java Parādīt failu

@@ -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;
}

Notiek ielāde…
Atcelt
Saglabāt