C# Class SIPLib.SIP.SIPURI

This class is used to represent a SIPURI (“Firstname Lastname” <sip:[email protected]> etc)
Afficher le fichier Open project: richardspiers/C-Sharp-Sip-Lib Class Usage Examples

Méthodes publiques

Méthode Description
Compare ( SIPURI other ) : bool

Helper function to compares this SIPURI to another specified SIPURI.

Dup ( ) : SIPURI

Clones this SIPURI and returns a new SIPURI

Hash ( ) : string

Returns a md5 hash based on the lowercased string contents of this SIPURI.

HostPort ( ) : string

Helper function returning a string combining the SIPURI's host and port.

SIPURI ( ) : System

Initializes an empty instance of the T:SIPLib.SIP.SIPURI class.

SIPURI ( string uri ) : System

Initializes a new instance of the T:SIPLib.SIP.SIPURI class.

SIPURI ( string uri, bool useRegex ) : System
ToString ( ) : string

Returns a System.String that represents this instance.

Private Methods

Méthode Description
GetMd5Hash ( MD5 md5Hash, string input ) : string

Helper function used to get the MD5 hash of the inputed string using the MD5 object passed in.

Init ( ) : void

Initializes the SIPURI object

nonRegExpInit ( string uri ) : void
regExInit ( string uri ) : void

Method Details

Compare() public méthode

Helper function to compares this SIPURI to another specified SIPURI.
public Compare ( SIPURI other ) : bool
other SIPURI The other.
Résultat bool

Dup() public méthode

Clones this SIPURI and returns a new SIPURI
public Dup ( ) : SIPURI
Résultat SIPURI

Hash() public méthode

Returns a md5 hash based on the lowercased string contents of this SIPURI.
public Hash ( ) : string
Résultat string

HostPort() public méthode

Helper function returning a string combining the SIPURI's host and port.
public HostPort ( ) : string
Résultat string

SIPURI() public méthode

Initializes an empty instance of the T:SIPLib.SIP.SIPURI class.
public SIPURI ( ) : System
Résultat System

SIPURI() public méthode

Initializes a new instance of the T:SIPLib.SIP.SIPURI class.
public SIPURI ( string uri ) : System
uri string A string representing a SIP URI.
Résultat System

SIPURI() public méthode

public SIPURI ( string uri, bool useRegex ) : System
uri string
useRegex bool
Résultat System

ToString() public méthode

Returns a System.String that represents this instance.
public ToString ( ) : string
Résultat string