2024-08-01 07:09:30 +00:00
|
|
|
|
namespace CodexPlugin.OverwatchSupport.LineConverters
|
|
|
|
|
{
|
|
|
|
|
public class PeerDroppedLineConverter : ILineConverter
|
|
|
|
|
{
|
2024-08-01 09:19:05 +00:00
|
|
|
|
public string Interest => "Dropping peer";
|
2024-08-01 07:09:30 +00:00
|
|
|
|
|
|
|
|
|
public void Process(CodexLogLine line, Action<Action<OverwatchCodexEvent>> addEvent)
|
|
|
|
|
{
|
2024-08-01 09:19:05 +00:00
|
|
|
|
var peerId = line.Attributes["peer"];
|
2024-08-01 07:09:30 +00:00
|
|
|
|
|
|
|
|
|
addEvent(e =>
|
|
|
|
|
{
|
|
|
|
|
e.PeerDropped = new PeerDroppedEvent
|
|
|
|
|
{
|
|
|
|
|
DroppedPeerId = peerId
|
|
|
|
|
};
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|