2using System.Collections.Generic;
4using System.Threading.Tasks;
27 : base(
"Tokens/GetToken",
28 new KeyValuePair<Type,
Expression>(typeof(Dictionary<string, object>), new
Expression(jsonPattern)),
47 string TokenId = (string)Parameters[
"PTokenId"].AssociatedObjectValue;
55 StringBuilder Xml =
new StringBuilder();
58 XmlDocument Doc =
new XmlDocument()
60 PreserveWhitespace =
true
62 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.
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...
The server is currently unable to handle the request due to a temporary overloading or maintenance of...
Contains information about one XMPP address.
CaseInsensitiveString Domain
Domain
CaseInsensitiveString BareJid
Bare JID
bool IsServerDomain(CaseInsensitiveString Domain, bool IncludeAlternativeDomains)
Checks if a domain is the server domain, or optionally, an alternative domain.
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.
void Serialize(StringBuilder Xml, bool IncludeNamespace, bool IncludeServerSignature)
Serializes the Token, in normalized form.
CaseInsensitiveString OwnershipContract
ID of contract that details the claims of the current owner
ContractVisibility Visibility
Visibility of token
CaseInsensitiveString OwnerJid
JID of Current owner of token
bool IsExternalPart(CaseInsensitiveString BareJid)
Checks if a JID is an external part in the creation of the contract.
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
override async Task POST(HttpRequest Request, HttpResponse Response, Dictionary< string, IElement > Parameters)
Executes the POST method on the resource.
Service Module hosting the XMPP broker and its components.
ContractVisibility
Visibility types for contracts.