1using System.Threading.Tasks;
31 [
Page(2,
"Script", 100)]
32 [Header(29,
"Default value:")]
33 [ToolTip(30,
"Default value presented to user.")]
39 [
Page(2,
"Script", 100)]
40 [Header(68,
"Minimum Count:")]
41 [ToolTip(69,
"The smallest amount of items accepted.")]
47 [
Page(2,
"Script", 100)]
48 [Header(70,
"Maximum Count:")]
49 [ToolTip(71,
"The largest amount of items accepted.")]
73 if (this.
MinCount.HasValue ||
this.MaxCount.HasValue)
119 if (s is
null || s.Length == 0)
130 foreach (
string Jid
in s)
136 if (this.
MinCount.HasValue && s.Length <
this.MinCount.Value)
138 else if (this.
MaxCount.HasValue && s.Length >
this.MaxCount.Value)
Static class managing editable parameters in objects. Editable parameters are defined by using the at...
Class managing a page in a data form layout.
Manages an XMPP client connection. Implements XMPP, as defined in https://tools.ietf....
static readonly Regex BareJidRegEx
Regular expression for Bare JIDs
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 ...
Represents a multiple JIDs-valued script parameter.
ushort? MinCount
Minimum amount of JIDs expected.
ScriptJidsParameterNode()
Represents a multiple JIDs-valued script parameter.
override async Task SetParameter(DataForm Parameters, Language Language, bool OnlySetChanged, Variables Values, SetEditableFormResult Result)
Sets the parameters of the object, based on contents in the data form.
string[] DefaultValue
Default parameter value.
override Task< string > GetTypeNameAsync(Language Language)
Gets the type name of the node.
ushort? MaxCount
Maximum amount of JIDs expected.
override async Task PopulateForm(DataForm Parameters, Language Language, object Value)
Populates a data form with parameters for the object.
Represents a parameter with possible options on a command.
bool RestrictToOptions
Optional minimum value allowed.
async Task< KeyValuePair< string, string >[]> GetOptions()
Gets available options, if any are defined.
string Label
Parameter label.
bool Required
If parameter is required.
string Description
Parameter description.
string ParameterName
Parameter name.
string Page
Parameter name.