13 private bool responseReturned =
false;
21 this.request = Request;
33 if (!this.responseReturned)
35 this.responseReturned =
true;
40 this.request.IqErrorBadRequest(this.request.To,
ErrorMessage,
"en");
44 this.request.IqErrorForbidden(this.request.To,
ErrorMessage,
"en");
48 this.request.IqErrorResourceConstraint(this.request.To,
ErrorMessage,
"en");
52 this.request.IqErrorConflict(this.request.To,
ErrorMessage,
"en");
59 this.request.IqErrorServiceUnavailable(this.request.To,
ErrorMessage,
"en");
75 if (!this.responseReturned)
77 this.responseReturned =
true;
88 public override void Error(Exception Exception)
90 if (!this.responseReturned)
92 this.responseReturned =
true;
93 this.request.IqError(Exception, this.request.To);
95 base.Error(Exception);
105 if (!this.responseReturned)
107 this.responseReturned =
true;
108 this.request.IqResult(Xml, this.request.To);
121 if (this.request.From.IsDomain &&
this.request.Query.HasAttribute(
"for"))
123 else if (!this.request.From.IsDomain)
144 if (this.request.From.IsDomain &&
this.request.Query.HasAttribute(
"for"))
145 s = this.request.Query.GetAttribute(
"for");
154 public override bool Relayed => this.request.From.IsDomain;
Event arguments for IQ queries.
Contains information about one XMPP address.
XmppAddress ToBareJID()
Returns the Bare JID as an XmppAddress object.
Represents a case-insensitive string.
string ErrorMessage
Error message, or null if no error.
Current state of URI from external source
override void Error(string ErrorType, string ErrorXml, string ErrorMessage)
Reports an error with the URI
ExternalRequest(IqEventArgs Request)
Current state of URI from external source
override void Result(string Xml)
Reports a positive result.
override CaseInsensitiveString OriginalSender
Who the original sender of the URI is.
override void Error(Exception Exception)
Reports an error with the URI
override void Error(EDalerUriErrorType ErrorType, string ErrorMessage, bool LogAsNotice)
Reports an error with the URI
override bool Relayed
If the request is relayed
override XmppAddress For
Who the payment is for.
override CaseInsensitiveString Sender
Who the sender of the URI is.
EDalerUriErrorType
Type of URI Error