* Send value * @this {!Sender} * @param {!object} value Value to send * @returns {!number} Sent bytes
(value)
| 6534 | * @returns {!number} Sent bytes |
| 6535 | */ |
| 6536 | send (value) { |
| 6537 | if ((value instanceof OrderMessage) && (value.fbeType === this.OrderMessageModel.fbeType)) { |
| 6538 | return this.send_OrderMessage(value) |
| 6539 | } |
| 6540 | if ((value instanceof BalanceMessage) && (value.fbeType === this.BalanceMessageModel.fbeType)) { |
| 6541 | return this.send_BalanceMessage(value) |
| 6542 | } |
| 6543 | if ((value instanceof AccountMessage) && (value.fbeType === this.AccountMessageModel.fbeType)) { |
| 6544 | return this.send_AccountMessage(value) |
| 6545 | } |
| 6546 | let result = 0 |
| 6547 | result = this._protoSender.send(value) |
| 6548 | if (result > 0) { |
| 6549 | return result |
| 6550 | } |
| 6551 | return 0 |
| 6552 | } |
| 6553 | |
| 6554 | /** |
| 6555 | * Send OrderMessage value |
no test coverage detected