Skip to content

Commit

Permalink
Add adapters to gson.
Browse files Browse the repository at this point in the history
  • Loading branch information
madcake committed Jul 28, 2019
1 parent 286ac81 commit 2b95934
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,13 @@ class WCInteractor (
private val TAG = "WCInteractor"

private val gson = builder
.registerTypeAdapter(cancelOrderDeserializer)
.registerTypeAdapter(tradeOrderDeserializer)
.registerTypeAdapter(transferOrderDeserializer)
.create()
.registerTypeAdapter(cancelOrderSerializer)
.registerTypeAdapter(cancelOrderDeserializer)
.registerTypeAdapter(tradeOrderSerializer)
.registerTypeAdapter(tradeOrderDeserializer)
.registerTypeAdapter(transferOrderSerializer)
.registerTypeAdapter(transferOrderDeserializer)
.create()

private var socket: WebSocket? = null
private val clientId = UUID.randomUUID().toString()
Expand Down

0 comments on commit 2b95934

Please sign in to comment.