Scarlet
Scarlet copied to clipboard
Use multiple adapters?
From the server I receive multiple kinds of data, some are JSON, other are binaries that contain JSON inside a protobuf message.
So, I would like to use both the Moshi and Protobuf adapters. Is this possible, or there's another way to handle this situations?
Is this done passing multiple factories?
messageAdapterFactories = listOf(ProtobufMessageAdapter.Factory(), MoshiMessageAdapter.Factory())
How does Scarlet decides which to use when?