80 lines
3.5 KiB
C#
80 lines
3.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace UnityEngine.Networking.Match
|
|
{
|
|
// Token: 0x020002B0 RID: 688
|
|
internal class ListMatchRequest : Request
|
|
{
|
|
// Token: 0x17000A85 RID: 2693
|
|
// (get) Token: 0x06002E34 RID: 11828 RVA: 0x000426EC File Offset: 0x000408EC
|
|
// (set) Token: 0x06002E35 RID: 11829 RVA: 0x00042708 File Offset: 0x00040908
|
|
public int pageSize { get; set; }
|
|
|
|
// Token: 0x17000A86 RID: 2694
|
|
// (get) Token: 0x06002E36 RID: 11830 RVA: 0x00042714 File Offset: 0x00040914
|
|
// (set) Token: 0x06002E37 RID: 11831 RVA: 0x00042730 File Offset: 0x00040930
|
|
public int pageNum { get; set; }
|
|
|
|
// Token: 0x17000A87 RID: 2695
|
|
// (get) Token: 0x06002E38 RID: 11832 RVA: 0x0004273C File Offset: 0x0004093C
|
|
// (set) Token: 0x06002E39 RID: 11833 RVA: 0x00042758 File Offset: 0x00040958
|
|
public string nameFilter { get; set; }
|
|
|
|
// Token: 0x17000A88 RID: 2696
|
|
// (get) Token: 0x06002E3A RID: 11834 RVA: 0x00042764 File Offset: 0x00040964
|
|
// (set) Token: 0x06002E3B RID: 11835 RVA: 0x00042780 File Offset: 0x00040980
|
|
public bool filterOutPrivateMatches { get; set; }
|
|
|
|
// Token: 0x17000A89 RID: 2697
|
|
// (get) Token: 0x06002E3C RID: 11836 RVA: 0x0004278C File Offset: 0x0004098C
|
|
// (set) Token: 0x06002E3D RID: 11837 RVA: 0x000427A8 File Offset: 0x000409A8
|
|
public int eloScore { get; set; }
|
|
|
|
// Token: 0x17000A8A RID: 2698
|
|
// (get) Token: 0x06002E3E RID: 11838 RVA: 0x000427B4 File Offset: 0x000409B4
|
|
// (set) Token: 0x06002E3F RID: 11839 RVA: 0x000427D0 File Offset: 0x000409D0
|
|
public Dictionary<string, long> matchAttributeFilterLessThan { get; set; }
|
|
|
|
// Token: 0x17000A8B RID: 2699
|
|
// (get) Token: 0x06002E40 RID: 11840 RVA: 0x000427DC File Offset: 0x000409DC
|
|
// (set) Token: 0x06002E41 RID: 11841 RVA: 0x000427F8 File Offset: 0x000409F8
|
|
public Dictionary<string, long> matchAttributeFilterEqualTo { get; set; }
|
|
|
|
// Token: 0x17000A8C RID: 2700
|
|
// (get) Token: 0x06002E42 RID: 11842 RVA: 0x00042804 File Offset: 0x00040A04
|
|
// (set) Token: 0x06002E43 RID: 11843 RVA: 0x00042820 File Offset: 0x00040A20
|
|
public Dictionary<string, long> matchAttributeFilterGreaterThan { get; set; }
|
|
|
|
// Token: 0x06002E44 RID: 11844 RVA: 0x0004282C File Offset: 0x00040A2C
|
|
public override string ToString()
|
|
{
|
|
return UnityString.Format("[{0}]-pageSize:{1},pageNum:{2},nameFilter:{3}, filterOutPrivateMatches:{4}, eloScore:{5}, matchAttributeFilterLessThan.Count:{6}, matchAttributeFilterEqualTo.Count:{7}, matchAttributeFilterGreaterThan.Count:{8}", new object[]
|
|
{
|
|
base.ToString(),
|
|
this.pageSize,
|
|
this.pageNum,
|
|
this.nameFilter,
|
|
this.filterOutPrivateMatches,
|
|
this.eloScore,
|
|
(this.matchAttributeFilterLessThan != null) ? this.matchAttributeFilterLessThan.Count : 0,
|
|
(this.matchAttributeFilterEqualTo != null) ? this.matchAttributeFilterEqualTo.Count : 0,
|
|
(this.matchAttributeFilterGreaterThan != null) ? this.matchAttributeFilterGreaterThan.Count : 0
|
|
});
|
|
}
|
|
|
|
// Token: 0x06002E45 RID: 11845 RVA: 0x00042908 File Offset: 0x00040B08
|
|
public override bool IsValid()
|
|
{
|
|
int num = ((this.matchAttributeFilterLessThan != null) ? this.matchAttributeFilterLessThan.Count : 0);
|
|
num += ((this.matchAttributeFilterEqualTo != null) ? this.matchAttributeFilterEqualTo.Count : 0);
|
|
num += ((this.matchAttributeFilterGreaterThan != null) ? this.matchAttributeFilterGreaterThan.Count : 0);
|
|
return base.IsValid() && (this.pageSize >= 1 || this.pageSize <= 1000) && num <= 10;
|
|
}
|
|
|
|
// Token: 0x040008E1 RID: 2273
|
|
[Obsolete("This bool is deprecated in favor of filterOutPrivateMatches")]
|
|
public bool includePasswordMatches;
|
|
}
|
|
}
|