3using System.Threading.Tasks;
28 : base(
"Tokens/GetTokens",
29 new KeyValuePair<Type,
Expression>(typeof(Dictionary<string, object>), new
Expression(jsonPattern)),
50 int MaxCount =
int.MaxValue;
51 bool References =
true;
53 if (Parameters.TryGetValue(
"POffset", out
IElement E) && !(E is
null) &&
54 E.AssociatedObjectValue is
double d)
59 if (Parameters.TryGetValue(
"PMaxCount", out E) && !(E is
null) &&
60 E.AssociatedObjectValue is
double d2)
65 if (Parameters.TryGetValue(
"PReferences", out E) && !(E is
null) &&
66 E.AssociatedObjectValue is
bool b)
80 List<Token> Tokens =
new List<Token>();
A Named dictionary is a dictionary, with a local name and a namespace. Use it to return content that ...
Helps with common XML-related tasks.
static XmlDocument ParseXml(string Xml)
Parses an XML Document from its string representation.
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.
Task Return(Exception ex)
Returns an error to the client.
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.
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.
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.