AppSettings and Configuration changes,
major changes to E_Distance and minor for D_Face
This commit is contained in:
8
Shared/Models/Stateless/Methods/ILocation.cs
Normal file
8
Shared/Models/Stateless/Methods/ILocation.cs
Normal file
@ -0,0 +1,8 @@
|
||||
namespace View_by_Distance.Shared.Models.Stateless.Methods;
|
||||
|
||||
public interface ILocation
|
||||
{ // ...
|
||||
|
||||
public const int Factor = 10000;
|
||||
|
||||
}
|
@ -12,9 +12,6 @@ public interface IPersonBirthday
|
||||
string TestStatic_GetFormat() => PersonBirthday.GetFormat();
|
||||
static string GetFormat() => PersonBirthday.GetFormat();
|
||||
|
||||
string[] TestStatic_GetSegments(string personKey) => PersonBirthday.GetSegments(personKey);
|
||||
static string[] GetSegments(string personKey) => PersonBirthday.GetSegments(personKey);
|
||||
|
||||
DateTime? TestStatic_GetDateTime(string personKey) => PersonBirthday.GetDateTime(personKey);
|
||||
static DateTime? GetDateTime(string personKey) => PersonBirthday.GetDateTime(personKey);
|
||||
|
||||
|
@ -10,7 +10,6 @@ internal abstract class PersonBirthday
|
||||
// ...
|
||||
|
||||
internal static string GetFormat() => "yyyy-MM-dd_HH";
|
||||
internal static string[] GetSegments(string personKey) => personKey.Split('\t');
|
||||
internal static string GetFormatted(Models.PersonBirthday personBirthday) => personBirthday.Value.ToString(GetFormat());
|
||||
internal static string GetFileName(Models.PersonBirthday personBirthday) => $"{personBirthday.Value.ToString(GetFormat())}.json";
|
||||
internal static bool DoesBirthDateExits(Properties.IStorage storage, Models.PersonBirthday personBirthday) => File.Exists(GetFileFullName(storage, personBirthday));
|
||||
@ -21,8 +20,7 @@ internal abstract class PersonBirthday
|
||||
internal static Models.PersonBirthday? GetPersonBirthday(string personKey)
|
||||
{
|
||||
Models.PersonBirthday? result;
|
||||
string[] segments = GetSegments(personKey);
|
||||
DateTime? dateTime = GetDateTime(segments[0]);
|
||||
DateTime? dateTime = GetDateTime(personKey);
|
||||
if (dateTime is null)
|
||||
result = null;
|
||||
else
|
||||
|
Reference in New Issue
Block a user