2025-01-06 12:10:53 -05:00
|
|
|
|
using Bit.Core.Models.Api;
|
|
|
|
|
|
using Bit.Core.Platform.Installations;
|
2017-08-15 16:31:19 -04:00
|
|
|
|
|
2025-01-06 12:10:53 -05:00
|
|
|
|
namespace Bit.Api.Platform.Installations;
|
2022-08-29 16:06:55 -04:00
|
|
|
|
|
2017-08-15 16:31:19 -04:00
|
|
|
|
public class InstallationResponseModel : ResponseModel
|
|
|
|
|
|
{
|
|
|
|
|
|
public InstallationResponseModel(Installation installation, bool withKey)
|
|
|
|
|
|
: base("installation")
|
|
|
|
|
|
{
|
2023-07-14 17:18:26 +02:00
|
|
|
|
Id = installation.Id;
|
2017-08-19 08:51:05 -04:00
|
|
|
|
Key = withKey ? installation.Key : null;
|
|
|
|
|
|
Enabled = installation.Enabled;
|
2022-08-29 15:53:48 -04:00
|
|
|
|
}
|
2022-08-29 16:06:55 -04:00
|
|
|
|
|
2023-07-14 17:18:26 +02:00
|
|
|
|
public Guid Id { get; set; }
|
2017-08-15 16:31:19 -04:00
|
|
|
|
public string Key { get; set; }
|
2017-08-19 08:51:05 -04:00
|
|
|
|
public bool Enabled { get; set; }
|
2017-08-15 16:31:19 -04:00
|
|
|
|
}
|