cs-codex-dist-tests/ProjectPlugins/CodexPlugin/OverwatchSupport/LineConverters/DialSuccessfulLineConverter.cs

21 lines
553 B
C#
Raw Normal View History

2024-08-01 06:29:12 +00:00
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
2024-08-01 06:29:12 +00:00
{
TargetPeerId = peerId
};
});
}
}
}