2using System.Collections.Generic;
3using System.Threading.Tasks;
49 Client.SetTag(
"PEP", Extension);
51 Extension.NonPepItemNotification += (Sender, e) =>
54 new KeyValuePair<string, object>(
"e", e),
55 new KeyValuePair<string, object>(
"Client", Client));
57 return Task.CompletedTask;
60 Extension.NonPepItemRetraction += (Sender, e) =>
63 new KeyValuePair<string, object>(
"e", e),
64 new KeyValuePair<string, object>(
"Client", Client));
66 return Task.CompletedTask;
69 Extension.OnUserActivity += (Sender, e) =>
72 new KeyValuePair<string, object>(
"e", e),
73 new KeyValuePair<string, object>(
"Client", Client));
75 return Task.CompletedTask;
78 Extension.OnUserAvatarMetaData += (Sender, e) =>
81 new KeyValuePair<string, object>(
"e", e),
82 new KeyValuePair<string, object>(
"Client", Client));
84 return Task.CompletedTask;
87 Extension.OnUserLocation += (Sender, e) =>
90 new KeyValuePair<string, object>(
"e", e),
91 new KeyValuePair<string, object>(
"Client", Client));
93 return Task.CompletedTask;
96 Extension.OnUserMood += (Sender, e) =>
99 new KeyValuePair<string, object>(
"e", e),
100 new KeyValuePair<string, object>(
"Client", Client));
102 return Task.CompletedTask;
105 Extension.OnUserTune += (Sender, e) =>
108 new KeyValuePair<string, object>(
"e", e),
109 new KeyValuePair<string, object>(
"Client", Client));
111 return Task.CompletedTask;
114 return Task.FromResult<
object>(Extension);
Root node of a simulation model
bool ExternalEvent(IExternalEventsNode Source, string Name, params KeyValuePair< string, object >[] Arguments)
Method called when an external event has been received.
override Task< object > Add(IActor Instance, Waher.Networking.XMPP.XmppClient Client)
Adds the extension to the client.
override ISimulationNode Create(ISimulationNode Parent, Model Model)
Creates a new instance of the node.
override string LocalName
Local name of XML element defining contents of class.
PepExtension(ISimulationNode Parent, Model Model)
PEP XMPP extension
Abstract base class for XMPP extensions.
Client managing the Personal Eventing Protocol (XEP-0163). https://xmpp.org/extensions/xep-0163....
Manages an XMPP client connection. Implements XMPP, as defined in https://tools.ietf....
Basic interface for simulator nodes. Implementing this interface allows classes with default contruct...
ISimulationNode Parent
Parent node in the simulation model.
Basic interface for simulator nodes. Implementing this interface allows classes with default contruct...