mirror of
https://github.com/status-im/status-lib.git
synced 2025-01-11 21:14:30 +00:00
13 lines
379 B
Nim
13 lines
379 B
Nim
import json
|
|
import base
|
|
import signal_type
|
|
|
|
type ChroniclesLogsSignal* = ref object of Signal
|
|
content*: string
|
|
|
|
proc fromEvent*(T: type ChroniclesLogsSignal, jsonSignal: JsonNode): ChroniclesLogsSignal =
|
|
result = ChroniclesLogsSignal()
|
|
result.signalType = SignalType.ChroniclesLogs
|
|
if jsonSignal["event"].kind != JNull:
|
|
result.content = jsonSignal["event"].getStr()
|