-
Notifications
You must be signed in to change notification settings - Fork 0
Using your own data types
Petros Pissias edited this page Jul 19, 2018
·
1 revision
You can use your own data types as long as they fulfill 2 simple requirements:
- provide method
byte[] toByteArray()
that serializes the object to an array of bytes - provide a static method
parseFrom(byte[] data)
that returns an instance of the object from an array of bytes
If the classes you specify in the JSON service description file fulfill these requirements, they can be used.