(chunk_data)
| 394 | } |
| 395 | |
| 396 | static getConversationId(chunk_data) { |
| 397 | if (chunk_data.hasOwnProperty('conversation_id')) |
| 398 | return chunk_data.conversation_id; |
| 399 | if (chunk_data.hasOwnProperty('v') && chunk_data.v.hasOwnProperty('conversation_id')) |
| 400 | return chunk_data.v.conversation_id; |
| 401 | return null; |
| 402 | } |
| 403 | } |
| 404 | |
| 405 | class ChatResponse { |