Import from internal git

This commit is contained in:
2025-10-11 13:08:09 +02:00
commit 97aaa715dc
175 changed files with 7014 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
using Core.Actions;
using Core.Dto.Settings;
using Core.Settings;
namespace Generator.Mappers;
public static class CredentialsMapper
{
public static CredentialsConfig Map(this CredentialsConfigDto dto)
=> new()
{
Email = dto.Email,
Token = dto.Token,
Username = dto.Username,
Password = dto.Password,
AlwaysAuth = dto.AlwaysAuth
};
public static PackageDeletion ToPackageDeletion(this CredentialsConfigDto dto)
{
return new PackageDeletion
{
Username = dto.Username,
Password = dto.Password
};
}
}