├── .gitattributes
├── .gitignore
├── README.md
├── ValorantNET.Test
├── Program.cs
└── ValorantNET.Test.csproj
├── ValorantNET.sln
└── ValorantNET
├── Enums.cs
├── Models
├── Account.cs
├── BaseResponse.cs
├── Content.cs
├── Leaderboard.cs
├── LivePresence.cs
├── MMR.cs
├── MMRHistory.cs
├── Match.cs
├── MatchInfo.cs
├── PUUID.cs
├── Player.cs
├── Status.cs
├── StoreFeatured.cs
├── StoreOffer.cs
└── Website.cs
├── ValorantClient.cs
└── ValorantNET.csproj
/.gitattributes:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Set default behavior to automatically normalize line endings.
3 | ###############################################################################
4 | * text=auto
5 |
6 | ###############################################################################
7 | # Set default behavior for command prompt diff.
8 | #
9 | # This is need for earlier builds of msysgit that does not have it on by
10 | # default for csharp files.
11 | # Note: This is only used by command line
12 | ###############################################################################
13 | #*.cs diff=csharp
14 |
15 | ###############################################################################
16 | # Set the merge driver for project and solution files
17 | #
18 | # Merging from the command prompt will add diff markers to the files if there
19 | # are conflicts (Merging from VS is not affected by the settings below, in VS
20 | # the diff markers are never inserted). Diff markers may cause the following
21 | # file extensions to fail to load in VS. An alternative would be to treat
22 | # these files as binary and thus will always conflict and require user
23 | # intervention with every merge. To do so, just uncomment the entries below
24 | ###############################################################################
25 | #*.sln merge=binary
26 | #*.csproj merge=binary
27 | #*.vbproj merge=binary
28 | #*.vcxproj merge=binary
29 | #*.vcproj merge=binary
30 | #*.dbproj merge=binary
31 | #*.fsproj merge=binary
32 | #*.lsproj merge=binary
33 | #*.wixproj merge=binary
34 | #*.modelproj merge=binary
35 | #*.sqlproj merge=binary
36 | #*.wwaproj merge=binary
37 |
38 | ###############################################################################
39 | # behavior for image files
40 | #
41 | # image files are treated as binary by default.
42 | ###############################################################################
43 | #*.jpg binary
44 | #*.png binary
45 | #*.gif binary
46 |
47 | ###############################################################################
48 | # diff behavior for common document formats
49 | #
50 | # Convert binary document formats to text before diffing them. This feature
51 | # is only available from the command line. Turn it on by uncommenting the
52 | # entries below.
53 | ###############################################################################
54 | #*.doc diff=astextplain
55 | #*.DOC diff=astextplain
56 | #*.docx diff=astextplain
57 | #*.DOCX diff=astextplain
58 | #*.dot diff=astextplain
59 | #*.DOT diff=astextplain
60 | #*.pdf diff=astextplain
61 | #*.PDF diff=astextplain
62 | #*.rtf diff=astextplain
63 | #*.RTF diff=astextplain
64 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 | ##
4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
5 |
6 | # User-specific files
7 | *.rsuser
8 | *.suo
9 | *.user
10 | *.userosscache
11 | *.sln.docstates
12 |
13 | # User-specific files (MonoDevelop/Xamarin Studio)
14 | *.userprefs
15 |
16 | # Build results
17 | [Dd]ebug/
18 | [Dd]ebugPublic/
19 | [Rr]elease/
20 | [Rr]eleases/
21 | x64/
22 | x86/
23 | [Aa][Rr][Mm]/
24 | [Aa][Rr][Mm]64/
25 | bld/
26 | [Bb]in/
27 | [Oo]bj/
28 | [Ll]og/
29 |
30 | # Visual Studio 2015/2017 cache/options directory
31 | .vs/
32 | # Uncomment if you have tasks that create the project's static files in wwwroot
33 | #wwwroot/
34 |
35 | # Visual Studio 2017 auto generated files
36 | Generated\ Files/
37 |
38 | # MSTest test Results
39 | [Tt]est[Rr]esult*/
40 | [Bb]uild[Ll]og.*
41 |
42 | # NUNIT
43 | *.VisualState.xml
44 | TestResult.xml
45 |
46 | # Build Results of an ATL Project
47 | [Dd]ebugPS/
48 | [Rr]eleasePS/
49 | dlldata.c
50 |
51 | # Benchmark Results
52 | BenchmarkDotNet.Artifacts/
53 |
54 | # .NET Core
55 | project.lock.json
56 | project.fragment.lock.json
57 | artifacts/
58 |
59 | # StyleCop
60 | StyleCopReport.xml
61 |
62 | # Files built by Visual Studio
63 | *_i.c
64 | *_p.c
65 | *_h.h
66 | *.ilk
67 | *.meta
68 | *.obj
69 | *.iobj
70 | *.pch
71 | *.pdb
72 | *.ipdb
73 | *.pgc
74 | *.pgd
75 | *.rsp
76 | *.sbr
77 | *.tlb
78 | *.tli
79 | *.tlh
80 | *.tmp
81 | *.tmp_proj
82 | *_wpftmp.csproj
83 | *.log
84 | *.vspscc
85 | *.vssscc
86 | .builds
87 | *.pidb
88 | *.svclog
89 | *.scc
90 |
91 | # Chutzpah Test files
92 | _Chutzpah*
93 |
94 | # Visual C++ cache files
95 | ipch/
96 | *.aps
97 | *.ncb
98 | *.opendb
99 | *.opensdf
100 | *.sdf
101 | *.cachefile
102 | *.VC.db
103 | *.VC.VC.opendb
104 |
105 | # Visual Studio profiler
106 | *.psess
107 | *.vsp
108 | *.vspx
109 | *.sap
110 |
111 | # Visual Studio Trace Files
112 | *.e2e
113 |
114 | # TFS 2012 Local Workspace
115 | $tf/
116 |
117 | # Guidance Automation Toolkit
118 | *.gpState
119 |
120 | # ReSharper is a .NET coding add-in
121 | _ReSharper*/
122 | *.[Rr]e[Ss]harper
123 | *.DotSettings.user
124 |
125 | # JustCode is a .NET coding add-in
126 | .JustCode
127 |
128 | # TeamCity is a build add-in
129 | _TeamCity*
130 |
131 | # DotCover is a Code Coverage Tool
132 | *.dotCover
133 |
134 | # AxoCover is a Code Coverage Tool
135 | .axoCover/*
136 | !.axoCover/settings.json
137 |
138 | # Visual Studio code coverage results
139 | *.coverage
140 | *.coveragexml
141 |
142 | # NCrunch
143 | _NCrunch_*
144 | .*crunch*.local.xml
145 | nCrunchTemp_*
146 |
147 | # MightyMoose
148 | *.mm.*
149 | AutoTest.Net/
150 |
151 | # Web workbench (sass)
152 | .sass-cache/
153 |
154 | # Installshield output folder
155 | [Ee]xpress/
156 |
157 | # DocProject is a documentation generator add-in
158 | DocProject/buildhelp/
159 | DocProject/Help/*.HxT
160 | DocProject/Help/*.HxC
161 | DocProject/Help/*.hhc
162 | DocProject/Help/*.hhk
163 | DocProject/Help/*.hhp
164 | DocProject/Help/Html2
165 | DocProject/Help/html
166 |
167 | # Click-Once directory
168 | publish/
169 |
170 | # Publish Web Output
171 | *.[Pp]ublish.xml
172 | *.azurePubxml
173 | # Note: Comment the next line if you want to checkin your web deploy settings,
174 | # but database connection strings (with potential passwords) will be unencrypted
175 | *.pubxml
176 | *.publishproj
177 |
178 | # Microsoft Azure Web App publish settings. Comment the next line if you want to
179 | # checkin your Azure Web App publish settings, but sensitive information contained
180 | # in these scripts will be unencrypted
181 | PublishScripts/
182 |
183 | # NuGet Packages
184 | *.nupkg
185 | # The packages folder can be ignored because of Package Restore
186 | **/[Pp]ackages/*
187 | # except build/, which is used as an MSBuild target.
188 | !**/[Pp]ackages/build/
189 | # Uncomment if necessary however generally it will be regenerated when needed
190 | #!**/[Pp]ackages/repositories.config
191 | # NuGet v3's project.json files produces more ignorable files
192 | *.nuget.props
193 | *.nuget.targets
194 |
195 | # Microsoft Azure Build Output
196 | csx/
197 | *.build.csdef
198 |
199 | # Microsoft Azure Emulator
200 | ecf/
201 | rcf/
202 |
203 | # Windows Store app package directories and files
204 | AppPackages/
205 | BundleArtifacts/
206 | Package.StoreAssociation.xml
207 | _pkginfo.txt
208 | *.appx
209 |
210 | # Visual Studio cache files
211 | # files ending in .cache can be ignored
212 | *.[Cc]ache
213 | # but keep track of directories ending in .cache
214 | !?*.[Cc]ache/
215 |
216 | # Others
217 | ClientBin/
218 | ~$*
219 | *~
220 | *.dbmdl
221 | *.dbproj.schemaview
222 | *.jfm
223 | *.pfx
224 | *.publishsettings
225 | orleans.codegen.cs
226 |
227 | # Including strong name files can present a security risk
228 | # (https://github.com/github/gitignore/pull/2483#issue-259490424)
229 | #*.snk
230 |
231 | # Since there are multiple workflows, uncomment next line to ignore bower_components
232 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
233 | #bower_components/
234 |
235 | # RIA/Silverlight projects
236 | Generated_Code/
237 |
238 | # Backup & report files from converting an old project file
239 | # to a newer Visual Studio version. Backup files are not needed,
240 | # because we have git ;-)
241 | _UpgradeReport_Files/
242 | Backup*/
243 | UpgradeLog*.XML
244 | UpgradeLog*.htm
245 | ServiceFabricBackup/
246 | *.rptproj.bak
247 |
248 | # SQL Server files
249 | *.mdf
250 | *.ldf
251 | *.ndf
252 |
253 | # Business Intelligence projects
254 | *.rdl.data
255 | *.bim.layout
256 | *.bim_*.settings
257 | *.rptproj.rsuser
258 | *- Backup*.rdl
259 |
260 | # Microsoft Fakes
261 | FakesAssemblies/
262 |
263 | # GhostDoc plugin setting file
264 | *.GhostDoc.xml
265 |
266 | # Node.js Tools for Visual Studio
267 | .ntvs_analysis.dat
268 | node_modules/
269 |
270 | # Visual Studio 6 build log
271 | *.plg
272 |
273 | # Visual Studio 6 workspace options file
274 | *.opt
275 |
276 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
277 | *.vbw
278 |
279 | # Visual Studio LightSwitch build output
280 | **/*.HTMLClient/GeneratedArtifacts
281 | **/*.DesktopClient/GeneratedArtifacts
282 | **/*.DesktopClient/ModelManifest.xml
283 | **/*.Server/GeneratedArtifacts
284 | **/*.Server/ModelManifest.xml
285 | _Pvt_Extensions
286 |
287 | # Paket dependency manager
288 | .paket/paket.exe
289 | paket-files/
290 |
291 | # FAKE - F# Make
292 | .fake/
293 |
294 | # JetBrains Rider
295 | .idea/
296 | *.sln.iml
297 |
298 | # CodeRush personal settings
299 | .cr/personal
300 |
301 | # Python Tools for Visual Studio (PTVS)
302 | __pycache__/
303 | *.pyc
304 |
305 | # Cake - Uncomment if you are using it
306 | # tools/**
307 | # !tools/packages.config
308 |
309 | # Tabs Studio
310 | *.tss
311 |
312 | # Telerik's JustMock configuration file
313 | *.jmconfig
314 |
315 | # BizTalk build output
316 | *.btp.cs
317 | *.btm.cs
318 | *.odx.cs
319 | *.xsd.cs
320 |
321 | # OpenCover UI analysis results
322 | OpenCover/
323 |
324 | # Azure Stream Analytics local run output
325 | ASALocalRun/
326 |
327 | # MSBuild Binary and Structured Log
328 | *.binlog
329 |
330 | # NVidia Nsight GPU debugger configuration file
331 | *.nvuser
332 |
333 | # MFractors (Xamarin productivity tool) working folder
334 | .mfractor/
335 |
336 | # Local History for Visual Studio
337 | .localhistory/
338 |
339 | # BeatPulse healthcheck temp database
340 | healthchecksdb
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Valorant .NET - 1.6.2
2 | [](https://www.fuget.org/packages/valorant.net/1.6.2)
3 | [](https://www.nuget.org/packages/Valorant.NET)
4 |
5 | The available methods follow this [project](https://github.com/Henrik-3/unofficial-valorant-api)
6 |
7 | # Donation
8 | This project is possible thanks to [@Henrik-3](https://github.com/Henrik-3/) that host the API service. So, I ask you to support him.
9 | More info at this [link](https://github.com/Henrik-3/unofficial-valorant-api#other-stuff)
10 |
11 | # Requirements
12 | This library use .NET Standard 2.0
13 |
14 | |Architecture|Version|
15 | |-|-|
16 | | .NET Core | 2.0 |
17 | | .NET Framework | 4.6.1 |
18 |
19 | [Check](https://docs.microsoft.com/en-us/dotnet/standard/net-standard) the official Microsoft documentation for more info
20 |
21 | # Nuget Installation
22 | ```Install-Package Valorant.NET -Version 1.6.2```
23 |
24 | Or searching on Nuget ```Valorant.NET```
25 |
26 |
27 | # Contributors
28 | [@Henrik-3](https://github.com/Henrik-3/unofficial-valorant-api) for service hosting and documentation
29 |
--------------------------------------------------------------------------------
/ValorantNET.Test/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Linq;
3 | using System.Reflection;
4 | using System.Threading.Tasks;
5 | using static ValorantNET.Enums;
6 |
7 | namespace ValorantNET.Test
8 | {
9 | class Program
10 | {
11 | private static ValorantClient ValorantClient;
12 | private static string username = "Teo230";
13 | private static string tag = "EUW";
14 | private static string matchId = "16580950-58f8-4eac-9642-a04468fa94c9";
15 | private static Regions region = Regions.AP;
16 |
17 | static void Main(string[] args)
18 | {
19 | ValorantClient = new ValorantClient(username,tag,region);
20 | //GetStatsV2();
21 | //GetMatches();
22 | //GetMatcheInfo();
23 | GetPUUID();
24 | //GetLeaderboard();
25 | //GetPlayerStatus();
26 | Console.ReadKey();
27 | }
28 |
29 | private static void GetStats()
30 | {
31 | var task = new Task(async () =>
32 | {
33 | var result = await ValorantClient.GetStatsAsync();
34 | if (result != null)
35 | ShowProp(result);
36 | });
37 | task.Start();
38 | }
39 |
40 | private static void GetStatsV2()
41 | {
42 | var task = new Task(async () =>
43 | {
44 | var result = await ValorantClient.GetStatsAsync();
45 | if (result != null)
46 | ShowProp(result);
47 | });
48 | task.Start();
49 | }
50 |
51 | private static void GetMatches()
52 | {
53 | var task = new Task(async () =>
54 | {
55 | var result = await ValorantClient.GetMatchesAsync();
56 | if(result != null)
57 | ShowProp(result);
58 | });
59 | task.Start();
60 | }
61 |
62 | private static void GetMatcheInfo()
63 | {
64 | var task = new Task(async () =>
65 | {
66 | var result = await ValorantClient.GetMatchInfoAsync(matchId);
67 | if (result != null)
68 | ShowProp(result);
69 | });
70 | task.Start();
71 | }
72 |
73 | private static void GetPUUID()
74 | {
75 | var task = new Task(async () =>
76 | {
77 | var result = await ValorantClient.GetPUUIDAsync();
78 | if (result != null)
79 | ShowProp(result.data.puuid);
80 | });
81 | task.Start();
82 | }
83 |
84 | private static void GetLeaderboard()
85 | {
86 | var task = new Task(async () =>
87 | {
88 | var result = await ValorantClient.GetLeaderboardAsync();
89 | if (result != null)
90 | ShowProp(result);
91 | });
92 | task.Start();
93 | }
94 |
95 | private static void GetPlayerStatus()
96 | {
97 | var task = new Task(async () =>
98 | {
99 | var result = await ValorantClient.GetPlayerMatchStatusAsync();
100 | if (result != null)
101 | ShowProp(result);
102 | });
103 | task.Start();
104 | }
105 |
106 | private static void ShowProp(object obj)
107 | {
108 | foreach (var p in obj.GetType().GetProperties().Where(p => !p.GetGetMethod().GetParameters().Any()))
109 | {
110 | Console.WriteLine(p.GetValue(obj, null));
111 | }
112 | }
113 | }
114 | }
115 |
--------------------------------------------------------------------------------
/ValorantNET.Test/ValorantNET.Test.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Exe
5 | netcoreapp3.1
6 | ValorantNET.Test.Program
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/ValorantNET.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 16
4 | VisualStudioVersion = 16.0.30907.101
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ValorantNET", "ValorantNET\ValorantNET.csproj", "{44B3817A-E652-4704-A7A6-5EE5E54B10D4}"
7 | EndProject
8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ValorantNET.Test", "ValorantNET.Test\ValorantNET.Test.csproj", "{8BB1A6E7-52C2-407C-AC89-3A897EBFA985}"
9 | EndProject
10 | Global
11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
12 | Debug|Any CPU = Debug|Any CPU
13 | Release|Any CPU = Release|Any CPU
14 | EndGlobalSection
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
16 | {44B3817A-E652-4704-A7A6-5EE5E54B10D4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17 | {44B3817A-E652-4704-A7A6-5EE5E54B10D4}.Debug|Any CPU.Build.0 = Debug|Any CPU
18 | {44B3817A-E652-4704-A7A6-5EE5E54B10D4}.Release|Any CPU.ActiveCfg = Release|Any CPU
19 | {44B3817A-E652-4704-A7A6-5EE5E54B10D4}.Release|Any CPU.Build.0 = Release|Any CPU
20 | {8BB1A6E7-52C2-407C-AC89-3A897EBFA985}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21 | {8BB1A6E7-52C2-407C-AC89-3A897EBFA985}.Debug|Any CPU.Build.0 = Debug|Any CPU
22 | {8BB1A6E7-52C2-407C-AC89-3A897EBFA985}.Release|Any CPU.ActiveCfg = Release|Any CPU
23 | {8BB1A6E7-52C2-407C-AC89-3A897EBFA985}.Release|Any CPU.Build.0 = Release|Any CPU
24 | EndGlobalSection
25 | GlobalSection(SolutionProperties) = preSolution
26 | HideSolutionNode = FALSE
27 | EndGlobalSection
28 | GlobalSection(ExtensibilityGlobals) = postSolution
29 | SolutionGuid = {B2AC5D46-AD96-4A1A-9D8B-945516B18FC3}
30 | EndGlobalSection
31 | EndGlobal
32 |
--------------------------------------------------------------------------------
/ValorantNET/Enums.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace ValorantNET
6 | {
7 | public class Enums
8 | {
9 | public enum Regions
10 | {
11 | AP,
12 | //BR,
13 | EU,
14 | //LATAM,
15 | NA,
16 | KR,
17 | }
18 |
19 | public enum CountryCodes
20 | {
21 | en_us,
22 | en_gb,
23 | de_de,
24 | es_es,
25 | fr_fr,
26 | it_it,
27 | ru_ru,
28 | tr_tr,
29 | es_mx,
30 | ja_jp,
31 | ko_kr,
32 | pt_br
33 | }
34 |
35 | public enum WebsiteFilter
36 | {
37 | game_updates,
38 | dev,
39 | esports,
40 | announcements
41 | }
42 |
43 | public enum MatchFilter
44 | {
45 | competitive,
46 | spikerush,
47 | deathmatch,
48 | unrated
49 | }
50 |
51 | public enum EpisodeFilter
52 | {
53 | e2a1,
54 | e1a3,
55 | e1a2,
56 | e1a1
57 | }
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/ValorantNET/Models/Account.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace ValorantNET.Models
6 | {
7 | public class Account : BaseResponse
8 | {
9 | public Data data { get; set; }
10 |
11 | public class Data
12 | {
13 | public string puuid { get; set; }
14 | public string region { get; set; }
15 | public string account_level { get; set; }
16 | public string name { get; set; }
17 | public string tag { get; set; }
18 | public Card card { get; set; }
19 | public string last_update { get; set; }
20 | public string last_update_raw { get; set; }
21 | }
22 |
23 | public class Card
24 | {
25 | public string small { get; set; }
26 | public string large { get; set; }
27 | public string wide { get; set; }
28 | public string id { get; set; }
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/ValorantNET/Models/BaseResponse.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace ValorantNET.Models
6 | {
7 | public class BaseResponse
8 | {
9 | public string status { get; set; }
10 | public string message { get; set; }
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/ValorantNET/Models/Content.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace ValorantNET.Models
6 | {
7 | public class Content : BaseResponse
8 | {
9 | public string region { get; set; }
10 | public Data data { get; set; }
11 |
12 | public class Data
13 | {
14 | public Raw raw { get; set; }
15 | }
16 |
17 | public class Raw
18 | {
19 | public Character[] Characters { get; set; }
20 | public Map[] Maps { get; set; }
21 | public Chroma[] Chromas { get; set; }
22 | public Skin[] Skins { get; set; }
23 | public Skinlevel[] SkinLevels { get; set; }
24 | public Attachment[] Attachments { get; set; }
25 | public Equip[] Equips { get; set; }
26 | public Theme[] Themes { get; set; }
27 | public Gamemode[] GameModes { get; set; }
28 | public Spray[] Sprays { get; set; }
29 | public Spraylevel[] SprayLevels { get; set; }
30 | public Charm[] Charms { get; set; }
31 | public Charmlevel[] CharmLevels { get; set; }
32 | public Playercard[] PlayerCards { get; set; }
33 | public Playertitle[] PlayerTitles { get; set; }
34 | public Storefrontitem[] StorefrontItems { get; set; }
35 | public Season[] Seasons { get; set; }
36 | public Competitiveseason[] CompetitiveSeasons { get; set; }
37 | }
38 |
39 | public class Character
40 | {
41 | public string Name { get; set; }
42 | public string ID { get; set; }
43 | public string AssetName { get; set; }
44 | public bool IsEnabled { get; set; }
45 | }
46 |
47 | public class Map
48 | {
49 | public string Name { get; set; }
50 | public string ID { get; set; }
51 | public string AssetName { get; set; }
52 | public bool IsEnabled { get; set; }
53 | }
54 |
55 | public class Chroma
56 | {
57 | public string Name { get; set; }
58 | public string ID { get; set; }
59 | public string AssetName { get; set; }
60 | public bool IsEnabled { get; set; }
61 | }
62 |
63 | public class Skin
64 | {
65 | public string Name { get; set; }
66 | public string ID { get; set; }
67 | public string AssetName { get; set; }
68 | public bool IsEnabled { get; set; }
69 | }
70 |
71 | public class Skinlevel
72 | {
73 | public string Name { get; set; }
74 | public string ID { get; set; }
75 | public string AssetName { get; set; }
76 | public bool IsEnabled { get; set; }
77 | }
78 |
79 | public class Attachment
80 | {
81 | public string Name { get; set; }
82 | public string ID { get; set; }
83 | public string AssetName { get; set; }
84 | public bool IsEnabled { get; set; }
85 | }
86 |
87 | public class Equip
88 | {
89 | public string Name { get; set; }
90 | public string ID { get; set; }
91 | public string AssetName { get; set; }
92 | public bool IsEnabled { get; set; }
93 | }
94 |
95 | public class Theme
96 | {
97 | public string Name { get; set; }
98 | public string ID { get; set; }
99 | public string AssetName { get; set; }
100 | public bool IsEnabled { get; set; }
101 | }
102 |
103 | public class Gamemode
104 | {
105 | public string Name { get; set; }
106 | public string ID { get; set; }
107 | public string AssetName { get; set; }
108 | public bool IsEnabled { get; set; }
109 | }
110 |
111 | public class Spray
112 | {
113 | public string Name { get; set; }
114 | public string ID { get; set; }
115 | public string AssetName { get; set; }
116 | public bool IsEnabled { get; set; }
117 | }
118 |
119 | public class Spraylevel
120 | {
121 | public string Name { get; set; }
122 | public string ID { get; set; }
123 | public string AssetName { get; set; }
124 | public bool IsEnabled { get; set; }
125 | }
126 |
127 | public class Charm
128 | {
129 | public string Name { get; set; }
130 | public string ID { get; set; }
131 | public string AssetName { get; set; }
132 | public bool IsEnabled { get; set; }
133 | }
134 |
135 | public class Charmlevel
136 | {
137 | public string Name { get; set; }
138 | public string ID { get; set; }
139 | public string AssetName { get; set; }
140 | public bool IsEnabled { get; set; }
141 | }
142 |
143 | public class Playercard
144 | {
145 | public string Name { get; set; }
146 | public string ID { get; set; }
147 | public string AssetName { get; set; }
148 | public bool IsEnabled { get; set; }
149 | }
150 |
151 | public class Playertitle
152 | {
153 | public string Name { get; set; }
154 | public string ID { get; set; }
155 | public string AssetName { get; set; }
156 | public bool IsEnabled { get; set; }
157 | }
158 |
159 | public class Storefrontitem
160 | {
161 | public string Name { get; set; }
162 | public string ID { get; set; }
163 | public string AssetName { get; set; }
164 | public bool IsEnabled { get; set; }
165 | }
166 |
167 | public class Season
168 | {
169 | public string ID { get; set; }
170 | public string Name { get; set; }
171 | public string Type { get; set; }
172 | public DateTime StartTime { get; set; }
173 | public DateTime EndTime { get; set; }
174 | public bool IsEnabled { get; set; }
175 | public bool IsActive { get; set; }
176 | public bool DevelopmentOnly { get; set; }
177 | }
178 |
179 | public class Competitiveseason
180 | {
181 | public string ID { get; set; }
182 | public string SeasonID { get; set; }
183 | public DateTime StartTime { get; set; }
184 | public DateTime EndTime { get; set; }
185 | public bool DevelopmentOnly { get; set; }
186 | }
187 | }
188 | }
189 |
--------------------------------------------------------------------------------
/ValorantNET/Models/Leaderboard.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace ValorantNET.Models
6 | {
7 | public class Leaderboard : BaseResponse
8 | {
9 | public List data { get; set; }
10 |
11 | public class Data
12 | {
13 | public string Subject { get; set; }
14 | public string GameName { get; set; }
15 | public string TagLine { get; set; }
16 | public int LeaderboardRank { get; set; }
17 | public int RankedRating { get; set; }
18 | public int NumberOfWins { get; set; }
19 | public string PlayerCardID { get; set; }
20 | public string TitleID { get; set; }
21 | public bool IsBanned { get; set; }
22 | public bool IsAnonymized { get; set; }
23 | }
24 |
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/ValorantNET/Models/LivePresence.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace ValorantNET.Models
6 | {
7 | public class LivePresence : BaseResponse
8 | {
9 | public Data data { get; set; }
10 |
11 | public class Data
12 | {
13 | public string current_selected_gamemode { get; set; }
14 | public string current_state { get; set; }
15 | public string party_accessibility { get; set; }
16 | public string client_version { get; set; }
17 | public int party_size { get; set; }
18 | public string party_id { get; set; }
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/ValorantNET/Models/MMR.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace ValorantNET.Models
6 | {
7 | public class MMR : BaseResponse
8 | {
9 | public class Data
10 | {
11 | public Current_Data current_data { get; set; }
12 | public By_Season by_season { get; set; }
13 | }
14 |
15 | public class Current_Data
16 | {
17 | public int currenttier { get; set; }
18 | public string currenttierpatched { get; set; }
19 | public int ranking_in_tier { get; set; }
20 | public int mmr_change_to_last_game { get; set; }
21 | public int elo { get; set; }
22 | public int games_needed_for_rating { get; set; }
23 | }
24 |
25 | public class By_Season
26 | {
27 | public E2a1 e2a1 { get; set; }
28 | public E1a3 e1a3 { get; set; }
29 | public E1a2 e1a2 { get; set; }
30 | public E1a1 e1a1 { get; set; }
31 | }
32 |
33 | public class Act_Rank_Wins
34 | {
35 | public string patched_tier { get; set; }
36 | public int tier { get; set; }
37 | }
38 |
39 | public class E2a1
40 | {
41 | public int wins { get; set; }
42 | public int number_of_games { get; set; }
43 | public int final_rank { get; set; }
44 | public string final_rank_patched { get; set; }
45 | public List act_rank_wins { get; set; }
46 | }
47 |
48 | public class E1a3
49 | {
50 | public int wins { get; set; }
51 | public int number_of_games { get; set; }
52 | public int final_rank { get; set; }
53 | public string final_rank_patched { get; set; }
54 | public List act_rank_wins { get; set; }
55 | }
56 |
57 | public class E1a2
58 | {
59 | public int wins { get; set; }
60 | public int number_of_games { get; set; }
61 | public int final_rank { get; set; }
62 | public string final_rank_patched { get; set; }
63 | public List act_rank_wins { get; set; }
64 | }
65 |
66 | public class E1a1
67 | {
68 | public int wins { get; set; }
69 | public int number_of_games { get; set; }
70 | public int final_rank { get; set; }
71 | public string final_rank_patched { get; set; }
72 | public List act_rank_wins { get; set; }
73 | }
74 | }
75 | }
76 |
--------------------------------------------------------------------------------
/ValorantNET/Models/MMRHistory.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace ValorantNET.Models
6 | {
7 | public class MMRHistory : BaseResponse
8 | {
9 | public Data data { get; set; }
10 |
11 | public class Data
12 | {
13 | public int currenttier { get; set; }
14 | public string currenttierpatched { get; set; }
15 | public int ranking_in_tier { get; set; }
16 | public int mmr_change_to_last_game { get; set; }
17 | public int elo { get; set; }
18 | public string date { get; set; }
19 | public long date_raw { get; set; }
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/ValorantNET/Models/Match.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace ValorantNET.Models
6 | {
7 | public class Match : BaseResponse
8 | {
9 | public Data[] data { get; set; }
10 |
11 | public class Data
12 | {
13 | public Metadata metadata { get; set; }
14 | public PlayerData players { get; set; }
15 | }
16 |
17 | public class Metadata
18 | {
19 | public string map { get; set; }
20 | public string game_version { get; set; }
21 | public string game_length { get; set; }
22 | public string game_start { get; set; }
23 | public string game_start_patched { get; set; }
24 | public string rounds_played { get; set; }
25 | public string mode { get; set; }
26 | public string mode_id { get; set; }
27 | public string queue { get; set; }
28 | public string season_id { get; set; }
29 | public string platform { get; set; }
30 | public string matchid { get; set; }
31 | public PremierInfo premier_info { get; set; }
32 | public string region { get; set; }
33 | public string cluster { get; set; }
34 | }
35 | public class PremierInfo
36 | {
37 | public string tournament_id { get; set; }
38 | public string matchup_id { get; set; }
39 | }
40 | public class PlayerData
41 | {
42 | public Players[] all_players { get; set; }
43 | }
44 | public class Players
45 | {
46 | public string puuid { get; set; }
47 | public string name { get; set; }
48 | public string tag { get; set; }
49 | public string team { get; set; }
50 | public string level { get; set; }
51 | public string character { get; set; }
52 | public string currenttier { get; set; }
53 | public string currenttier_patched { get; set; }
54 | public string player_card { get; set; }
55 | public string player_title { get; set; }
56 | public string party_id { get; set; }
57 | public SessionPlaytime session_playtime { get; set; }
58 | public Assets assets { get; set; }
59 | public Behavior behaviour { get; set; }
60 | public AbilityCasts ability_casts { get; set; }
61 | public Stats stats { get; set; }
62 | }
63 | public class SessionPlaytime
64 | {
65 | public string minutes { get; set; }
66 | public string seconds { get; set; }
67 | public string milliseconds { get; set; }
68 | }
69 | public class Assets
70 | {
71 | public Card card { get; set; }
72 | public Agent agent { get; set; }
73 | }
74 | public class Card
75 | {
76 | public string small { get; set; }
77 | public string large { get; set; }
78 | public string wide { get; set; }
79 | }
80 | public class Agent
81 | {
82 | public string small { get; set; }
83 | public string full { get; set; }
84 | public string bust { get; set; }
85 | public string killfeed { get; set; }
86 | }
87 |
88 | public class Behavior
89 | {
90 | public string afk_rounds { get; set; }
91 | public FriendlyFireData friendly_fire { get; set; }
92 | public string rounds_in_spawn { get; set; }
93 | }
94 | public class FriendlyFireData
95 | {
96 | public string incoming { get; set; }
97 | public string outgoing { get; set; }
98 | }
99 | public class AbilityCasts
100 | {
101 | public string c_cast { get; set; }
102 | public string q_cast { get; set; }
103 | public string e_cast { get; set; }
104 | public string x_cast { get; set; }
105 | }
106 | public class Stats
107 | {
108 | public string score { get; set; }
109 | public string kills { get; set; }
110 | public string deaths { get; set; }
111 | public string assists { get; set; }
112 | public string bodyshots { get; set; }
113 | public string headshots { get; set; }
114 | public string legshots { get; set; }
115 | }
116 | }
117 | }
--------------------------------------------------------------------------------
/ValorantNET/Models/MatchInfo.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace ValorantNET.Models
6 | {
7 | public class MatchInfo : BaseResponse
8 | {
9 | public Metadata metadata { get; set; }
10 | public Data data { get; set; }
11 |
12 | public class Metadata
13 | {
14 | public string gameid { get; set; }
15 | public string modeimage { get; set; }
16 | public string modename { get; set; }
17 | public int duration { get; set; }
18 | public DateTime timestamp { get; set; }
19 | public string map { get; set; }
20 | public int rounds { get; set; }
21 | }
22 |
23 | public class Data
24 | {
25 | public Teams teams { get; set; }
26 | public Player player { get; set; }
27 | }
28 |
29 | public class Teams
30 | {
31 | public Blue blue { get; set; }
32 | public Red red { get; set; }
33 | }
34 |
35 | public class Blue
36 | {
37 | public bool haswon { get; set; }
38 | public int roundswon { get; set; }
39 | public int teamkills { get; set; }
40 | public int teamdeaths { get; set; }
41 | public int teamassists { get; set; }
42 | public int teamdamage { get; set; }
43 | }
44 |
45 | public class Red
46 | {
47 | public bool haswon { get; set; }
48 | public int roundswon { get; set; }
49 | public int teamkills { get; set; }
50 | public int teamdeaths { get; set; }
51 | public int teamassists { get; set; }
52 | public int teamdamage { get; set; }
53 | }
54 |
55 | public class Player
56 | {
57 | public Byteam byteam { get; set; }
58 | public Unsorted[] unsorted { get; set; }
59 | }
60 |
61 | public class Byteam
62 | {
63 | public Blue1[] blue { get; set; }
64 | public Red1[] red { get; set; }
65 | }
66 |
67 | public class Blue1
68 | {
69 | public string user { get; set; }
70 | public string agentused { get; set; }
71 | public string rank { get; set; }
72 | public string rankimage { get; set; }
73 | public string scoreaverage { get; set; }
74 | public string killsperround { get; set; }
75 | public Kda kda { get; set; }
76 | public int damage { get; set; }
77 | public string damageperround { get; set; }
78 | public Multiplekills multiplekills { get; set; }
79 | }
80 |
81 | public class Kda
82 | {
83 | public string kda { get; set; }
84 | public string kdratio { get; set; }
85 | public int kills { get; set; }
86 | public int deaths { get; set; }
87 | public int assists { get; set; }
88 | }
89 |
90 | public class Multiplekills
91 | {
92 | public int triple { get; set; }
93 | public int quadra { get; set; }
94 | public int penta { get; set; }
95 | }
96 |
97 | public class Red1
98 | {
99 | public string user { get; set; }
100 | public string agentused { get; set; }
101 | public string rank { get; set; }
102 | public string rankimage { get; set; }
103 | public string scoreaverage { get; set; }
104 | public string killsperround { get; set; }
105 | public Kda1 kda { get; set; }
106 | public int damage { get; set; }
107 | public string damageperround { get; set; }
108 | public Multiplekills1 multiplekills { get; set; }
109 | }
110 |
111 | public class Kda1
112 | {
113 | public string kda { get; set; }
114 | public string kdratio { get; set; }
115 | public int kills { get; set; }
116 | public int deaths { get; set; }
117 | public int assists { get; set; }
118 | }
119 |
120 | public class Multiplekills1
121 | {
122 | public int triple { get; set; }
123 | public int quadra { get; set; }
124 | public int penta { get; set; }
125 | }
126 |
127 | public class Unsorted
128 | {
129 | public string user { get; set; }
130 | public string agentused { get; set; }
131 | public string rank { get; set; }
132 | public string rankimage { get; set; }
133 | public string scoreaverage { get; set; }
134 | public string killsperround { get; set; }
135 | public Kda2 kda { get; set; }
136 | public int damage { get; set; }
137 | public string damageperround { get; set; }
138 | public Multiplekills2 multiplekills { get; set; }
139 | }
140 |
141 | public class Kda2
142 | {
143 | public string kda { get; set; }
144 | public string kdratio { get; set; }
145 | public int kills { get; set; }
146 | public int deaths { get; set; }
147 | public int assists { get; set; }
148 | }
149 |
150 | public class Multiplekills2
151 | {
152 | public int triple { get; set; }
153 | public int quadra { get; set; }
154 | public int penta { get; set; }
155 | }
156 | }
157 | }
158 |
--------------------------------------------------------------------------------
/ValorantNET/Models/PUUID.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace ValorantNET.Models
6 | {
7 | public class PUUID : BaseResponse
8 | {
9 | public Data data { get; set; }
10 |
11 | public class Data
12 | {
13 | public string puuid { get; set; }
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/ValorantNET/Models/Player.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace ValorantNET.Models
6 | {
7 | public class Player : BaseResponse
8 | {
9 | public string user { get; set; }
10 | public Stats stats { get; set; }
11 | public List agents { get; set; }
12 | public List