()
| 278 | } |
| 279 | |
| 280 | toObject(): Device.AsObject { |
| 281 | let f: any; |
| 282 | return {name: this.getName(), |
| 283 | owner: this.getOwner(), |
| 284 | publicKey: this.getPublicKey(), |
| 285 | address: this.getAddress(), |
| 286 | createdAt: (f = this.getCreatedAt()) && f.toObject(), |
| 287 | connected: this.getConnected(), |
| 288 | lastHandshakeTime: (f = this.getLastHandshakeTime()) && f.toObject(), |
| 289 | receiveBytes: this.getReceiveBytes(), |
| 290 | transmitBytes: this.getTransmitBytes(), |
| 291 | endpoint: this.getEndpoint(), |
| 292 | ownerName: this.getOwnerName(), |
| 293 | ownerEmail: this.getOwnerEmail(), |
| 294 | ownerProvider: this.getOwnerProvider(), |
| 295 | |
| 296 | }; |
| 297 | } |
| 298 | |
| 299 | static serializeBinaryToWriter(message: Device, writer: jspb.BinaryWriter): void { |
| 300 | const field1 = message.getName(); |
no test coverage detected