diff options
Diffstat (limited to 'service/src')
| -rw-r--r-- | service/src/main/java/market/guess/service/LocalGuessMarketContext.java | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/service/src/main/java/market/guess/service/LocalGuessMarketContext.java b/service/src/main/java/market/guess/service/LocalGuessMarketContext.java new file mode 100644 index 0000000..cabb6ac --- /dev/null +++ b/service/src/main/java/market/guess/service/LocalGuessMarketContext.java | |||
| @@ -0,0 +1,62 @@ | |||
| 1 | package market.guess.service; | ||
| 2 | |||
| 3 | import java.nio.file.Path; | ||
| 4 | import java.util.List; | ||
| 5 | import market.guess.api.AccountDTO; | ||
| 6 | import market.guess.api.EventDetailDTO; | ||
| 7 | import market.guess.api.EventSummaryDTO; | ||
| 8 | import market.guess.api.GuessMarketContext; | ||
| 9 | import market.guess.api.LoadResultDTO; | ||
| 10 | import market.guess.api.PurchaseReceiptDTO; | ||
| 11 | import market.guess.exception.GuessMarketException; | ||
| 12 | |||
| 13 | public final class LocalGuessMarketContext implements GuessMarketContext { | ||
| 14 | |||
| 15 | @Override | ||
| 16 | public LoadResultDTO loadEvents(Path path) { | ||
| 17 | throw new UnsupportedOperationException("Unimplemented method 'loadEvents'"); | ||
| 18 | } | ||
| 19 | |||
| 20 | @Override | ||
| 21 | public List<EventSummaryDTO> listEvents() { | ||
| 22 | throw new UnsupportedOperationException("Unimplemented method 'listEvents'"); | ||
| 23 | } | ||
| 24 | |||
| 25 | @Override | ||
| 26 | public boolean isLoaded() { | ||
| 27 | throw new UnsupportedOperationException("Unimplemented method 'isLoaded'"); | ||
| 28 | } | ||
| 29 | |||
| 30 | @Override | ||
| 31 | public EventDetailDTO getEvent(String eventKey) { | ||
| 32 | throw new UnsupportedOperationException("Unimplemented method 'getEvent'"); | ||
| 33 | } | ||
| 34 | |||
| 35 | @Override | ||
| 36 | public PurchaseReceiptDTO buyShares( | ||
| 37 | String userName, String eventKey, String optionKey, long quantity) | ||
| 38 | throws GuessMarketException { | ||
| 39 | throw new UnsupportedOperationException("Unimplemented method 'buyShares'"); | ||
| 40 | } | ||
| 41 | |||
| 42 | @Override | ||
| 43 | public EventDetailDTO closeEvent(String userName, String eventKey, String winningOptionKey) | ||
| 44 | throws GuessMarketException { | ||
| 45 | throw new UnsupportedOperationException("Unimplemented method 'closeEvent'"); | ||
| 46 | } | ||
| 47 | |||
| 48 | @Override | ||
| 49 | public AccountDTO account(String userName) { | ||
| 50 | throw new UnsupportedOperationException("Unimplemented method 'account'"); | ||
| 51 | } | ||
| 52 | |||
| 53 | @Override | ||
| 54 | public void saveState(Path path) throws GuessMarketException { | ||
| 55 | throw new UnsupportedOperationException("Unimplemented method 'saveState'"); | ||
| 56 | } | ||
| 57 | |||
| 58 | @Override | ||
| 59 | public LoadResultDTO restoreState(Path path) { | ||
| 60 | throw new UnsupportedOperationException("Unimplemented method 'restoreState'"); | ||
| 61 | } | ||
| 62 | } | ||