-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathXmppBindingInterface.cs
More file actions
55 lines (48 loc) · 1.16 KB
/
XmppBindingInterface.cs
File metadata and controls
55 lines (48 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
using System;
using System.Threading.Tasks;
namespace Waher.Networking.XMPP
{
/// <summary>
/// Inteface to internal properties of the <see cref="XmppClient"/>, for use by instantiated alternative transports.
/// </summary>
public class XmppBindingInterface
{
private readonly XmppClient client;
internal XmppBindingInterface(XmppClient Client)
{
this.client = Client;
}
/// <summary>
/// Stream header string.
/// </summary>
public string StreamHeader
{
get { return this.client.StreamHeader; }
set { this.client.StreamHeader = value; }
}
/// <summary>
/// Stream Footer string.
/// </summary>
public string StreamFooter
{
get { return this.client.StreamFooter; }
set { this.client.StreamFooter = value; }
}
/// <summary>
/// When next ping is due.
/// </summary>
public DateTime NextPing
{
get { return this.client.NextPing; }
set { this.client.NextPing = value; }
}
/// <summary>
/// Report an error on the connection.
/// </summary>
/// <param name="ex">Exception causing the error.</param>
public Task ConnectionError(Exception ex)
{
return this.client.ConnectionError(ex);
}
}
}