Files
server/src/Core/Models/Api/Response/ApiKeyResponseModel.cs
2019-03-04 09:52:43 -05:00

21 lines
497 B
C#

using System;
using Bit.Core.Models.Table;
namespace Bit.Core.Models.Api
{
public class ApiKeyResponseModel : ResponseModel
{
public ApiKeyResponseModel(Organization organization, string obj = "apiKey")
: base(obj)
{
if(organization == null)
{
throw new ArgumentNullException(nameof(organization));
}
ApiKey = organization.ApiKey;
}
public string ApiKey { get; set; }
}
}