namespace ZB.MOM.WW.MxGateway.Server.Dashboard;

public sealed record DashboardApiKeyManagementResult(
    bool Succeeded,
    string Message,
    string? ApiKey)
{
    public static DashboardApiKeyManagementResult Success(string message, string? apiKey = null)
    {
        return new DashboardApiKeyManagementResult(true, message, apiKey);
    }

    public static DashboardApiKeyManagementResult Fail(string message)
    {
        return new DashboardApiKeyManagementResult(false, message, null);
    }
}
