2using System.Collections.Generic;
3using System.Threading.Tasks;
26 : base(
"Tokens/GetTokens",
27 new KeyValuePair<Type,
Expression>(typeof(Dictionary<string, object>), new
Expression(jsonPattern)),
48 int MaxCount =
int.MaxValue;
49 bool References =
true;
51 if (Parameters.TryGetValue(
"POffset", out
IElement E) && !(E is
null) &&
52 E.AssociatedObjectValue is
double d)
57 if (Parameters.TryGetValue(
"PMaxCount", out E) && !(E is
null) &&
58 E.AssociatedObjectValue is
double d2)
63 if (Parameters.TryGetValue(
"PReferences", out E) && !(E is
null) &&
64 E.AssociatedObjectValue is
bool b)
78 List<Token> Tokens =
new List<Token>();
90 XmlDocument Doc =
new XmlDocument()
92 PreserveWhitespace =
true
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.
async Task Return(object Object)
Returns an object to the client. This method can only be called once per response,...
Static interface for database persistence. In order to work, a database provider has to be assigned t...
static Task< IEnumerable< object > > Find(string Collection, params string[] SortOrder)
Finds objects in a given collection.
This filter selects objects that have a named field equal to a given value.
Class managing a script expression.
Marketplace processor, brokering sales of items via tenders and offers defined in smart contracts.
Contains a reference to a token, possibly on another neuron.
CaseInsensitiveString TokenId
Token ID
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 tokens on the Neuron(R) that the account owns.
override async Task POST(HttpRequest Request, HttpResponse Response, Dictionary< string, IElement > Parameters)
Executes the POST method on the resource.
GetTokens()
Gets tokens on the Neuron(R) that the account owns.
Basic interface for all types of elements.