2using System.Collections.Generic;
3using System.Threading.Tasks;
27 : base(
"Tokens/GetTokenEvents",
28 new KeyValuePair<Type,
Expression>(typeof(Dictionary<string, object>), new
Expression(jsonPattern)),
47 string TokenId = (string)Parameters[
"PTokenId"].AssociatedObjectValue;
50 int MaxCount =
int.MaxValue;
52 if (Parameters.TryGetValue(
"POffset", out
IElement E) && !(E is
null) &&
53 E.AssociatedObjectValue is
double d)
58 if (Parameters.TryGetValue(
"PMaxCount", out E) && !(E is
null) &&
59 E.AssociatedObjectValue is
double d2)
73 StringBuilder Xml =
new StringBuilder();
75 Xml.Append(
"<events xmlns='");
82 Xml.Append(
"</events>");
84 XmlDocument Doc =
new XmlDocument()
86 PreserveWhitespace =
true
88 Doc.LoadXml(Xml.ToString());
A Named dictionary is a dictionary, with a local name and a namespace. Use it to return content that ...
Static class managing loading of resources stored as embedded resources or in content files.
static string LoadResourceAsText(string ResourceName)
Loads a text resource from an embedded resource.
Static class managing the runtime environment of the IoT Gateway.
static CaseInsensitiveString Domain
Domain name.
Represents an HTTP request.
Represets a response of an HTTP client request.
The server has not found anything matching the Request-URI. No indication is given of whether the con...
Contains information about one XMPP address.
Class managing a script expression.
Abstract base class for token events.
void Serialize(StringBuilder Xml)
Serializes the event to XML.
Marketplace processor, brokering sales of items via tenders and offers defined in smart contracts.
const string NeuroFeaturesNamespace
https://paiwise.tagroot.io/Schema/NeuroFeatures.xsd
Abstract base class for agent resources supporting the POST method.
static AccountUser AssertUserAuthenticated(HttpRequest Request)
Makes sure the request is made by an authenticated API user.
const string AgentNamespace
https://waher.se/Schema/BrokerAgent.xsd
Gets token events for a token.
GetTokenEvents()
Gets token events for a token.
override async Task POST(HttpRequest Request, HttpResponse Response, Dictionary< string, IElement > Parameters)
Executes the POST method on the resource.
Basic interface for all types of elements.