Files
server/src/Api/Platform/Installations/Models/InstallationResponseModel.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
520 B
C#
Raw Normal View History

using Bit.Core.Models.Api;
using Bit.Core.Platform.Installations;
2017-08-15 16:31:19 -04: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")
{
Id = installation.Id;
2017-08-19 08:51:05 -04:00
Key = withKey ? installation.Key : null;
Enabled = installation.Enabled;
}
2022-08-29 16:06:55 -04: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
}