mirror of
https://github.com/bitwarden/mobile
synced 2025-12-17 16:53:26 +00:00
Beginning of policy support (#736)
* Model & service support for policies * Formatting * Changes to match existing service and model patterns
This commit is contained in:
26
src/Core/Models/Domain/Policy.cs
Normal file
26
src/Core/Models/Domain/Policy.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System.Collections.Generic;
|
||||
using Bit.Core.Enums;
|
||||
using Bit.Core.Models.Data;
|
||||
|
||||
namespace Bit.Core.Models.Domain
|
||||
{
|
||||
public class Policy : Domain
|
||||
{
|
||||
public Policy() { }
|
||||
|
||||
public Policy(PolicyData obj)
|
||||
{
|
||||
Id = obj.Id;
|
||||
OrganizationId = obj.OrganizationId;
|
||||
Type = obj.Type;
|
||||
Data = obj.Data;
|
||||
Enabled = obj.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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user