(self, value)
| 4016 | # Send methods |
| 4017 | |
| 4018 | def send(self, value): |
| 4019 | if isinstance(value, OrderMessage) and (value.fbe_type == self.ordermessage_model.fbe_type): |
| 4020 | return self.send_ordermessage(value) |
| 4021 | if isinstance(value, BalanceMessage) and (value.fbe_type == self.balancemessage_model.fbe_type): |
| 4022 | return self.send_balancemessage(value) |
| 4023 | if isinstance(value, AccountMessage) and (value.fbe_type == self.accountmessage_model.fbe_type): |
| 4024 | return self.send_accountmessage(value) |
| 4025 | result = self._proto_sender.send(value) |
| 4026 | if result > 0: |
| 4027 | return result |
| 4028 | return 0 |
| 4029 | |
| 4030 | def send_ordermessage(self, value): |
| 4031 | # Serialize the value into the FBE stream |
no test coverage detected