1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-29 00:32:18 -05:00
bitwarden/src/Api/Models/Response/KeysResponseModel.cs
2022-08-29 16:06:55 -04:00

25 lines
544 B
C#

using Bit.Core.Entities;
using Bit.Core.Models.Api;
namespace Bit.Api.Models.Response;
public class KeysResponseModel : ResponseModel
{
public KeysResponseModel(User user)
: base("keys")
{
if (user == null)
{
throw new ArgumentNullException(nameof(user));
}
Key = user.Key;
PublicKey = user.PublicKey;
PrivateKey = user.PrivateKey;
}
public string Key { get; set; }
public string PublicKey { get; set; }
public string PrivateKey { get; set; }
}