3using System.Threading.Tasks;
23 : base(
"Account/Info",
24 new KeyValuePair<Type,
Expression>(typeof(Dictionary<string, object>), new
Expression(jsonPattern)),
51 {
"userName", User.Account.UserName.Value },
52 {
"created", User.Account.Created },
53 {
"updated", User.Account.Updated },
54 {
"eMail", User.Account.Enabled ? User.Account.EMail.Value :
null },
55 {
"eMailVerified", User.Account.EMailVerified },
56 {
"phoneNr", User.Account.Enabled ? User.
Account.
PhoneNr?.Value :
null },
57 {
"phoneNrVerified", User.Account.PhoneNrVerified }
A Named dictionary is a dictionary, with a local name and a namespace. Use it to return content that ...
Represents an HTTP request.
Represets a response of an HTTP client request.
Task Return(Exception ex)
Returns an error to the client.
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.
CaseInsensitiveString PhoneNr
Phone number associated with account.
Account Account
Account object.
Gets information about a newly created token stored in a session variable.
Gets information about the currently logged in account.
override async Task POST(HttpRequest Request, HttpResponse Response, Dictionary< string, IElement > Parameters)
Executes the POST method on the resource.
Info()
Gets information about the currently logged in account.
override bool UserSessions
If the resource uses user sessions.
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