2using System.Collections.Generic;
3using System.Threading.Tasks;
28 : base(
"Tokens/GetContractTokens",
29 new KeyValuePair<Type,
Expression>(typeof(Dictionary<string, object>), new
Expression(jsonPattern)),
51 int MaxCount =
int.MaxValue;
52 bool References =
true;
54 if (Parameters.TryGetValue(
"POffset", out
IElement E) && !(E is
null) &&
55 E.AssociatedObjectValue is
double d)
60 if (Parameters.TryGetValue(
"PMaxCount", out E) && !(E is
null) &&
61 E.AssociatedObjectValue is
double d2)
66 if (Parameters.TryGetValue(
"PReferences", out E) && !(E is
null) &&
67 E.AssociatedObjectValue is
bool b)
90 List<TokenReference> TokenReferences =
new List<TokenReference>();
96 TokenId = Token.TokenId
105 XmlDocument Doc =
new XmlDocument()
107 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.
The request could not be understood by the server due to malformed syntax. The client SHOULD NOT repe...
The server understood the request, but is refusing to fulfill it. Authorization will not help and the...
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,...
The server has not found anything matching the Request-URI. No indication is given of whether the con...
Contains information about one XMPP address.
CaseInsensitiveString Domain
Domain
Represents a case-insensitive string.
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.
Contains the definition of a contract
Task< bool > CanRead(XmppAddress Jid, XmppServer Server, LegalComponent LegalComponent)
Checks if a client with a given Jid is allowed to read the contract.
Marketplace processor, brokering sales of items via tenders and offers defined in smart contracts.
Contains a reference to a token, possibly on another neuron.
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) created by a specific contract.
override async Task POST(HttpRequest Request, HttpResponse Response, Dictionary< string, IElement > Parameters)
Executes the POST method on the resource.
GetContractTokens()
Gets tokens on the Neuron(R) created by a specific contract.
Service Module hosting the XMPP broker and its components.
Basic interface for all types of elements.