50 lines
1.5 KiB
C#
50 lines
1.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace UnityEngine.Networking.Match
|
|
{
|
|
// Token: 0x020002B3 RID: 691
|
|
internal class ListMatchResponse : BasicResponse
|
|
{
|
|
// Token: 0x06002E66 RID: 11878 RVA: 0x00042E50 File Offset: 0x00041050
|
|
public ListMatchResponse()
|
|
{
|
|
this.matches = new List<MatchDesc>();
|
|
}
|
|
|
|
// Token: 0x06002E67 RID: 11879 RVA: 0x00042E64 File Offset: 0x00041064
|
|
public ListMatchResponse(List<MatchDesc> otherMatches)
|
|
{
|
|
this.matches = otherMatches;
|
|
}
|
|
|
|
// Token: 0x17000A9A RID: 2714
|
|
// (get) Token: 0x06002E68 RID: 11880 RVA: 0x00042E74 File Offset: 0x00041074
|
|
// (set) Token: 0x06002E69 RID: 11881 RVA: 0x00042E90 File Offset: 0x00041090
|
|
public List<MatchDesc> matches { get; set; }
|
|
|
|
// Token: 0x06002E6A RID: 11882 RVA: 0x00042E9C File Offset: 0x0004109C
|
|
public override string ToString()
|
|
{
|
|
return UnityString.Format("[{0}]-matches.Count:{1}", new object[]
|
|
{
|
|
base.ToString(),
|
|
(this.matches != null) ? this.matches.Count : 0
|
|
});
|
|
}
|
|
|
|
// Token: 0x06002E6B RID: 11883 RVA: 0x00042EF0 File Offset: 0x000410F0
|
|
public override void Parse(object obj)
|
|
{
|
|
base.Parse(obj);
|
|
IDictionary<string, object> dictionary = obj as IDictionary<string, object>;
|
|
if (dictionary != null)
|
|
{
|
|
this.matches = base.ParseJSONList<MatchDesc>("matches", obj, dictionary);
|
|
return;
|
|
}
|
|
throw new FormatException("While parsing JSON response, found obj is not of type IDictionary<string,object>:" + obj.ToString());
|
|
}
|
|
}
|
|
}
|