3using System.Threading.Tasks;
26 private string url =
string.Empty;
35 return Task.FromResult(
49 return Task.FromResult(
false);
67 [ToolTip(4,
"Link to RSS Feed.")]
68 [DefaultValueStringEmpty]
73 set => this.url = value;
84 LinkedList<Parameter> Result = await base.GetDisplayableParametersAsync(
Language, Caller) as LinkedList<Parameter>;
104 if (!Uri.TryCreate(
this.url, UriKind.Absolute, out Uri
Link))
121 if (
Content.Decoded is XmlDocument Xml)
130 DateTime Now = DateTime.UtcNow;
131 List<Field> Fields =
new List<Field>();
135 DateTime Publication = Now;
137 if (Fields.Count > 0)
143 if (!
string.IsNullOrEmpty(Channel.
Title))
146 if (!(Channel.
Link is
null))
152 if (!
string.IsNullOrEmpty(Channel.
Language))
155 if (!
string.IsNullOrEmpty(Channel.
Copyright))
161 if (!
string.IsNullOrEmpty(Channel.
WebMaster))
170 if (!
string.IsNullOrEmpty(Channel.
Generator))
184 string s =
"Channel, Category " + (++i).
ToString();
188 if (!(Category.
Domain is
null))
193 if (!(Channel.
Image is
null))
198 if (!
string.IsNullOrEmpty(Channel.
Image.
Title))
214 if (!(Channel.
Items is
null))
223 if (!
string.IsNullOrEmpty(Item.
Title))
226 if (!(Item.
Link is
null))
232 if (!
string.IsNullOrEmpty(Item.
Author))
238 if (!(Item.
Guid is
null))
244 if (!(Item.
Source is
null))
271 string s =
"Category " + (++i).
ToString();
275 if (!(Category.
Domain is
null))
283 if (!(Doc.Warnings is
null) && Doc.Warnings.Length > 0)
285 List<ThingError> Errors =
new List<ThingError>();
Contains information about a response to a content request.
Static class managing encoding and decoding of internet content.
static Task< ContentResponse > GetAsync(Uri Uri, params KeyValuePair< string, string >[] Headers)
Gets a resource, given its URI.
Static class managing the runtime environment of the IoT Gateway.
static X509Certificate2 Certificate
Domain certificate.
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 ...
Node representing an IP Host machine.
override string ToString()
Class for the root node of the Metering topology.
Base class for all provisioned metering nodes.
Tokens available in request.
Represents a boolean value that can be either true or false.
Represents a date and optional time value.
Represents a 64-bit integer value.
Represents a string value.
Represents a time value. Time values adhere to the type specified by xsd:time.
Contains information about an error on a thing
Virtual node, that can be used as a placeholder for services.
Interface for nodes that are published through the concentrator interface.
INode Parent
Parent Node, or null if a root node.
Interface for sensor nodes.
Interface for classes managing sensor data readouts.
Task ReportErrors(bool Done, params ThingError[] Errors)
Report error states to the client.
Task ReportFields(bool Done, params Field[] Fields)
Report read fields to the client.
FieldQoS
Field Quality of Service flags
FieldType
Field Type flags