21 lines
549 B
C#
21 lines
549 B
C#
|
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 DialSuccessfulEvent
|
|||
|
{
|
|||
|
TargetPeerId = peerId
|
|||
|
};
|
|||
|
});
|
|||
|
}
|
|||
|
}
|
|||
|
}
|