From 882752b7c78bf7efbeee7e462f99c7f3de70b50f Mon Sep 17 00:00:00 2001 From: gotty Date: Wed, 18 Sep 2019 23:06:50 +0000 Subject: [PATCH] [LIB-8] Add Event Rounds and Seedings functional git-svn-id: https://svn.hedgecode.org/lib/snooker-score-api/trunk@171 fb0bcced-7025-49ed-a12f-f98bce993226 --- pom.xml | 17 +- src/main/java/org/hedgecode/snooker/api/Round.java | 64 +++++++ .../java/org/hedgecode/snooker/api/Rounds.java | 34 ++++ .../java/org/hedgecode/snooker/api/Seeding.java | 36 ++++ .../java/org/hedgecode/snooker/api/Seedings.java | 34 ++++ .../org/hedgecode/snooker/api/SnookerScoreAPI.java | 4 + .../hedgecode/snooker/cache/CacheSnookerScore.java | 20 +++ .../snooker/cache/assign/RoundAssigner.java | 56 +++++++ .../snooker/cache/assign/RoundsAssigner.java | 44 +++++ .../snooker/cache/assign/SeedingAssigner.java | 56 +++++++ .../snooker/cache/assign/SeedingsAssigner.java | 44 +++++ .../snooker/compare/RoundComparators.java | 64 +++++++ .../snooker/compare/SeedingComparators.java | 75 +++++++++ .../org/hedgecode/snooker/json/JsonEvents.java | 1 - .../java/org/hedgecode/snooker/json/JsonRound.java | 184 +++++++++++++++++++++ .../org/hedgecode/snooker/json/JsonRounds.java | 94 +++++++++++ .../org/hedgecode/snooker/json/JsonSeeding.java | 87 ++++++++++ .../org/hedgecode/snooker/json/JsonSeedings.java | 89 ++++++++++ .../hedgecode/snooker/json/JsonSnookerScore.java | 48 ++++++ .../snooker/request/EventRoundsRequester.java | 57 +++++++ .../snooker/request/EventSeedingRequester.java | 57 +++++++ .../org/hedgecode/snooker/request/RequestType.java | 4 +- .../org/hedgecode/snooker/json/JsonRoundTest.json | 1 + .../org/hedgecode/snooker/json/JsonRoundTest.ser | Bin 0 -> 490 bytes .../org/hedgecode/snooker/json/JsonRoundsTest.json | 1 + .../org/hedgecode/snooker/json/JsonRoundsTest.ser | Bin 0 -> 1891 bytes .../hedgecode/snooker/json/JsonSeedingTest.json | 1 + .../org/hedgecode/snooker/json/JsonSeedingTest.ser | Bin 0 -> 248 bytes .../hedgecode/snooker/json/JsonSeedingsTest.json | 1 + .../hedgecode/snooker/json/JsonSeedingsTest.ser | Bin 0 -> 3813 bytes 30 files changed, 1163 insertions(+), 10 deletions(-) create mode 100644 src/main/java/org/hedgecode/snooker/api/Round.java create mode 100644 src/main/java/org/hedgecode/snooker/api/Rounds.java create mode 100644 src/main/java/org/hedgecode/snooker/api/Seeding.java create mode 100644 src/main/java/org/hedgecode/snooker/api/Seedings.java create mode 100644 src/main/java/org/hedgecode/snooker/cache/assign/RoundAssigner.java create mode 100644 src/main/java/org/hedgecode/snooker/cache/assign/RoundsAssigner.java create mode 100644 src/main/java/org/hedgecode/snooker/cache/assign/SeedingAssigner.java create mode 100644 src/main/java/org/hedgecode/snooker/cache/assign/SeedingsAssigner.java create mode 100644 src/main/java/org/hedgecode/snooker/compare/RoundComparators.java create mode 100644 src/main/java/org/hedgecode/snooker/compare/SeedingComparators.java create mode 100644 src/main/java/org/hedgecode/snooker/json/JsonRound.java create mode 100644 src/main/java/org/hedgecode/snooker/json/JsonRounds.java create mode 100644 src/main/java/org/hedgecode/snooker/json/JsonSeeding.java create mode 100644 src/main/java/org/hedgecode/snooker/json/JsonSeedings.java create mode 100644 src/main/java/org/hedgecode/snooker/request/EventRoundsRequester.java create mode 100644 src/main/java/org/hedgecode/snooker/request/EventSeedingRequester.java create mode 100644 src/test/resources/org/hedgecode/snooker/json/JsonRoundTest.json create mode 100644 src/test/resources/org/hedgecode/snooker/json/JsonRoundTest.ser create mode 100644 src/test/resources/org/hedgecode/snooker/json/JsonRoundsTest.json create mode 100644 src/test/resources/org/hedgecode/snooker/json/JsonRoundsTest.ser create mode 100644 src/test/resources/org/hedgecode/snooker/json/JsonSeedingTest.json create mode 100644 src/test/resources/org/hedgecode/snooker/json/JsonSeedingTest.ser create mode 100644 src/test/resources/org/hedgecode/snooker/json/JsonSeedingsTest.json create mode 100644 src/test/resources/org/hedgecode/snooker/json/JsonSeedingsTest.ser diff --git a/pom.xml b/pom.xml index f171311..95424bd 100644 --- a/pom.xml +++ b/pom.xml @@ -1,7 +1,7 @@