59 lines
2.2 KiB
C#
59 lines
2.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using UnityEngine.Networking.Types;
|
|
|
|
namespace UnityEngine.Networking.Match
|
|
{
|
|
// Token: 0x020002B1 RID: 689
|
|
internal class MatchDirectConnectInfo : ResponseBase
|
|
{
|
|
// Token: 0x17000A8D RID: 2701
|
|
// (get) Token: 0x06002E47 RID: 11847 RVA: 0x000429B4 File Offset: 0x00040BB4
|
|
// (set) Token: 0x06002E48 RID: 11848 RVA: 0x000429D0 File Offset: 0x00040BD0
|
|
public NodeID nodeId { get; set; }
|
|
|
|
// Token: 0x17000A8E RID: 2702
|
|
// (get) Token: 0x06002E49 RID: 11849 RVA: 0x000429DC File Offset: 0x00040BDC
|
|
// (set) Token: 0x06002E4A RID: 11850 RVA: 0x000429F8 File Offset: 0x00040BF8
|
|
public string publicAddress { get; set; }
|
|
|
|
// Token: 0x17000A8F RID: 2703
|
|
// (get) Token: 0x06002E4B RID: 11851 RVA: 0x00042A04 File Offset: 0x00040C04
|
|
// (set) Token: 0x06002E4C RID: 11852 RVA: 0x00042A20 File Offset: 0x00040C20
|
|
public string privateAddress { get; set; }
|
|
|
|
// Token: 0x17000A90 RID: 2704
|
|
// (get) Token: 0x06002E4D RID: 11853 RVA: 0x00042A2C File Offset: 0x00040C2C
|
|
// (set) Token: 0x06002E4E RID: 11854 RVA: 0x00042A48 File Offset: 0x00040C48
|
|
public HostPriority hostPriority { get; set; }
|
|
|
|
// Token: 0x06002E4F RID: 11855 RVA: 0x00042A54 File Offset: 0x00040C54
|
|
public override string ToString()
|
|
{
|
|
return UnityString.Format("[{0}]-nodeId:{1},publicAddress:{2},privateAddress:{3},hostPriority:{4}", new object[]
|
|
{
|
|
base.ToString(),
|
|
this.nodeId,
|
|
this.publicAddress,
|
|
this.privateAddress,
|
|
this.hostPriority
|
|
});
|
|
}
|
|
|
|
// Token: 0x06002E50 RID: 11856 RVA: 0x00042AB0 File Offset: 0x00040CB0
|
|
public override void Parse(object obj)
|
|
{
|
|
IDictionary<string, object> dictionary = obj as IDictionary<string, object>;
|
|
if (dictionary != null)
|
|
{
|
|
this.nodeId = (NodeID)base.ParseJSONUInt16("nodeId", obj, dictionary);
|
|
this.publicAddress = base.ParseJSONString("publicAddress", obj, dictionary);
|
|
this.privateAddress = base.ParseJSONString("privateAddress", obj, dictionary);
|
|
this.hostPriority = (HostPriority)base.ParseJSONInt32("hostPriority", obj, dictionary);
|
|
return;
|
|
}
|
|
throw new FormatException("While parsing JSON response, found obj is not of type IDictionary<string,object>:" + obj.ToString());
|
|
}
|
|
}
|
|
}
|