public async Task SaveMessage(OutputMessage ouputMessage) { await _table.InsertRowAsync(new BigQueryInsertRow(insertId : ouputMessage.id) { { "botIdentifier", ouputMessage.botIdentifier }, { "type", ouputMessage.type }, { "from", ouputMessage.from }, { "to", ouputMessage.to }, { "metadata", ouputMessage.metadata }, { "content", ouputMessage.content }, { "target", ouputMessage.target }, { "uri", ouputMessage.uri }, { "previewUri", ouputMessage.previewUri }, { "title", ouputMessage.title }, { "text", ouputMessage.text }, { "storageDate", ouputMessage.storageDate }, { "direction", ouputMessage.direction } } ); _logger.LogInformation("Inserted to Message. id: {id}", ouputMessage.id); }
public async Task SaveEvent(OutputEvent outputEvent) { await _table.InsertRowAsync(new BigQueryInsertRow(insertId : outputEvent.id) { { "botIdentifier", outputEvent.botIdentifier }, { "ownerIdentity", outputEvent.ownerIdentity }, { "identity", outputEvent.identity }, { "messageId", outputEvent.messageId }, { "storageDate", outputEvent.storageDate }, { "category", outputEvent.category }, { "action", outputEvent.action }, { "extras", outputEvent.extras }, { "externalId", outputEvent.externalId }, { "group", outputEvent.group }, { "source", outputEvent.source }, { "value", outputEvent.value }, { "label", outputEvent.label } } ); _logger.LogInformation("Inserted to Events. id: {id}", outputEvent.id); }