mirror of
https://github.com/bitwarden/mobile
synced 2025-12-05 23:53:33 +00:00
* Model & service support for policies * Formatting * Changes to match existing service and model patterns
27 lines
709 B
C#
27 lines
709 B
C#
using System.Collections.Generic;
|
|
using Bit.Core.Enums;
|
|
using Bit.Core.Models.Response;
|
|
|
|
namespace Bit.Core.Models.Data
|
|
{
|
|
public class PolicyData : Data
|
|
{
|
|
public PolicyData() { }
|
|
|
|
public PolicyData(PolicyResponse response)
|
|
{
|
|
Id = response.Id;
|
|
OrganizationId = response.OrganizationId;
|
|
Type = response.Type;
|
|
Data = response.Data;
|
|
Enabled = response.Enabled;
|
|
}
|
|
|
|
public string Id { get; set; }
|
|
public string OrganizationId { get; set; }
|
|
public PolicyType Type { get; set; }
|
|
public Dictionary<string, object> Data { get; set; }
|
|
public bool Enabled { get; set; }
|
|
}
|
|
}
|