Added NightAlert project for travel kit
This commit is contained in:
35
ThirdParty/EngineIoClientDotNet/Src/EngineIoClientDotNet.mono/Client/HandshakeData_net35.cs
vendored
Normal file
35
ThirdParty/EngineIoClientDotNet/Src/EngineIoClientDotNet.mono/Client/HandshakeData_net35.cs
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
using System.Collections.Concurrent;
|
||||
using System.Collections.Generic;
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
||||
|
||||
|
||||
namespace Quobject.EngineIoClientDotNet.Client
|
||||
{
|
||||
public class HandshakeData
|
||||
{
|
||||
public string Sid;
|
||||
public List<string> Upgrades = new List<string>();
|
||||
public long PingInterval;
|
||||
public long PingTimeout;
|
||||
|
||||
public HandshakeData(string data)
|
||||
: this(JObject.Parse(data))
|
||||
{
|
||||
}
|
||||
|
||||
public HandshakeData(JObject data)
|
||||
{
|
||||
var upgrades = data.GetValue("upgrades");
|
||||
|
||||
foreach (var e in upgrades)
|
||||
{
|
||||
Upgrades.Add(e.ToString());
|
||||
}
|
||||
|
||||
Sid = data.GetValue("sid").Value<string>();
|
||||
PingInterval = data.GetValue("pingInterval").Value<long>();
|
||||
PingTimeout = data.GetValue("pingTimeout").Value<long>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user