mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-01-02 13:33:07 +00:00
23 lines
573 B
C#
23 lines
573 B
C#
using CodexClient;
|
|
|
|
namespace CodexPlugin.OverwatchSupport.LineConverters
|
|
{
|
|
public class DialSuccessfulLineConverter : ILineConverter
|
|
{
|
|
public string Interest => "Dial successful";
|
|
|
|
public void Process(CodexLogLine line, Action<Action<OverwatchCodexEvent>> addEvent)
|
|
{
|
|
var peerId = line.Attributes["peerId"];
|
|
|
|
addEvent(e =>
|
|
{
|
|
e.DialSuccessful = new PeerDialSuccessfulEvent
|
|
{
|
|
TargetPeerId = peerId
|
|
};
|
|
});
|
|
}
|
|
}
|
|
}
|