Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
LocalizableDescription.cs
1using System.Threading.Tasks;
3
5{
9 public abstract class LocalizableDescription
10 {
11 private HumanReadableText[] descriptions = null;
12
17 {
18 get => this.descriptions;
19 set => this.descriptions = value;
20 }
21
28 public Task<string> ToMarkdown(string Language, Contract Contract)
29 {
30 return this.ToMarkdown(Language, Contract, MarkdownType.ForRendering);
31 }
32
40 public Task<string> ToMarkdown(string Language, Contract Contract, MarkdownType Type)
41 {
42 return Contract.ToMarkdown(this.descriptions, Language, Type);
43 }
44
51 public Task<string> ToHTML(string Language, Contract Contract)
52 {
53 return Contract.ToHTML(this.descriptions, Language);
54 }
55
62 public Task<string> ToPlainText(string Language, Contract Contract)
63 {
64 return Contract.ToPlainText(this.descriptions, Language);
65 }
66 }
67}
Contains the definition of a contract
Definition: Contract.cs:22
Task< string > ToPlainText(string Language)
Creates a human-readable Plain Trext document for the contract.
Definition: Contract.cs:1973
Task< string > ToMarkdown(string Language)
Creates a human-readable Markdown document for the contract.
Definition: Contract.cs:1942
Task< string > ToHTML(string Language)
Creates a human-readable HTML document for the contract.
Definition: Contract.cs:1963
Abstract base class for contractual parameters
Task< string > ToPlainText(string Language, Contract Contract)
Creates a human-readable Plain Trext document for the contract.
HumanReadableText[] Descriptions
Discriptions of the object, in different languages.
Task< string > ToMarkdown(string Language, Contract Contract, MarkdownType Type)
Creates a human-readable Markdown document for the contract.
Task< string > ToHTML(string Language, Contract Contract)
Creates a human-readable HTML document for the contract.
Task< string > ToMarkdown(string Language, Contract Contract)
Creates a human-readable Markdown document for the contract.