48 if ((
object)this.bareJid is
null)
50 int i = this.address.
IndexOf(
'/');
53 this.bareJid = this.address;
58 this.bareJid = this.address.
Substring(0, i);
59 this.resource = this.address.
Substring(i + 1);
74 if ((
object)this.resource is
null)
76 int i = this.address.
IndexOf(
'/');
79 this.bareJid = this.address;
84 this.bareJid = this.address.
Substring(0, i);
85 this.resource = this.address.
Substring(i + 1);
100 if ((
object)this.domain is
null)
127 if ((
object)this.account is
null)
192 return this.address.Value;
200 return obj is
XmppAddress Addr && this.address == Addr.address;
208 return this.address.GetHashCode();
Contains information about one XMPP address.
override string ToString()
object.ToString()
bool IsBareJID
If the address is a Bare JID.
XmppAddress(CaseInsensitiveString Address)
Contains information about one XMPP address.
bool HasAccount
If the address has an account part.
override bool Equals(object obj)
object.Equals(object)
bool IsEmpty
If the address is empty.
CaseInsensitiveString Resource
Resource part.
CaseInsensitiveString Domain
Domain
CaseInsensitiveString Address
XMPP Address
bool IsDomain
If the Address is a domain.
XmppAddress ToBareJID()
Returns the Bare JID as an XmppAddress object.
CaseInsensitiveString BareJid
Bare JID
static readonly XmppAddress Empty
Empty address.
override int GetHashCode()
object.GetHashCode()
CaseInsensitiveString Account
Account
bool IsFullJID
If the Address is a Full JID.
Represents a case-insensitive string.
static readonly CaseInsensitiveString Empty
Empty case-insensitive string
int IndexOf(CaseInsensitiveString value, StringComparison comparisonType)
Reports the zero-based index of the first occurrence of the specified string in the current System....
static bool IsNullOrEmpty(CaseInsensitiveString value)
Indicates whether the specified string is null or an CaseInsensitiveString.Empty string.
CaseInsensitiveString Substring(int startIndex, int length)
Retrieves a substring from this instance. The substring starts at a specified character position and ...