Serialization logic will be lifted out of MessageClient implementations, and into the single purpose MessageHandler. This enables a much more flexible implementation (singleton MessageClient with any number of handlers), improves type safety (no unchecked casts) and provides better support for messages with no data.
As an extra bonus, this enables serialization logic to be shared across mobile and wear.
Serialization logic will be lifted out of MessageClient implementations, and into the single purpose MessageHandler. This enables a much more flexible implementation (singleton MessageClient with any number of handlers), improves type safety (no unchecked casts) and provides better support for messages with no data. As an extra bonus, this enables serialization logic to be shared across mobile and wear.