forked from PeterWaher/IoTGateway
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRole.cs
More file actions
45 lines (40 loc) · 933 Bytes
/
Role.cs
File metadata and controls
45 lines (40 loc) · 933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
using System;
using System.Collections.Generic;
using System.Text;
using Waher.Networking.XMPP.Contracts.HumanReadable;
namespace Waher.Networking.XMPP.Contracts
{
/// <summary>
/// Class defining a role
/// </summary>
public class Role : LocalizableDescription
{
private string name = string.Empty;
private int minCount = 0;
private int maxCount = 0;
/// <summary>
/// Name of the role.
/// </summary>
public string Name
{
get => this.name;
set => this.name = value;
}
/// <summary>
/// Smallest amount of signatures of this role required for a legally binding contract.
/// </summary>
public int MinCount
{
get => this.minCount;
set => this.minCount = value;
}
/// <summary>
/// Largest amount of signatures of this role required for a legally binding contract.
/// </summary>
public int MaxCount
{
get => this.maxCount;
set => this.maxCount = value;
}
}
}