2using System.Collections.Generic;
4using System.Threading.Tasks;
26 : base(
"Legal/GetCreatedContracts",
27 new KeyValuePair<Type,
Expression>(typeof(Dictionary<string, object>), new
Expression(jsonPattern)),
48 int MaxCount =
int.MaxValue;
50 if (Parameters.TryGetValue(
"POffset", out
IElement E) && !(E is
null) &&
51 E.AssociatedObjectValue is
double d)
56 if (Parameters.TryGetValue(
"PMaxCount", out E) && !(E is
null) &&
57 E.AssociatedObjectValue is
double d2)
62 List<XmlDocument> Result =
new List<XmlDocument>();
65 StringBuilder Xml =
new StringBuilder();
72 XmlDocument Doc =
new XmlDocument()
74 PreserveWhitespace =
true
76 Doc.LoadXml(Xml.ToString());
83 {
"Contracts", 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.
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.
string UserName
User Name.
Contains the definition of a contract
void Serialize(StringBuilder Xml, bool IncludeNamespace, bool IncludeIdAttribute, bool IncludeClientSignatures, bool IncludeAttachments, bool IncludeStatus, bool IncludeServerSignature, bool IncludeAttachmentReferences, Dictionary< string, string > AttachmentsUrls, LegalComponent LegalComponent)
Serializes the Contract, in normalized form.
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 created.
GetCreatedContracts()
Gets contracts the account has created.
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.
Basic interface for all types of elements.