forked from PeterWaher/IoTGateway
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSchemaReference.cs
More file actions
46 lines (41 loc) · 1.25 KB
/
SchemaReference.cs
File metadata and controls
46 lines (41 loc) · 1.25 KB
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
46
using System;
using System.Collections.Generic;
using System.Text;
using Waher.Security;
namespace Waher.Networking.XMPP.Contracts
{
/// <summary>
/// References a XML Schema used for validating machine-readable contents in smart contracts.
/// </summary>
public class SchemaReference
{
private readonly string ns = string.Empty;
private readonly SchemaDigest[] digests = null;
/// <summary>
/// References a XML Schema used for validating machine-readable contents in smart contracts.
/// </summary>
public SchemaReference()
{
this.ns = string.Empty;
this.digests = null;
}
/// <summary>
/// References a XML Schema used for validating machine-readable contents in smart contracts.
/// </summary>
/// <param name="Namespace">Schema namespace</param>
/// <param name="Digests">Digests of available versions.</param>
public SchemaReference(string Namespace, SchemaDigest[] Digests)
{
this.ns = Namespace;
this.digests = Digests;
}
/// <summary>
/// Namespace of schema
/// </summary>
public string Namespace => this.ns;
/// <summary>
/// Hash of schema
/// </summary>
public SchemaDigest[] Digests => this.digests;
}
}