mirror of
https://github.com/bitwarden/server.git
synced 2026-02-08 01:43:15 +08:00
21 lines
497 B
C#
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; }
|
|
}
|
|
}
|