ResultReceiver[A: Any val]¶
Generic receiver that converts a JSON response into a model type via a JsonConverter and fulfills the associated Promise with the result or a RequestError.
Constructors¶
create¶
new tag create(
creds: Credentials val,
p: Promise[(A | RequestError val)] tag,
c: JsonConverter[A] val)
: ResultReceiver[A] tag^
Parameters¶
- creds: Credentials val
- p: Promise[(A | RequestError val)] tag
- c: JsonConverter[A] val
Returns¶
- ResultReceiver[A] tag^
Public Behaviours¶
success¶
Parameters¶
- json: JsonNav val