forked from ubiety/xmpp
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Settings.cs
53 lines (48 loc) · 1.54 KB
/
Settings.cs
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
// Settings.cs
//
//Copyright © 2006 - 2012 Dieter Lunn
//Modified 2012 Paul Freund ( [email protected] )
//
//This library is free software; you can redistribute it and/or modify it under
//the terms of the GNU Lesser General Public License as published by the Free
//Software Foundation; either version 3 of the License, or (at your option)
//any later version.
//
//This library is distributed in the hope that it will be useful, but WITHOUT
//ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
//FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
//
//You should have received a copy of the GNU Lesser General Public License along
//with this library; if not, write to the Free Software Foundation, Inc., 59
//Temple Place, Suite 330, Boston, MA 02111-1307 USA
using System;
namespace XMPP
{
[Flags]
public enum MechanismType
{
None,
Plain = (1 << 0),
DigestMD5 = (1 << 1),
External = (1 << 2),
SCRAM = (1 << 3),
XOAUTH2 = (1 << 4),
Default = SCRAM | DigestMD5 //| XOAUTH2 // not implemented yet
}
}
namespace XMPP.common
{
public class Settings
{
public string Account;
public JID Id;
public string Password;
public string Hostname;
public int Port = 5222;
public MechanismType AuthenticationTypes = MechanismType.Default;
public bool SSL = false;
public bool OldSSL = false;
public bool UseKeepAlive = false;
public int KeepAliveTime = 60;
}
}