[init:] added AddressRepair.cs
This commit is contained in:
24
AddressRepair.cs
Normal file
24
AddressRepair.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Logof_Client;
|
||||
|
||||
public class AddressRepair(ProgressWindow progressWindow)
|
||||
{
|
||||
private readonly ProgressWindow _progress = progressWindow;
|
||||
|
||||
public KasAddressList Perform(KasAddressList all_addresses,
|
||||
List<(int, List<AddressCheck.ErrorTypes>)> failed_addresses)
|
||||
{
|
||||
foreach (var k in all_addresses.KasPersons)
|
||||
foreach (var p in failed_addresses)
|
||||
{
|
||||
if (k.refsid != p.Item1) continue;
|
||||
|
||||
if (p.Item2.Contains(AddressCheck.ErrorTypes.DoubledRefsid))
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user