2using System.Collections.Generic;
4using System.Threading.Tasks;
27 : base(
"Legal/GetSignedContracts",
28 new KeyValuePair<Type,
Expression>(typeof(Dictionary<string, object>), new
Expression(jsonPattern)),
49 int MaxCount =
int.MaxValue;
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 List<NamedDictionary<string, object>> Result =
new List<NamedDictionary<string, object>>();
71 {
"contractId", Signature.ContractId.Value },
72 {
"legalId", Signature.LegalId.Value }
78 {
"Signatures", Result.ToArray() }
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.
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.
CaseInsensitiveString UserName
User Name of account
Account Account
Account object.
Contains information about a contract signature.
Abstract base class of signatures
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 contracts the account has signed.
override async Task POST(HttpRequest Request, HttpResponse Response, Dictionary< string, IElement > Parameters)
Executes the POST method on the resource.
GetSignedContracts()
Gets contracts the account has signed.
Basic interface for all types of elements.