mirror of
https://github.com/bitwarden/server.git
synced 2026-06-01 01:55:55 -05:00
24 lines
636 B
C#
24 lines
636 B
C#
namespace Bit.Seeder.Models;
|
|
|
|
/// <summary>
|
|
/// Result of seeding a standalone user account with summary statistics for created ciphers and folders.
|
|
/// </summary>
|
|
public record UserSeedResult(
|
|
Guid UserId,
|
|
string? Email,
|
|
string? ApiKey,
|
|
string? Password,
|
|
bool Premium,
|
|
int CiphersCount,
|
|
int FoldersCount)
|
|
{
|
|
internal static UserSeedResult From(PipelineExecutionResult result) =>
|
|
new(result.UserId!.Value,
|
|
result.OwnerEmail,
|
|
result.UserApiKey,
|
|
result.Password,
|
|
result.Premium,
|
|
result.CiphersCount,
|
|
result.FoldersCount);
|
|
}
|