mirror of
https://github.com/bitwarden/server.git
synced 2026-02-15 21:33:16 +08:00
Turn on file scoped namespaces (#2225)
This commit is contained in:
@@ -1,20 +1,19 @@
|
||||
using Bit.Core.Entities;
|
||||
using Bit.Core.Models.Api;
|
||||
|
||||
namespace Bit.Api.Models.Response
|
||||
{
|
||||
public class InstallationResponseModel : ResponseModel
|
||||
{
|
||||
public InstallationResponseModel(Installation installation, bool withKey)
|
||||
: base("installation")
|
||||
{
|
||||
Id = installation.Id.ToString();
|
||||
Key = withKey ? installation.Key : null;
|
||||
Enabled = installation.Enabled;
|
||||
}
|
||||
namespace Bit.Api.Models.Response;
|
||||
|
||||
public string Id { get; set; }
|
||||
public string Key { get; set; }
|
||||
public bool Enabled { get; set; }
|
||||
public class InstallationResponseModel : ResponseModel
|
||||
{
|
||||
public InstallationResponseModel(Installation installation, bool withKey)
|
||||
: base("installation")
|
||||
{
|
||||
Id = installation.Id.ToString();
|
||||
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