2using System.Collections.Generic;
3using System.Threading.Tasks;
49 Client.SetTag(
"Avatar", Extension);
51 Extension.AvatarAdded += (Sender, e) =>
54 new KeyValuePair<string, object>(
"e", e),
55 new KeyValuePair<string, object>(
"Client", Client));
57 return Task.CompletedTask;
60 Extension.AvatarRemoved += (Sender, e) =>
63 new KeyValuePair<string, object>(
"e", e),
64 new KeyValuePair<string, object>(
"Client", Client));
66 return Task.CompletedTask;
69 Extension.AvatarUpdated += (Sender, e) =>
72 new KeyValuePair<string, object>(
"e", e),
73 new KeyValuePair<string, object>(
"Client", Client));
75 return Task.CompletedTask;
78 Extension.VCardReceived += (Sender, e) =>
81 new KeyValuePair<string, object>(
"e", e),
82 new KeyValuePair<string, object>(
"Client", Client));
84 return Task.CompletedTask;
87 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 string LocalName
Local name of XML element defining contents of class.
override Task< object > Add(IActor Instance, Waher.Networking.XMPP.XmppClient Client)
Adds the extension to the client.
AvatarExtension(ISimulationNode Parent, Model Model)
Avatar XMPP extension
override ISimulationNode Create(ISimulationNode Parent, Model Model)
Creates a new instance of the node.
Abstract base class for XMPP extensions.
Provides help with managing avatars.
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...