Class XmppMessenger
Represents the XMPP messenger.
Inherited Members
Namespace: FastReport.Messaging.Xmpp
Assembly: FastReport.dll
Syntax
public class XmppMessenger : MessengerBase, IDisposable
Constructors
XmppMessenger()
Initializes a new instance of the XmppMessenger class.
Declaration
public XmppMessenger()
XmppMessenger(String, String, String)
Initializes a new instance of the XmppMessenger class with specified parameters.
Declaration
public XmppMessenger(string jidFrom, string password, string jidTo)
Parameters
Type | Name | Description |
---|---|---|
System.String | jidFrom | User's JID without resource. |
System.String | password | User's password. |
System.String | jidTo | JID to send to with resource. |
XmppMessenger(String, String, String, Int32, String, String)
Initializes a new instance of the XmppMessenger class with specified parameters.
Declaration
public XmppMessenger(string username, string password, string hostname, int port, string sendToUsername, string sendToResource)
Parameters
Type | Name | Description |
---|---|---|
System.String | username | Username. |
System.String | password | Password. |
System.String | hostname | Hostname. |
System.Int32 | port | Port. |
System.String | sendToUsername | Username to send file to. |
System.String | sendToResource | Send to user's resource. |
Properties
Hostname
Gets or sets the hostname of XMPP server.
Declaration
public string Hostname { get; set; }
Property Value
Type | Description |
---|---|
System.String |
JidFrom
Gets or sets the JID to send from.
Declaration
public string JidFrom { get; set; }
Property Value
Type | Description |
---|---|
System.String |
JidTo
Gets or set the JID to send to.
Declaration
public string JidTo { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Password
Gets or sets the user's password.
Declaration
public string Password { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Port
Gets or sets the port number of the XMPP service of the server.
Declaration
public int Port { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
SendToUsername
Gets or sets the username to send file to.
Declaration
public string SendToUsername { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Username
Gets or sets the username.
Declaration
public string Username { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Authorize()
Authorizes the user.
Declaration
protected override bool Authorize()
Returns
Type | Description |
---|---|
System.Boolean | True if user has been successfully authorized. |
Overrides
Close()
Closes the connection.
Declaration
public void Close()
Dispose()
Releases all the resources used by the XMPP messenger.
Declaration
public void Dispose()
SendReport(Report, ExportBase)
Sends the report.
Declaration
public override bool SendReport(Report report, ExportBase export)
Parameters
Type | Name | Description |
---|---|---|
Report | report | The report template that should be sent. |
ExportBase | export | The export filter that should export template before. |
Returns
Type | Description |
---|---|
System.Boolean | True if report has been successfully sent. |
Overrides
ValidateServerCertificate(Object, X509Certificate, X509Chain, SslPolicyErrors)
Validates the server certificate.
Declaration
public static bool ValidateServerCertificate(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The sender object. |
System.Security.Cryptography.X509Certificates.X509Certificate | certificate | X509 certificate. |
System.Security.Cryptography.X509Certificates.X509Chain | chain | The X509 chain. |
System.Net.Security.SslPolicyErrors | sslPolicyErrors | The SSL policy errors. |
Returns
Type | Description |
---|---|
System.Boolean | True if successfull. |