[chore:] added basic name-generation-function for address-sets
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace Logof_Client;
|
namespace Logof_Client;
|
||||||
@@ -34,6 +35,14 @@ public class KasAddressList //Address-Set
|
|||||||
this.owner_id = owner_id;
|
this.owner_id = owner_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static string GenerateName(string basic_type, bool? is_rest = false)
|
||||||
|
{
|
||||||
|
if(is_rest == true)
|
||||||
|
return basic_type + " - " + DateTime.Now.ToShortDateString() + " - Rest";
|
||||||
|
else
|
||||||
|
return basic_type + " - " + DateTime.Now.ToShortDateString();
|
||||||
|
}
|
||||||
|
|
||||||
public void UpdateErrorList(List<(int, List<AddressCheck.ErrorTypes>, List<AddressCheck.WarningTypes>)> errorList)
|
public void UpdateErrorList(List<(int, List<AddressCheck.ErrorTypes>, List<AddressCheck.WarningTypes>)> errorList)
|
||||||
{
|
{
|
||||||
errors.Clear();
|
errors.Clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user