1using System.Threading.Tasks;
11 internal class AddMetaDataInt32 :
ICommand
13 private readonly VirtualNode node;
19 public AddMetaDataInt32(VirtualNode Node)
27 [Page(2,
"Meta-data")]
28 [Header(4,
"Tag Name:")]
29 [ToolTip(5,
"The name of the meta-data tag to add.")]
31 public string TagName {
get;
set; }
36 [Page(2,
"Meta-data")]
37 [Header(6,
"Tag Value:")]
38 [ToolTip(7,
"The value of the meta-data tag to add.")]
40 public int TagValue {
get;
set; }
45 public string CommandID => nameof(AddMetaDataInt32);
55 public string SortCategory =>
"MetaData";
60 public string SortKey =>
"AddInt32";
69 return this.node.CanEditAsync(Caller);
78 return new AddMetaDataInt32(this.node);
84 public Task ExecuteCommandAsync()
86 return this.node.SetMetaData(this.TagName, this.TagValue);
113 return Task.FromResult(
string.Empty);
132 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.