Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
EDalerUriState.cs
1using System;
4
6{
10 public abstract class EDalerUriState
11 {
12 private EDalerUriErrorType? errorType = null;
13 private string errorMessage = null;
14 private string resultXml = null;
15
20 {
21 }
22
30 public virtual void Error(EDalerUriErrorType ErrorType, string ErrorMessage, bool LogAsNotice)
31 {
32 this.errorType = ErrorType;
33 this.errorMessage = ErrorMessage;
34 }
35
42 public virtual void Error(string ErrorType, string ErrorXml, string ErrorMessage)
43 {
44 this.errorType = EDalerUriErrorType.Internal;
45 this.errorMessage = ErrorMessage;
46 }
47
52 public virtual void Error(Exception Exception)
53 {
54 this.errorType = EDalerUriErrorType.Internal;
55 this.errorMessage = Exception.Message;
56 }
57
62 public virtual void Result(string Xml)
63 {
64 this.resultXml = Xml;
65 }
66
70 public EDalerUriErrorType? ErrorType => this.errorType;
71
75 public string ErrorMessage => this.errorMessage;
76
80 public string ResultXml => this.resultXml;
81
85 public abstract XmppAddress For
86 {
87 get;
88 }
89
94 {
95 get;
96 }
97
101 public abstract bool Relayed
102 {
103 get;
104 }
105
110 }
111}
Contains information about one XMPP address.
Definition: XmppAddress.cs:9
Represents a case-insensitive string.
abstract XmppAddress For
Who the payment is for.
EDalerUriErrorType? ErrorType
Type of error, if any.
virtual void Error(EDalerUriErrorType ErrorType, string ErrorMessage, bool LogAsNotice)
Reports an error with the URI
string ErrorMessage
Error message, or null if no error.
abstract bool Relayed
If the request is relayed
virtual void Error(string ErrorType, string ErrorXml, string ErrorMessage)
Reports an error with the URI
abstract CaseInsensitiveString Sender
Who the sender of the URI is.
virtual CaseInsensitiveString OriginalSender
Who the original sender of the URI is.
virtual void Result(string Xml)
Reports a positive result.
virtual void Error(Exception Exception)
Reports an error with the URI