An Eclipse RCP reimplementation of bgg1tool by Nand. See http://www.nand.it/nandeck/ for the original tool.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.4KB

  1. package xyz.veronie.bgg.result;
  2. import java.util.HashMap;
  3. import xyz.veronie.bgg.types.FilterFlagState;
  4. import xyz.veronie.bgg.types.ResultAction;
  5. import xyz.veronie.bgg.types.SourceFilter;
  6. import xyz.veronie.bgg.types.Subtype;
  7. import xyz.veronie.bgg.types.UserFlag;
  8. /// DTO / container for configuration of result download. Also defines startup settings for controls.
  9. /// This container is handled by the ResultConfigManager.
  10. public class ResultConfig {
  11. // TODO: integrate different filters (or extend?)
  12. public SourceFilter source = SourceFilter.BGG_USER;
  13. public ResultAction action = ResultAction.ADD;
  14. public HashMap<Subtype,Boolean> subTypes = new HashMap<Subtype,Boolean>() {
  15. private static final long serialVersionUID = -8718858283141976457L;
  16. {
  17. for (Subtype st : Subtype.values()) {
  18. put(st, false);
  19. }
  20. put(Subtype.BOARDGAME, true);
  21. }};
  22. // bgg user filter settings
  23. public String user = "";
  24. public HashMap<UserFlag, FilterFlagState> userFlags = new HashMap<UserFlag, FilterFlagState>() {
  25. private static final long serialVersionUID = 3086538711393696853L;
  26. {
  27. for (UserFlag uf : UserFlag.values()) {
  28. put(uf, FilterFlagState.IGNORE);
  29. }
  30. put(UserFlag.OWN, FilterFlagState.IS);
  31. put(UserFlag.PREVIOUSLY_OWNED, FilterFlagState.ISNOT);
  32. }};
  33. public Integer geeklistId = null;
  34. public Integer familyId = null;
  35. // TODO: add others
  36. }