mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 08:02:49 -05:00
get installation by id
This commit is contained in:
@ -5,14 +5,16 @@ namespace Bit.Core.Models.Api
|
||||
{
|
||||
public class InstallationResponseModel : ResponseModel
|
||||
{
|
||||
public InstallationResponseModel(Installation installation)
|
||||
public InstallationResponseModel(Installation installation, bool withKey)
|
||||
: base("installation")
|
||||
{
|
||||
Id = installation.Id.ToString();
|
||||
Key = installation.Key;
|
||||
Key = withKey ? installation.Key : null;
|
||||
Enabled = installation.Enabled;
|
||||
}
|
||||
|
||||
public string Id { get; set; }
|
||||
public string Key { get; set; }
|
||||
public bool Enabled { get; set; }
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user