Skip to content

Refactoring Communicant #68

@novakboskov

Description

@novakboskov

Communicant has a function for each type/class it can transfer. Instead, each class should have a toBytes and fromBytes methods and Communicant should only be calling those methods.

My current idea is to support this by creating an abstract class Serializable that exposes toBytes and fromBytes. Each class that can be sent over Communicant would inherit from Serializable.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions