mirror of
https://github.com/bitwarden/server
synced 2026-02-15 07:55:18 +00:00
26 lines
600 B
C#
26 lines
600 B
C#
using System;
|
|
using Bit.Core.Models.Table;
|
|
|
|
namespace Bit.Core.Models.Api
|
|
{
|
|
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; }
|
|
}
|
|
}
|