(String method, Function<JsonInput, X> mapper)
| 27 | private final Function<JsonInput, X> mapper; |
| 28 | |
| 29 | public Event(String method, Function<JsonInput, X> mapper) { |
| 30 | this.method = Require.nonNull("Event method", method); |
| 31 | this.mapper = Require.nonNull("Result mapper", mapper); |
| 32 | } |
| 33 | |
| 34 | public String getMethod() { |
| 35 | return method; |