Skip to content

Commit a94eb47

Browse files
authored
Remove AutoMapper (#141)
* Remove AutoMapper * Removed AutoMapper. Part 2.
1 parent 7eed966 commit a94eb47

File tree

129 files changed

+2557
-2279
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+2557
-2279
lines changed
Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,24 @@
11
using System;
22
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
5-
using System.Threading.Tasks;
63

74
namespace Steam.Models.DOTA2
85
{
96
public class MatchHistoryBySequenceNumberMatchModel
107
{
118
public IList<MatchHistoryBySequenceNumberMatchPlayerModel> Players { get; set; }
12-
9+
1310
public bool RadiantWin { get; set; }
14-
11+
1512
public uint Duration { get; set; }
16-
13+
1714
public DateTime StartTime { get; set; }
18-
15+
1916
public ulong MatchId { get; set; }
20-
17+
2118
public ulong MatchSequenceNumber { get; set; }
2219

2320
public TowerState TowerStatesRadiant { get { return new TowerState(TowerStatusRadiant); } }
24-
21+
2522
public uint TowerStatusRadiant { get; set; }
2623

2724
public TowerState TowerStatesDire { get { return new TowerState(TowerStatusRadiant); } }
@@ -35,29 +32,29 @@ public class MatchHistoryBySequenceNumberMatchModel
3532
public BarracksState BarracksStatesDire { get { return new BarracksState(BarracksStatusDire); } }
3633

3734
public uint BarracksStatusDire { get; set; }
38-
35+
3936
public uint Cluster { get; set; }
40-
37+
4138
public DateTime FirstBloodTime { get; set; }
42-
39+
4340
public uint LobbyType { get; set; }
44-
41+
4542
public uint HumanPlayers { get; set; }
46-
43+
4744
public uint LeagueId { get; set; }
48-
45+
4946
public uint PositiveVotes { get; set; }
50-
47+
5148
public uint NegativeVotes { get; set; }
52-
49+
5350
public uint GameMode { get; set; }
54-
51+
5552
public uint Flags { get; set; }
56-
53+
5754
public uint Engine { get; set; }
58-
55+
5956
public uint RadiantScore { get; set; }
60-
57+
6158
public uint DireScore { get; set; }
6259
}
6360
}
Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
5-
using System.Threading.Tasks;
6-
7-
namespace Steam.Models.DOTA2
1+
namespace Steam.Models.DOTA2
82
{
93
public class MatchHistoryBySequenceNumberMatchPlayerAbilityUpgradeModel
104
{
115
public uint Ability { get; set; }
12-
6+
137
public uint Time { get; set; }
14-
8+
159
public uint Level { get; set; }
1610
}
1711
}
Lines changed: 24 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,55 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
5-
using System.Threading.Tasks;
1+
using System.Collections.Generic;
62

73
namespace Steam.Models.DOTA2
84
{
95
public class MatchHistoryBySequenceNumberMatchPlayerModel
106
{
117
public IList<MatchHistoryBySequenceNumberMatchPlayerAbilityUpgradeModel> AbilityUpgrades { get; set; }
12-
8+
139
public ulong AccountId { get; set; }
14-
10+
1511
public uint PlayerSlot { get; set; }
16-
12+
1713
public uint HeroId { get; set; }
18-
14+
1915
public uint Item0 { get; set; }
20-
16+
2117
public uint Item1 { get; set; }
22-
18+
2319
public uint Item2 { get; set; }
24-
20+
2521
public uint Item3 { get; set; }
26-
22+
2723
public uint Item4 { get; set; }
28-
24+
2925
public uint Item5 { get; set; }
30-
26+
3127
public uint Kills { get; set; }
32-
28+
3329
public uint Deaths { get; set; }
34-
30+
3531
public uint Assists { get; set; }
36-
32+
3733
public uint LeaverStatus { get; set; }
38-
34+
3935
public uint LastHits { get; set; }
40-
36+
4137
public uint Denies { get; set; }
42-
38+
4339
public uint GoldPerMin { get; set; }
44-
40+
4541
public uint XpPerMin { get; set; }
46-
42+
4743
public uint Level { get; set; }
48-
44+
4945
public uint Gold { get; set; }
50-
46+
5147
public uint GoldSpent { get; set; }
52-
48+
5349
public uint HeroDamage { get; set; }
54-
50+
5551
public uint TowerDamage { get; set; }
56-
52+
5753
public uint HeroHealing { get; set; }
5854
}
5955
}

src/Steam.Models/GameEconomy/StoreFilterAllElementModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{
33
public class StoreFilterAllElementModel
44
{
5-
public uint Id { get; set; }
5+
public ulong Id { get; set; }
66

77
public string LocalizedText { get; set; }
88
}

src/Steam.Models/GameEconomy/StoreFilterElementModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ public class StoreFilterElementModel
66

77
public string LocalizedText { get; set; }
88

9-
public uint Id { get; set; }
9+
public ulong Id { get; set; }
1010
}
1111
}

src/Steam.Models/GameEconomy/StorePrefabModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ namespace Steam.Models.GameEconomy
44
{
55
public class StorePrefabModel
66
{
7-
public uint Id { get; set; }
7+
public ulong Id { get; set; }
88

99
public string Name { get; set; }
1010

src/Steam.Models/GameEconomy/StoreTabChildModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ public class StoreTabChildModel
44
{
55
public string Name { get; set; }
66

7-
public string Id { get; set; }
7+
public uint Id { get; set; }
88
}
99
}

src/Steam.Models/GameServers/AccountListModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ public class AccountListModel
2121
/// <summary>Not sure what this indicates. After creating a game server account,
2222
/// I expected to see a time stamp here, but it returns 0 instead.
2323
/// </summary>
24-
public DateTime? LastActionTime { get; set; }
24+
public DateTime LastActionTime { get; set; }
2525
}
2626
}

src/Steam.Models/GameServers/AccountServerModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ public class AccountServerModel
2020

2121
public bool IsExpired { get; set; }
2222

23-
public DateTime? RtLastLogon { get; set; }
23+
public DateTime RtLastLogon { get; set; }
2424
}
2525
}

src/Steam.Models/PublishedFileDetailsModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class PublishedFileDetailsModel
1717

1818
public string FileName { get; set; }
1919

20-
public uint FileSize { get; set; }
20+
public ulong FileSize { get; set; }
2121

2222
public Uri FileUrl { get; set; }
2323

0 commit comments

Comments
 (0)