1using System.Threading.Tasks;
12 internal class AddMetaDataDuration :
ICommand
14 private readonly VirtualNode node;
20 public AddMetaDataDuration(VirtualNode Node)
28 [Page(2,
"Meta-data")]
29 [Header(4,
"Tag Name:")]
30 [ToolTip(5,
"The name of the meta-data tag to add.")]
32 public string TagName {
get;
set; }
37 [Page(2,
"Meta-data")]
38 [Header(6,
"Tag Value:")]
39 [ToolTip(7,
"The value of the meta-data tag to add.")]
41 public Duration TagValue {
get;
set; }
46 public string CommandID => nameof(AddMetaDataDuration);
56 public string SortCategory =>
"MetaData";
61 public string SortKey =>
"AddDuration";
70 return this.node.CanEditAsync(Caller);
79 return new AddMetaDataDuration(this.node);
85 public Task ExecuteCommandAsync()
87 return this.node.SetMetaData(this.TagName, this.TagValue);
114 return Task.FromResult(
string.Empty);
133 return Task.CompletedTask;
Contains information about a language.
Task< string > GetStringAsync(Type Type, int Id, string Default)
Gets the string value of a string ID. If no such string exists, a string is created with the default ...
Class handling the reception of data from a query.
Tokens available in request.
Represents a duration value, as defined by the xsd:duration data type: http://www....