Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
PetitionEventArgs.cs
1using System.Xml;
3
5{
9 public abstract class PetitionEventArgs : MessageEventArgs
10 {
11 private readonly LegalIdentity requestorIdentity;
12 private readonly string requestorFullJid;
13 private readonly string petitionId;
14 private readonly string purpose;
15 private readonly string clientEndpoint;
16 private readonly XmlElement context;
17 private readonly string[] properties;
18 private readonly string[] attachments;
19
35 string PetitionId, string Purpose, string ClientEndpoint, XmlElement Context,
36 string[] Properties, string[] Attachments)
37 : base(e)
38 {
39 this.requestorIdentity = RequestorIdentity;
40 this.requestorFullJid = RequestorFullJid;
41 this.petitionId = PetitionId;
42 this.purpose = Purpose;
43 this.clientEndpoint = ClientEndpoint;
44 this.context = Context;
45 this.properties = Properties;
46 this.attachments = Attachments;
47 }
48
52 public LegalIdentity RequestorIdentity => this.requestorIdentity;
53
57 public string RequestorFullJid => this.requestorFullJid;
58
62 public string PetitionId => this.petitionId;
63
67 public string Purpose => this.purpose;
68
72 public string ClientEndpoint => this.clientEndpoint;
73
77 public XmlElement Context => this.context;
78
81 public string[] Properties => this.properties;
82
87 public string[] Attachments => this.attachments;
88 }
89}
Abstract base class for petition event arguments.
string[] Attachments
Optional attachment hints to provide to the remote party, highlighting which attachments will be used...
LegalIdentity RequestorIdentity
Legal Identity of requesting entity.
string ClientEndpoint
Remote endpoint of remote party client.
PetitionEventArgs(MessageEventArgs e, LegalIdentity RequestorIdentity, string RequestorFullJid, string PetitionId, string Purpose, string ClientEndpoint, XmlElement Context, string[] Properties, string[] Attachments)
Abstract base class for petition event arguments.
string[] Properties
Optional property hints to provide to the remote party, highlighting which properties will be used in...
XmlElement Context
Any machine-readable context XML element available in the petition.
Event arguments for message events.