mirror of
https://github.com/bitwarden/server.git
synced 2025-04-18 03:28:15 -05:00

* chore: set up a `CODEOWNERS` space for platform * chore: move sql objects for `Installation` to platform's domain * chore: move `Installation` and `PushRelay` code to platform's domain
20 lines
520 B
C#
20 lines
520 B
C#
using Bit.Core.Models.Api;
|
|
using Bit.Core.Platform.Installations;
|
|
|
|
namespace Bit.Api.Platform.Installations;
|
|
|
|
public class InstallationResponseModel : ResponseModel
|
|
{
|
|
public InstallationResponseModel(Installation installation, bool withKey)
|
|
: base("installation")
|
|
{
|
|
Id = installation.Id;
|
|
Key = withKey ? installation.Key : null;
|
|
Enabled = installation.Enabled;
|
|
}
|
|
|
|
public Guid Id { get; set; }
|
|
public string Key { get; set; }
|
|
public bool Enabled { get; set; }
|
|
}
|