2using System.Collections.Generic;
3using System.Threading.Tasks;
17 : base(
"/LegalIdentityStateChanged")
21 public override bool HandlesSubPaths =>
false;
22 public override bool UserSessions =>
true;
34 if (!(await Request.
DecodeDataAsync() is Dictionary<string, object> Obj))
37 if (!Obj.TryGetValue(
"id", out
object Obj2) || !(Obj2 is
string Id) ||
38 !Obj.TryGetValue(
"state", out Obj2) || !(Obj2 is
string s) ||
55 Response.StatusCode = 200;
57 await Response.
Write(
"true");
const string DefaultContentType
application/json
Static class managing the runtime environment of the IoT Gateway.
static IUser AssertUserAuthenticated(HttpRequest Request, string Privilege)
Makes sure a request is being made from a session with a successful user login.
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.
string RemoteEndPoint
Remote end-point.
bool HasData
If the request has data.
async Task< object > DecodeDataAsync()
Decodes data sent in request.
Represets a response of an HTTP client request.
async Task Write(byte[] Data)
Returns binary data in the response.
Base class for all synchronous HTTP resources. A synchronous resource responds within the method hand...
The server has not found anything matching the Request-URI. No indication is given of whether the con...
Static interface for database persistence. In order to work, a database provider has to be assigned t...
This filter selects objects that have a named field equal to a given value.
async Task POST(HttpRequest Request, HttpResponse Response)
Executes the POST method on the resource.
bool AllowsPOST
If the POST method is allowed.
Service Module hosting the XMPP broker and its components.
POST Interface for HTTP resources.
bool Enabled
If the account is enabled.
Interface for XMPP user accounts.
IdentityState
Lists recognized legal identity states.