├── .gitattributes ├── .gitignore ├── FifaSharp.sln ├── FifaSharp ├── Api │ ├── EndpointDirectory.cs │ ├── Enums │ │ ├── AcademyEligibilityAttribute.cs │ │ ├── EvolutionsStatus.cs │ │ └── FutItemType.cs │ ├── Models │ │ ├── BidResult.cs │ │ ├── ClubSearchQuery.cs │ │ ├── ClubSearchResult.cs │ │ ├── EvoRequirement.cs │ │ ├── Evolutions.cs │ │ ├── FeaturedSquads.cs │ │ ├── FutAccountInfo.cs │ │ ├── FutMessages.cs │ │ ├── FutSquad.cs │ │ ├── Identity.cs │ │ ├── ListTransferStatus.cs │ │ ├── ObjectiveGroups.cs │ │ ├── PlayerAttributes.cs │ │ ├── PlayerData.cs │ │ ├── PlayerItemData.cs │ │ ├── PurchasedItems.cs │ │ ├── RushEvents.cs │ │ ├── SbcChallenges.cs │ │ ├── SeasonPass.cs │ │ ├── SentTransferListItems.cs │ │ ├── SquadBuildingChallenges.cs │ │ ├── Tradepile.cs │ │ ├── Transfer.cs │ │ ├── TransferMarket.cs │ │ ├── TransferMarketQuery.cs │ │ ├── UnassignedItems.cs │ │ └── UpdateTransferListStatus.cs │ └── Schema │ │ ├── AccessTokenResponse.cs │ │ ├── ApplyItemBody.cs │ │ ├── AuthReqBody.cs │ │ ├── ListItemBody.cs │ │ └── SidTokenResponse.cs ├── Authentication │ ├── FutAccessToken.cs │ ├── FutAccountSession.cs │ ├── FutAuthClient.cs │ └── FutAuthenticator.cs ├── EA │ └── Identity.cs ├── FifaSharp.csproj └── FutClient.cs ├── FifaSharpTests ├── FifaSharpTests.csproj ├── LoginDetails.cs ├── Program.cs └── Snipex.cs ├── LICENSE.txt └── README.md /.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 | # Mono auto generated files 17 | mono_crash.* 18 | 19 | # Build results 20 | [Dd]ebug/ 21 | [Dd]ebugPublic/ 22 | [Rr]elease/ 23 | [Rr]eleases/ 24 | x64/ 25 | x86/ 26 | [Ww][Ii][Nn]32/ 27 | [Aa][Rr][Mm]/ 28 | [Aa][Rr][Mm]64/ 29 | bld/ 30 | [Bb]in/ 31 | [Oo]bj/ 32 | [Oo]ut/ 33 | [Ll]og/ 34 | [Ll]ogs/ 35 | 36 | # Visual Studio 2015/2017 cache/options directory 37 | .vs/ 38 | # Uncomment if you have tasks that create the project's static files in wwwroot 39 | #wwwroot/ 40 | 41 | # Visual Studio 2017 auto generated files 42 | Generated\ Files/ 43 | 44 | # MSTest test Results 45 | [Tt]est[Rr]esult*/ 46 | [Bb]uild[Ll]og.* 47 | 48 | # NUnit 49 | *.VisualState.xml 50 | TestResult.xml 51 | nunit-*.xml 52 | 53 | # Build Results of an ATL Project 54 | [Dd]ebugPS/ 55 | [Rr]eleasePS/ 56 | dlldata.c 57 | 58 | # Benchmark Results 59 | BenchmarkDotNet.Artifacts/ 60 | 61 | # .NET Core 62 | project.lock.json 63 | project.fragment.lock.json 64 | artifacts/ 65 | 66 | # ASP.NET Scaffolding 67 | ScaffoldingReadMe.txt 68 | 69 | # StyleCop 70 | StyleCopReport.xml 71 | 72 | # Files built by Visual Studio 73 | *_i.c 74 | *_p.c 75 | *_h.h 76 | *.ilk 77 | *.meta 78 | *.obj 79 | *.iobj 80 | *.pch 81 | *.pdb 82 | *.ipdb 83 | *.pgc 84 | *.pgd 85 | *.rsp 86 | *.sbr 87 | *.tlb 88 | *.tli 89 | *.tlh 90 | *.tmp 91 | *.tmp_proj 92 | *_wpftmp.csproj 93 | *.log 94 | *.vspscc 95 | *.vssscc 96 | .builds 97 | *.pidb 98 | *.svclog 99 | *.scc 100 | 101 | # Chutzpah Test files 102 | _Chutzpah* 103 | 104 | # Visual C++ cache files 105 | ipch/ 106 | *.aps 107 | *.ncb 108 | *.opendb 109 | *.opensdf 110 | *.sdf 111 | *.cachefile 112 | *.VC.db 113 | *.VC.VC.opendb 114 | 115 | # Visual Studio profiler 116 | *.psess 117 | *.vsp 118 | *.vspx 119 | *.sap 120 | 121 | # Visual Studio Trace Files 122 | *.e2e 123 | 124 | # TFS 2012 Local Workspace 125 | $tf/ 126 | 127 | # Guidance Automation Toolkit 128 | *.gpState 129 | 130 | # ReSharper is a .NET coding add-in 131 | _ReSharper*/ 132 | *.[Rr]e[Ss]harper 133 | *.DotSettings.user 134 | 135 | # TeamCity is a build add-in 136 | _TeamCity* 137 | 138 | # DotCover is a Code Coverage Tool 139 | *.dotCover 140 | 141 | # AxoCover is a Code Coverage Tool 142 | .axoCover/* 143 | !.axoCover/settings.json 144 | 145 | # Coverlet is a free, cross platform Code Coverage Tool 146 | coverage*.json 147 | coverage*.xml 148 | coverage*.info 149 | 150 | # Visual Studio code coverage results 151 | *.coverage 152 | *.coveragexml 153 | 154 | # NCrunch 155 | _NCrunch_* 156 | .*crunch*.local.xml 157 | nCrunchTemp_* 158 | 159 | # MightyMoose 160 | *.mm.* 161 | AutoTest.Net/ 162 | 163 | # Web workbench (sass) 164 | .sass-cache/ 165 | 166 | # Installshield output folder 167 | [Ee]xpress/ 168 | 169 | # DocProject is a documentation generator add-in 170 | DocProject/buildhelp/ 171 | DocProject/Help/*.HxT 172 | DocProject/Help/*.HxC 173 | DocProject/Help/*.hhc 174 | DocProject/Help/*.hhk 175 | DocProject/Help/*.hhp 176 | DocProject/Help/Html2 177 | DocProject/Help/html 178 | 179 | # Click-Once directory 180 | publish/ 181 | 182 | # Publish Web Output 183 | *.[Pp]ublish.xml 184 | *.azurePubxml 185 | # Note: Comment the next line if you want to checkin your web deploy settings, 186 | # but database connection strings (with potential passwords) will be unencrypted 187 | *.pubxml 188 | *.publishproj 189 | 190 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 191 | # checkin your Azure Web App publish settings, but sensitive information contained 192 | # in these scripts will be unencrypted 193 | PublishScripts/ 194 | 195 | # NuGet Packages 196 | *.nupkg 197 | # NuGet Symbol Packages 198 | *.snupkg 199 | # The packages folder can be ignored because of Package Restore 200 | **/[Pp]ackages/* 201 | # except build/, which is used as an MSBuild target. 202 | !**/[Pp]ackages/build/ 203 | # Uncomment if necessary however generally it will be regenerated when needed 204 | #!**/[Pp]ackages/repositories.config 205 | # NuGet v3's project.json files produces more ignorable files 206 | *.nuget.props 207 | *.nuget.targets 208 | 209 | # Microsoft Azure Build Output 210 | csx/ 211 | *.build.csdef 212 | 213 | # Microsoft Azure Emulator 214 | ecf/ 215 | rcf/ 216 | 217 | # Windows Store app package directories and files 218 | AppPackages/ 219 | BundleArtifacts/ 220 | Package.StoreAssociation.xml 221 | _pkginfo.txt 222 | *.appx 223 | *.appxbundle 224 | *.appxupload 225 | 226 | # Visual Studio cache files 227 | # files ending in .cache can be ignored 228 | *.[Cc]ache 229 | # but keep track of directories ending in .cache 230 | !?*.[Cc]ache/ 231 | 232 | # Others 233 | ClientBin/ 234 | ~$* 235 | *~ 236 | *.dbmdl 237 | *.dbproj.schemaview 238 | *.jfm 239 | *.pfx 240 | *.publishsettings 241 | orleans.codegen.cs 242 | 243 | # Including strong name files can present a security risk 244 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 245 | #*.snk 246 | 247 | # Since there are multiple workflows, uncomment next line to ignore bower_components 248 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 249 | #bower_components/ 250 | 251 | # RIA/Silverlight projects 252 | Generated_Code/ 253 | 254 | # Backup & report files from converting an old project file 255 | # to a newer Visual Studio version. Backup files are not needed, 256 | # because we have git ;-) 257 | _UpgradeReport_Files/ 258 | Backup*/ 259 | UpgradeLog*.XML 260 | UpgradeLog*.htm 261 | ServiceFabricBackup/ 262 | *.rptproj.bak 263 | 264 | # SQL Server files 265 | *.mdf 266 | *.ldf 267 | *.ndf 268 | 269 | # Business Intelligence projects 270 | *.rdl.data 271 | *.bim.layout 272 | *.bim_*.settings 273 | *.rptproj.rsuser 274 | *- [Bb]ackup.rdl 275 | *- [Bb]ackup ([0-9]).rdl 276 | *- [Bb]ackup ([0-9][0-9]).rdl 277 | 278 | # Microsoft Fakes 279 | FakesAssemblies/ 280 | 281 | # GhostDoc plugin setting file 282 | *.GhostDoc.xml 283 | 284 | # Node.js Tools for Visual Studio 285 | .ntvs_analysis.dat 286 | node_modules/ 287 | 288 | # Visual Studio 6 build log 289 | *.plg 290 | 291 | # Visual Studio 6 workspace options file 292 | *.opt 293 | 294 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 295 | *.vbw 296 | 297 | # Visual Studio LightSwitch build output 298 | **/*.HTMLClient/GeneratedArtifacts 299 | **/*.DesktopClient/GeneratedArtifacts 300 | **/*.DesktopClient/ModelManifest.xml 301 | **/*.Server/GeneratedArtifacts 302 | **/*.Server/ModelManifest.xml 303 | _Pvt_Extensions 304 | 305 | # Paket dependency manager 306 | .paket/paket.exe 307 | paket-files/ 308 | 309 | # FAKE - F# Make 310 | .fake/ 311 | 312 | # CodeRush personal settings 313 | .cr/personal 314 | 315 | # Python Tools for Visual Studio (PTVS) 316 | __pycache__/ 317 | *.pyc 318 | 319 | # Cake - Uncomment if you are using it 320 | # tools/** 321 | # !tools/packages.config 322 | 323 | # Tabs Studio 324 | *.tss 325 | 326 | # Telerik's JustMock configuration file 327 | *.jmconfig 328 | 329 | # BizTalk build output 330 | *.btp.cs 331 | *.btm.cs 332 | *.odx.cs 333 | *.xsd.cs 334 | 335 | # OpenCover UI analysis results 336 | OpenCover/ 337 | 338 | # Azure Stream Analytics local run output 339 | ASALocalRun/ 340 | 341 | # MSBuild Binary and Structured Log 342 | *.binlog 343 | 344 | # NVidia Nsight GPU debugger configuration file 345 | *.nvuser 346 | 347 | # MFractors (Xamarin productivity tool) working folder 348 | .mfractor/ 349 | 350 | # Local History for Visual Studio 351 | .localhistory/ 352 | 353 | # BeatPulse healthcheck temp database 354 | healthchecksdb 355 | 356 | # Backup folder for Package Reference Convert tool in Visual Studio 2017 357 | MigrationBackup/ 358 | 359 | # Ionide (cross platform F# VS Code tools) working folder 360 | .ionide/ 361 | 362 | # Fody - auto-generated XML schema 363 | FodyWeavers.xsd -------------------------------------------------------------------------------- /FifaSharp.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.4.33110.190 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FifaSharp", "FifaSharp\FifaSharp.csproj", "{66091738-FC49-492C-97FC-EB00A88C07A4}" 7 | EndProject 8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FifaSharpTests", "FifaSharpTests\FifaSharpTests.csproj", "{D860A848-501B-461D-B3C9-A1088629F1C8}" 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 | {66091738-FC49-492C-97FC-EB00A88C07A4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 17 | {66091738-FC49-492C-97FC-EB00A88C07A4}.Debug|Any CPU.Build.0 = Debug|Any CPU 18 | {66091738-FC49-492C-97FC-EB00A88C07A4}.Release|Any CPU.ActiveCfg = Release|Any CPU 19 | {66091738-FC49-492C-97FC-EB00A88C07A4}.Release|Any CPU.Build.0 = Release|Any CPU 20 | {D860A848-501B-461D-B3C9-A1088629F1C8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 21 | {D860A848-501B-461D-B3C9-A1088629F1C8}.Debug|Any CPU.Build.0 = Debug|Any CPU 22 | {D860A848-501B-461D-B3C9-A1088629F1C8}.Release|Any CPU.ActiveCfg = Release|Any CPU 23 | {D860A848-501B-461D-B3C9-A1088629F1C8}.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 = {6278FB88-3456-463D-82D7-453BA5361715} 30 | EndGlobalSection 31 | EndGlobal 32 | -------------------------------------------------------------------------------- /FifaSharp/Api/EndpointDirectory.cs: -------------------------------------------------------------------------------- 1 | namespace FifaSharp.Api; 2 | 3 | public static class EndpointDirectory 4 | { 5 | public const int GAME_YEAR = 25; 6 | public const string HOSTNAME = "utas.mob.v2.prd.futc-ext.gcp.ea.com"; 7 | public const string BASE_URL = $"{HOSTNAME}/ut/game/fc25"; 8 | public const string CLIENT_ID = "FC25_JS_WEB_APP"; 9 | public const string CREATE_TOKEN = $"https://accounts.ea.com/connect/auth?hide_create=true&display=web2%2Flogin&scope=basic.identity+offline+signin+basic.entitlement+basic.persona&release_type=prod&response_type=token&redirect_uri=https%3A%2F%2Fwww.ea.com%2Fea-sports-fc%2Fultimate-team%2Fweb-app%2Fauth.html&accessToken=&locale=en_US&prompt=login&client_id={CLIENT_ID}&fid={{0}}"; 10 | public const string CREATE_ACCESS_TOKEN = $"https://accounts.ea.com/connect/auth?response_type=token&redirect_uri=nucleus%3Arest&prompt=none&client_id={CLIENT_ID}"; 11 | public const string CREATE_ORIGIN_ACCESS_TOKEN = "https://accounts.ea.com/connect/auth?response_type=token&redirect_uri=nucleus%3Arest&prompt=none&client_id=ORIGIN_JS_SDK"; 12 | public const string CREATE_AUTH_CODE = "https://accounts.ea.com/connect/auth?client_id=FUTWEB_BK_OL_SERVER&redirect_uri=nucleus:rest&response_type=code&access_token={0}&release_type=prod&client_sequence=ut-auth"; 13 | public const string CREATE_AUTH_FID = $"https://accounts.ea.com/connect/auth?accessToken=&client_id={CLIENT_ID}&display=web2/login&hide_create=true&locale=en_US&prompt=login&redirect_uri=https://www.ea.com/ea-sports-fc/ultimate-team/web-app/auth.html&release_type=prod&response_type=token&scope=basic.identity+offline+signin+basic.entitlement+basic.persona"; 14 | public const string CREATE_SID = $"https://{HOSTNAME}/ut/auth"; 15 | } 16 | -------------------------------------------------------------------------------- /FifaSharp/Api/Enums/AcademyEligibilityAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace FifaSharp.Api.Enums; 8 | 9 | public enum AcademyEligibilityAttribute 10 | { 11 | NONE, 12 | OVR, 13 | PACE, 14 | SHOOTING, 15 | PASSING, 16 | DRIBBLING_MAIN, 17 | DEFENSE, 18 | PHYSICALITY, 19 | ACCELERATION, 20 | SPRINT_SPEED, 21 | AGILITY, 22 | BALANCE, 23 | JUMPING, 24 | STAMINA, 25 | STRENGTH, 26 | REACTIONS, 27 | AGGRESSION, 28 | COMPOSURE, 29 | INTERCEPTIONS, 30 | POSITIONING, 31 | VISION, 32 | BALL_CONTROL, 33 | CROSSING, 34 | DRIBBLING_SUB, 35 | FINISHING, 36 | FK_ACC, 37 | HEADING_ACC, 38 | LONG_PASSING, 39 | SHORT_PASSING, 40 | DEF_AWARENESS, 41 | SHOT_POWER, 42 | LONG_SHOTS, 43 | STANDING_TACKLE, 44 | SLIDING_TACKLE, 45 | VOLLEYS, 46 | CURVE, 47 | PENALTIES, 48 | WEAK_FOOT, 49 | SKILL_MOVES, 50 | ATTACK_WORK_RATE, 51 | DEFENSIVE_WORK_RATE, 52 | DEFINITION_ID, 53 | NATION, 54 | CLUB, 55 | LEAGUE, 56 | RARITY, 57 | RARITY_NEGATED, 58 | POSITION, 59 | POSITION_NEGATED, 60 | POSSIBLE_POSITIONS_COUNT, 61 | BASE_TRAITS_COUNT, 62 | ICON_TRAITS_COUNT, 63 | TOTAL_TRAITS_COUNT, 64 | BASE_TRAIT_PRESENT, 65 | ICON_TRAIT_PRESENT, 66 | UNTRADEABLE 67 | } 68 | -------------------------------------------------------------------------------- /FifaSharp/Api/Enums/EvolutionsStatus.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace FifaSharp.Api.Enums; 8 | 9 | public enum EvolutionsStatus 10 | { 11 | NotStarted, 12 | Started 13 | } 14 | -------------------------------------------------------------------------------- /FifaSharp/Api/Enums/FutItemType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace FifaSharp.Api.Enums; 8 | 9 | public enum FutItemType 10 | { 11 | Player 12 | } 13 | -------------------------------------------------------------------------------- /FifaSharp/Api/Models/BidResult.cs: -------------------------------------------------------------------------------- 1 | using System.Net; 2 | using System.Text.Json.Serialization; 3 | 4 | namespace FifaSharp.Api.Models; 5 | 6 | public class BidResult 7 | { 8 | public BidResult() { } 9 | 10 | public BidResult(HttpStatusCode statusCode) 11 | { 12 | this.StatusCode = statusCode; 13 | } 14 | public HttpStatusCode StatusCode { get; set; } = HttpStatusCode.OK; 15 | 16 | [JsonPropertyName("credits")] 17 | public int Credits { get; set; } 18 | 19 | [JsonPropertyName("auctionInfo")] 20 | public Transfer[] Transfers { get; set; } = default!; 21 | 22 | [JsonPropertyName("bidTokens")] 23 | public object? BidTokens { get; set; } = default!; 24 | 25 | [JsonPropertyName("currencies")] 26 | public Currency[] Currencies { get; set; } = default!; 27 | 28 | [JsonPropertyName("dynamicObjectivesUpdates")] 29 | public ObjectiveStatuses DynamicObjectivesUpdates { get; set; } = default!; 30 | 31 | public class ObjectiveStatuses 32 | { 33 | [JsonPropertyName("needsGroupsRefresh")] 34 | public bool NeedsGroupsRefresh { get; set; } 35 | 36 | [JsonPropertyName("learningGroupProgressList")] 37 | public LearningGroupProgress[] LearningGroupProgressList { get; set; } = default!; 38 | 39 | [JsonPropertyName("needsAutoClaim")] 40 | public bool needsAutoClaim { get; set; } 41 | 42 | [JsonPropertyName("needsMilestonesAutoClaim")] 43 | public bool needsMilestonesAutoClaim { get; set; } 44 | } 45 | 46 | public class LearningGroupProgress 47 | { 48 | [JsonPropertyName("categoryId")] 49 | public int CategoryId { get; set; } 50 | 51 | [JsonPropertyName("scmpGroupProgressList")] 52 | public GroupProgress[] ScmpGroupProgressList { get; set; } = default!; 53 | } 54 | 55 | public class GroupProgress 56 | { 57 | [JsonPropertyName("groupId")] 58 | public int GroupId { get; set; } 59 | 60 | [JsonPropertyName("state")] 61 | public int State { get; set; } 62 | 63 | [JsonPropertyName("objectiveProgressList")] 64 | public ObjectiveProgress[] ObjectiveProgressList { get; set; } = default!; 65 | 66 | [JsonPropertyName("groupType")] 67 | public int GroupType { get; set; } 68 | } 69 | 70 | public class ObjectiveProgress 71 | { 72 | [JsonPropertyName("objectiveId")] 73 | public int ObjectiveId { get; set; } 74 | 75 | [JsonPropertyName("state")] 76 | public int State { get; set; } 77 | 78 | [JsonPropertyName("progressCount")] 79 | public int ProgressCount { get; set; } 80 | } 81 | 82 | 83 | public class Currency 84 | { 85 | [JsonPropertyName("name")] 86 | public string Name { get; set; } = default!; 87 | 88 | [JsonPropertyName("funds")] 89 | public int Funds { get; set; } 90 | 91 | [JsonPropertyName("finalFunds")] 92 | public int FinalFunds { get; set; } 93 | } 94 | } 95 | 96 | -------------------------------------------------------------------------------- /FifaSharp/Api/Models/ClubSearchQuery.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Text.Json.Serialization; 6 | using System.Threading.Tasks; 7 | 8 | namespace FifaSharp.Api.Models; 9 | 10 | using System.Text.Json.Serialization; 11 | 12 | public class ClubSearchQuery 13 | { 14 | [JsonPropertyName("count")] 15 | public int Count { get; set; } = 91; 16 | 17 | [JsonPropertyName("ovrMax")] 18 | public int OvrMax { get; set; } = 99; 19 | 20 | [JsonPropertyName("ovrMin")] 21 | public int OvrMin { get; set; } = 45; 22 | 23 | /// 24 | /// Player ID to search. Can search multiple players at once if ID's are separated by comma. 25 | /// 26 | [JsonPropertyName("defId")] 27 | public string? DefId { get; set; } 28 | 29 | /// 30 | /// Players to exclude from search. Can exclude multiple players at once if ID's are separated by comma. 31 | /// 32 | [JsonPropertyName("excldef")] 33 | public string? ExclDef { get; set; } 34 | 35 | [JsonPropertyName("searchAltPositions")] 36 | public bool SearchAltPositions { get; set; } = true; 37 | 38 | /// 39 | /// "desc" for descending. "asc" for ascending. 40 | /// 41 | [JsonPropertyName("sort")] 42 | public string Sort { get; set; } = "desc"; 43 | 44 | /// 45 | /// Set to "ovr" to sort by rating. "value" to sort by quick sell value. 46 | /// 47 | [JsonPropertyName("sortBy")] 48 | public string SortBy { get; set; } = "value"; 49 | 50 | [JsonPropertyName("start")] 51 | public int Start { get; set; } = 0; 52 | 53 | [JsonPropertyName("type")] 54 | public string Type { get; set; } = "player"; 55 | 56 | [JsonPropertyName("excludeLoans")] 57 | public bool? ExcludeLoans { get; set; } 58 | 59 | /// 60 | /// Evolution players only filter. 61 | /// 62 | [JsonPropertyName("isAcademyPlayer")] 63 | public bool? IsAcademyPlayer { get; set; } 64 | 65 | [JsonPropertyName("isUntradeable")] 66 | public bool? IsUntradeable { get; set; } 67 | 68 | [JsonPropertyName("league")] 69 | public int? League { get; set; } 70 | 71 | [JsonPropertyName("nation")] 72 | public int? Nation { get; set; } 73 | 74 | [JsonPropertyName("playStyle")] 75 | public int? ChemistryStyleId { get; set; } 76 | 77 | [JsonPropertyName("position")] 78 | public string? Position { get; set; } 79 | 80 | /// 81 | /// Set this to "SP" if you want to query by Special cards. 82 | /// 83 | 84 | [JsonPropertyName("rare")] 85 | public string? Rare { get; set; } 86 | 87 | /// 88 | /// Can be "bronze" or "silver" or "gold" 89 | /// 90 | [JsonPropertyName("level")] 91 | public string? Level { get; set; } 92 | 93 | [JsonPropertyName("rarityIds")] 94 | public string? RarityIds { get; set; } 95 | 96 | /// 97 | /// Set this to "desc" to sort by Most Recent. 98 | /// 99 | [JsonPropertyName("acquiredDate")] 100 | public string? AcquiredDate { get; set; } 101 | 102 | [JsonPropertyName("team")] 103 | public int? Team { get; set; } 104 | } 105 | 106 | -------------------------------------------------------------------------------- /FifaSharp/Api/Models/ClubSearchResult.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Net; 5 | using System.Text; 6 | using System.Text.Json.Serialization; 7 | using System.Threading.Tasks; 8 | 9 | namespace FifaSharp.Api.Models; 10 | 11 | public class ClubSearchResult 12 | { 13 | public ClubSearchResult() { } 14 | 15 | public ClubSearchResult(HttpStatusCode statusCode) 16 | { 17 | this.StatusCode = statusCode; 18 | } 19 | 20 | public HttpStatusCode StatusCode { get; set; } = HttpStatusCode.OK; 21 | 22 | [JsonPropertyName("itemData")] 23 | public List ItemData { get; set; } = default!; 24 | } -------------------------------------------------------------------------------- /FifaSharp/Api/Models/EvoRequirement.cs: -------------------------------------------------------------------------------- 1 | using FifaSharp.Api.Enums; 2 | 3 | namespace FifaSharp.Api.Models; 4 | 5 | public class EvoRequirement 6 | { 7 | public AcademyEligibilityAttribute Attr { get; set; } 8 | public int Scope { get; set; } 9 | public int Value { get; set; } 10 | } 11 | -------------------------------------------------------------------------------- /FifaSharp/Api/Models/Evolutions.cs: -------------------------------------------------------------------------------- 1 | using FifaSharp.Api.Enums; 2 | using System.Collections.Generic; 3 | using System.Text.Json.Serialization; 4 | 5 | namespace FifaSharp.Api.Models; 6 | 7 | public class Evolutions 8 | { 9 | [JsonPropertyName("activeSlotsCount")] 10 | public int ActiveSlotsCount { get; set; } 11 | 12 | [JsonPropertyName("inactiveSlotsCount")] 13 | public int InactiveSlotsCount { get; set; } 14 | 15 | [JsonPropertyName("availableSlotsCount")] 16 | public int AvailableSlotsCount { get; set; } 17 | 18 | [JsonPropertyName("slots")] 19 | public List Slots { get; set; } = default!; 20 | 21 | [JsonPropertyName("extraNotificationSlots")] 22 | public List ExtraNotificationSlots { get; set; } = default!; 23 | 24 | public class AcademyTopReward 25 | { 26 | [JsonPropertyName("value")] 27 | public int Value { get; set; } 28 | 29 | [JsonPropertyName("count")] 30 | public int Count { get; set; } 31 | } 32 | 33 | public class Award 34 | { 35 | [JsonPropertyName("value")] 36 | public int Value { get; set; } 37 | 38 | [JsonPropertyName("count")] 39 | public int Count { get; set; } 40 | 41 | [JsonPropertyName("guidAssetId")] 42 | public string? GuidAssetId { get; set; } 43 | } 44 | 45 | public class Currency 46 | { 47 | [JsonPropertyName("funds")] 48 | public int Funds { get; set; } 49 | 50 | [JsonPropertyName("finalFunds")] 51 | public int FinalFunds { get; set; } 52 | 53 | [JsonPropertyName("name")] 54 | public string Name { get; set; } = default!; 55 | } 56 | 57 | public class ElgReq 58 | { 59 | [JsonPropertyName("type")] 60 | public string Type { get; set; } = default!; 61 | 62 | [JsonPropertyName("eligibilitySlot")] 63 | public int EligibilitySlot { get; set; } 64 | 65 | [JsonPropertyName("eligibilityKey")] 66 | public int EligibilityKey { get; set; } 67 | 68 | [JsonPropertyName("eligibilityValue")] 69 | public int EligibilityValue { get; set; } 70 | } 71 | 72 | public class Level 73 | { 74 | [JsonPropertyName("level")] 75 | public int LevelNum { get; set; } 76 | 77 | [JsonPropertyName("levelState")] 78 | public string LevelState { get; set; } = default!; 79 | 80 | [JsonPropertyName("awards")] 81 | public List Awards { get; set; } = default!; 82 | 83 | [JsonPropertyName("objectives")] 84 | public List Objectives { get; set; } = default!; 85 | } 86 | 87 | public class Objective 88 | { 89 | [JsonPropertyName("objectiveId")] 90 | public int ObjectiveId { get; set; } 91 | 92 | [JsonPropertyName("name")] 93 | public string Name { get; set; } = default!; 94 | 95 | [JsonPropertyName("description")] 96 | public string Description { get; set; } = default!; 97 | 98 | [JsonPropertyName("takeMeThereLink")] 99 | public string TakeMeThereLink { get; set; } = default!; 100 | 101 | [JsonPropertyName("gameArea")] 102 | public int GameArea { get; set; } 103 | 104 | [JsonPropertyName("isWeb")] 105 | public bool IsWeb { get; set; } 106 | 107 | [JsonPropertyName("multiplier")] 108 | public int Multiplier { get; set; } 109 | 110 | [JsonPropertyName("priority")] 111 | public int Priority { get; set; } 112 | } 113 | 114 | public class ItemData 115 | { 116 | [JsonPropertyName("id")] 117 | public int Id { get; set; } 118 | 119 | [JsonPropertyName("timestamp")] 120 | public int Timestamp { get; set; } 121 | 122 | [JsonPropertyName("formation")] 123 | public string Formation { get; set; } = default!; 124 | 125 | [JsonPropertyName("untradeable")] 126 | public bool Untradeable { get; set; } 127 | 128 | [JsonPropertyName("assetId")] 129 | public int AssetId { get; set; } 130 | 131 | [JsonPropertyName("rating")] 132 | public int Rating { get; set; } 133 | 134 | [JsonPropertyName("itemType")] 135 | public string ItemType { get; set; } = default!; 136 | 137 | [JsonPropertyName("resourceId")] 138 | public int ResourceId { get; set; } 139 | 140 | [JsonPropertyName("owners")] 141 | public int Owners { get; set; } 142 | 143 | [JsonPropertyName("discardValue")] 144 | public int DiscardValue { get; set; } 145 | 146 | [JsonPropertyName("cardsubtypeid")] 147 | public int CardSubtypeId { get; set; } 148 | 149 | [JsonPropertyName("lastSalePrice")] 150 | public int LastSalePrice { get; set; } 151 | 152 | [JsonPropertyName("injuryType")] 153 | public string InjuryType { get; set; } = default!; 154 | 155 | [JsonPropertyName("injuryGames")] 156 | public int InjuryGames { get; set; } 157 | 158 | [JsonPropertyName("preferredPosition")] 159 | public string PreferredPosition { get; set; } = default!; 160 | 161 | [JsonPropertyName("statsList")] 162 | public List StatsList { get; set; } = default!; 163 | 164 | [JsonPropertyName("lifetimeStats")] 165 | public List LifetimeStats { get; set; } = default!; 166 | 167 | [JsonPropertyName("contract")] 168 | public int Contract { get; set; } 169 | 170 | [JsonPropertyName("teamid")] 171 | public int TeamId { get; set; } 172 | 173 | [JsonPropertyName("rareflag")] 174 | public int RareFlag { get; set; } 175 | 176 | [JsonPropertyName("playStyle")] 177 | public int PlayStyle { get; set; } 178 | 179 | [JsonPropertyName("leagueId")] 180 | public int LeagueId { get; set; } 181 | 182 | [JsonPropertyName("pile")] 183 | public int Pile { get; set; } 184 | 185 | [JsonPropertyName("nation")] 186 | public int Nation { get; set; } 187 | 188 | [JsonPropertyName("guidAssetId")] 189 | public string GuidAssetId { get; set; } = default!; 190 | 191 | [JsonPropertyName("groups")] 192 | public List Groups { get; set; } = default!; 193 | 194 | [JsonPropertyName("attributeArray")] 195 | public List AttributeArray { get; set; } = default!; 196 | 197 | [JsonPropertyName("skillmoves")] 198 | public int SkillMoves { get; set; } 199 | 200 | [JsonPropertyName("weakfootabilitytypecode")] 201 | public int WeakFootAbilityTypeCode { get; set; } 202 | 203 | [JsonPropertyName("attackingworkrate")] 204 | public int AttackingWorkrate { get; set; } 205 | 206 | [JsonPropertyName("defensiveworkrate")] 207 | public int DefensiveWorkrate { get; set; } 208 | 209 | [JsonPropertyName("preferredfoot")] 210 | public int PreferredFoot { get; set; } 211 | 212 | [JsonPropertyName("possiblePositions")] 213 | public List PossiblePositions { get; set; } = default!; 214 | 215 | [JsonPropertyName("gender")] 216 | public int Gender { get; set; } 217 | 218 | [JsonPropertyName("baseTraits")] 219 | public List BaseTraits { get; set; } = default!; 220 | 221 | [JsonPropertyName("iconTraits")] 222 | public List IconTraits { get; set; } = default!; 223 | } 224 | 225 | public class AcademyBonus 226 | { 227 | [JsonPropertyName("id")] 228 | public int Id { get; set; } 229 | 230 | [JsonPropertyName("totalBonus")] 231 | public int TotalBonus { get; set; } 232 | 233 | [JsonPropertyName("stringValue")] 234 | public string? StringValue { get; set; } 235 | } 236 | 237 | /// 238 | /// Evolution stages 239 | /// 240 | public class AcademyBonusesPerLevel 241 | { 242 | [JsonPropertyName("0")] 243 | public List? EvoStart { get; set; } 244 | 245 | [JsonPropertyName("1")] 246 | public List? FirstLevel { get; set; } 247 | 248 | [JsonPropertyName("2")] 249 | public List? SecondLevel { get; set; } 250 | 251 | [JsonPropertyName("3")] 252 | public List? ThirdLevel { get; set; } 253 | } 254 | 255 | public class RandomPlayerPreview 256 | { 257 | [JsonPropertyName("itemData")] 258 | public ItemData ItemData { get; set; } = default!; 259 | 260 | [JsonPropertyName("academyBonusesPerLevel")] 261 | public AcademyBonusesPerLevel AcademyBonusesPerLevel { get; set; } = default!; 262 | } 263 | 264 | public class Slot 265 | { 266 | [JsonPropertyName("slotImage")] 267 | public string SlotImage { get; set; } = default!; 268 | 269 | [JsonPropertyName("slotName")] 270 | public string SlotName { get; set; } = default!; 271 | 272 | [JsonPropertyName("slotDescription")] 273 | public string SlotDescription { get; set; } = default!; 274 | 275 | [JsonPropertyName("endTime")] 276 | public int EndTime { get; set; } 277 | 278 | [JsonPropertyName("endTimePurchaseVisibility")] 279 | public int EndTimePurchaseVisibility { get; set; } 280 | 281 | [JsonPropertyName("status")] 282 | public string Status { get; set; } = default!; 283 | 284 | [JsonPropertyName("id")] 285 | public int Id { get; set; } 286 | 287 | [JsonPropertyName("elgReqs")] 288 | public List ElgReqs { get; set; } = default!; 289 | 290 | [JsonPropertyName("levels")] 291 | public List Levels { get; set; } = default!; 292 | 293 | [JsonPropertyName("currencies")] 294 | public List Currencies { get; set; } = default!; 295 | 296 | [JsonPropertyName("randomPlayerPreview")] 297 | public RandomPlayerPreview RandomPlayerPreview { get; set; } = default!; 298 | 299 | [JsonPropertyName("rewardsDisplayTopCount")] 300 | public int RewardsDisplayTopCount { get; set; } 301 | 302 | [JsonPropertyName("totalRewardsCount")] 303 | public int TotalRewardsCount { get; set; } 304 | 305 | [JsonPropertyName("academyTopRewards")] 306 | public List AcademyTopRewards { get; set; } = default!; 307 | 308 | [JsonPropertyName("categoryId")] 309 | public int CategoryId { get; set; } 310 | 311 | public List GetRequirements() 312 | { 313 | List ret = new(); 314 | 315 | EvoRequirement curr = new(); 316 | 317 | foreach (var req in ElgReqs) 318 | { 319 | switch (req.Type) 320 | { 321 | case "PLAYER_ATTRIBUTE": 322 | curr.Attr = (AcademyEligibilityAttribute)req.EligibilityValue; 323 | break; 324 | case "SCOPE": 325 | curr.Scope = req.EligibilityValue; 326 | break; 327 | case "ACADEMY_PLAYER_SLOTTING": 328 | curr.Value = req.EligibilityValue; 329 | ret.Add(curr); 330 | curr = new(); 331 | break; 332 | } 333 | } 334 | 335 | return ret; 336 | } 337 | } 338 | } 339 | -------------------------------------------------------------------------------- /FifaSharp/Api/Models/FeaturedSquads.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Text.Json.Serialization; 6 | using System.Threading.Tasks; 7 | 8 | namespace FifaSharp.Api.Models; 9 | 10 | public class FeaturedSquads 11 | { 12 | [JsonPropertyName("featuredSquads")] 13 | public List Squads { get; set; } = default!; 14 | 15 | public class Squad 16 | { 17 | [JsonPropertyName("id")] 18 | public int Id { get; set; } 19 | 20 | [JsonPropertyName("name")] 21 | public string Name { get; set; } = default!; 22 | 23 | [JsonPropertyName("rating")] 24 | public int Rating { get; set; } 25 | 26 | [JsonPropertyName("formation")] 27 | public string Formation { get; set; } = default!; 28 | } 29 | } 30 | 31 | 32 | -------------------------------------------------------------------------------- /FifaSharp/Api/Models/FutAccountInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Text.Json.Serialization; 3 | 4 | namespace FifaSharp.Api.Models; 5 | 6 | public class FutAccountInfo 7 | { 8 | [JsonPropertyName("userAccountInfo")] 9 | public PersonaInfo Info { get; set; } = default!; 10 | 11 | [JsonPropertyName("nucEnabled")] 12 | public bool NucEnabled { get; set; } 13 | 14 | public class PersonaInfo 15 | { 16 | [JsonPropertyName("personas")] 17 | public Persona[] Personas { get; set; } = default!; 18 | } 19 | 20 | public class Persona 21 | { 22 | [JsonPropertyName("personaId")] 23 | public UInt64 Id { get; set; } 24 | 25 | [JsonPropertyName("personaName")] 26 | public string Name { get; set; } = default!; 27 | 28 | [JsonPropertyName("returningUser")] 29 | public int ReturningUser { get; set; } 30 | 31 | [JsonPropertyName("onlineAccess")] 32 | public bool OnlineAccess { get; set; } 33 | 34 | [JsonPropertyName("trial")] 35 | public bool Trial { get; set; } 36 | 37 | [JsonPropertyName("userState")] 38 | public object UserState { get; set; } = default!; // TODO: 39 | 40 | [JsonPropertyName("userClubList")] 41 | public Club[] UserClubList { get; set; } = default!; 42 | 43 | [JsonPropertyName("trialFree")] 44 | public bool TrialFree { get; set; } 45 | } 46 | 47 | public class Club 48 | { 49 | [JsonPropertyName("year")] 50 | public string Year { get; set; } = default!; 51 | 52 | [JsonPropertyName("assetId")] 53 | public int AssetId { get; set; } 54 | 55 | [JsonPropertyName("teamId")] 56 | public int TeamId { get; set; } 57 | 58 | [JsonPropertyName("lastAccessTime")] 59 | public int LastAccessTime { get; set; } 60 | 61 | [JsonPropertyName("platform")] 62 | public string Platform { get; set; } = default!; 63 | 64 | [JsonPropertyName("clubName")] 65 | public string ClubName { get; set; } = default!; 66 | 67 | [JsonPropertyName("clubAbbr")] 68 | public string ClubAbbr { get; set; } = default!; 69 | 70 | [JsonPropertyName("established")] 71 | public int Established { get; set; } 72 | 73 | [JsonPropertyName("divisionOnline")] 74 | public int DivisionOnline { get; set; } 75 | 76 | [JsonPropertyName("badgeId")] 77 | public int BadgeId { get; set; } 78 | 79 | [JsonPropertyName("skuAccessList")] 80 | public Dictionary SkuAccessList { get; set; } = default!; 81 | 82 | [JsonPropertyName("activeHomeKit")] 83 | public int ActiveHomeKit { get; set; } 84 | 85 | [JsonPropertyName("activeCaptain")] 86 | public int ActiveCaptain { get; set; } 87 | } 88 | } 89 | 90 | -------------------------------------------------------------------------------- /FifaSharp/Api/Models/FutMessages.cs: -------------------------------------------------------------------------------- 1 | using System.Text.Json.Serialization; 2 | 3 | namespace FifaSharp.Api.Models; 4 | 5 | 6 | public class FutMessages 7 | { 8 | [JsonPropertyName("messageList")] 9 | public Message[] MessageList { get; set; } = default!; 10 | 11 | public class Message 12 | { 13 | [JsonPropertyName("trackingTag")] 14 | public string TrackingTag { get; set; } = default!; 15 | 16 | [JsonPropertyName("screen")] 17 | public string Screen { get; set; } = default!; 18 | 19 | [JsonPropertyName("messageId")] 20 | public int MessageId { get; set; } 21 | 22 | [JsonPropertyName("priority")] 23 | public int Priority { get; set; } 24 | 25 | [JsonPropertyName("tmtLink")] 26 | public string TmtLink { get; set; } = default!; 27 | 28 | [JsonPropertyName("displayTime")] 29 | public int DisplayTime { get; set; } 30 | 31 | [JsonPropertyName("trackurls")] 32 | public object TrackUrls { get; set; } = default!; 33 | 34 | [JsonPropertyName("subtype")] 35 | public string Subtype { get; set; } = default!; 36 | 37 | [JsonPropertyName("doNotDisplay")] 38 | public string DoNotDisplay { get; set; } = default!; 39 | 40 | [JsonPropertyName("renders")] 41 | public Render[] Renders { get; set; } = default!; 42 | 43 | [JsonPropertyName("promotions")] 44 | public object[] Promotions { get; set; } = default!; 45 | } 46 | 47 | public class Render 48 | { 49 | [JsonPropertyName("type")] 50 | public string Type { get; set; } = default!; 51 | 52 | [JsonPropertyName("name")] 53 | public string Name { get; set; } = default!; 54 | 55 | [JsonPropertyName("value")] 56 | public string Value { get; set; } = default!; 57 | 58 | [JsonPropertyName("attributes")] 59 | public RenderAttributes Attributes { get; set; } = default!; 60 | } 61 | 62 | public class RenderAttributes 63 | { 64 | [JsonPropertyName("style")] 65 | public string Style { get; set; } = default!; 66 | 67 | [JsonPropertyName("size")] 68 | public string Size { get; set; } = default!; 69 | 70 | [JsonPropertyName("alignment")] 71 | public string Alignment { get; set; } = default!; 72 | 73 | [JsonPropertyName("colour")] 74 | public string Colour { get; set; } = default!; 75 | 76 | [JsonPropertyName("highlightColour")] 77 | public string HighlightColour { get; set; } = default!; 78 | 79 | [JsonPropertyName("renderType")] 80 | public string RenderType { get; set; } = default!; 81 | 82 | [JsonPropertyName("countdownTime")] 83 | public string CountdownTime { get; set; } = default!; 84 | 85 | [JsonPropertyName("localId")] 86 | public string LocalId { get; set; } = default!; 87 | } 88 | } 89 | 90 | -------------------------------------------------------------------------------- /FifaSharp/Api/Models/FutSquad.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Text.Json.Serialization; 6 | using System.Threading.Tasks; 7 | 8 | namespace FifaSharp.Api.Models; 9 | 10 | public class FutSquad 11 | { 12 | [JsonPropertyName("id")] 13 | public int Id { get; set; } 14 | 15 | [JsonPropertyName("valid")] 16 | public bool Valid { get; set; } 17 | 18 | [JsonPropertyName("personaId")] 19 | public int? PersonaId { get; set; } 20 | 21 | [JsonPropertyName("formation")] 22 | public string Formation { get; set; } = default!; 23 | 24 | [JsonPropertyName("rating")] 25 | public object Rating { get; set; } = default!; 26 | 27 | [JsonPropertyName("chemistry")] 28 | public int Chemistry { get; set; } 29 | 30 | [JsonPropertyName("manager")] 31 | public List ManagerData { get; set; } = default!; 32 | 33 | [JsonPropertyName("players")] 34 | public List Players { get; set; } = default!; 35 | 36 | [JsonPropertyName("dreamSquad")] 37 | public bool DreamSquad { get; set; } 38 | 39 | [JsonPropertyName("changed")] 40 | public int? Changed { get; set; } 41 | 42 | [JsonPropertyName("squadName")] 43 | public string SquadName { get; set; } = default!; 44 | 45 | [JsonPropertyName("starRating")] 46 | public int StarRating { get; set; } 47 | 48 | [JsonPropertyName("captain")] 49 | public long Captain { get; set; } 50 | 51 | [JsonPropertyName("kicktakers")] 52 | public List KickTakers { get; set; } = default!; 53 | 54 | [JsonPropertyName("actives")] 55 | public List Actives { get; set; } = default!; 56 | 57 | [JsonPropertyName("newSquad")] 58 | public object NewSquad { get; set; } = default!; 59 | 60 | [JsonPropertyName("squadType")] 61 | public string SquadType { get; set; } = default!; 62 | 63 | [JsonPropertyName("custom")] 64 | public object Custom { get; set; } = default!; 65 | 66 | [JsonPropertyName("tactics")] 67 | public List Tactics { get; set; } = default!; 68 | 69 | public class ActiveTeam 70 | { 71 | [JsonPropertyName("id")] 72 | public object Id { get; set; } = default!; 73 | 74 | [JsonPropertyName("timestamp")] 75 | public int Timestamp { get; set; } 76 | 77 | [JsonPropertyName("formation")] 78 | public string Formation { get; set; } = default!; 79 | 80 | [JsonPropertyName("untradeable")] 81 | public bool Untradeable { get; set; } 82 | 83 | [JsonPropertyName("assetId")] 84 | public int AssetId { get; set; } 85 | 86 | [JsonPropertyName("rating")] 87 | public int Rating { get; set; } 88 | 89 | [JsonPropertyName("itemType")] 90 | public string ItemType { get; set; } = default!; 91 | 92 | [JsonPropertyName("resourceId")] 93 | public int ResourceId { get; set; } 94 | 95 | [JsonPropertyName("owners")] 96 | public int Owners { get; set; } 97 | 98 | [JsonPropertyName("discardValue")] 99 | public int DiscardValue { get; set; } 100 | 101 | [JsonPropertyName("itemState")] 102 | public string ItemState { get; set; } = default!; 103 | 104 | [JsonPropertyName("cardsubtypeid")] 105 | public int CardSubtypeId { get; set; } 106 | 107 | [JsonPropertyName("lastSalePrice")] 108 | public int LastSalePrice { get; set; } 109 | 110 | [JsonPropertyName("statsList")] 111 | public List StatsList { get; set; } = default!; 112 | 113 | [JsonPropertyName("lifetimeStats")] 114 | public List LifetimeStats { get; set; } = default!; 115 | 116 | [JsonPropertyName("attributeList")] 117 | public List AttributeList { get; set; } = default!; 118 | 119 | [JsonPropertyName("teamid")] 120 | public int TeamId { get; set; } 121 | 122 | [JsonPropertyName("rareflag")] 123 | public int RareFlag { get; set; } 124 | 125 | [JsonPropertyName("leagueId")] 126 | public int LeagueId { get; set; } 127 | 128 | [JsonPropertyName("pile")] 129 | public int Pile { get; set; } 130 | 131 | [JsonPropertyName("cardassetid")] 132 | public int Cardassetid { get; set; } 133 | 134 | [JsonPropertyName("category")] 135 | public int Category { get; set; } 136 | 137 | [JsonPropertyName("name")] 138 | public string Name { get; set; } = default!; 139 | 140 | [JsonPropertyName("description")] 141 | public string Description { get; set; } = default!; 142 | 143 | [JsonPropertyName("biodescription")] 144 | public string BioDescription { get; set; } = default!; 145 | 146 | [JsonPropertyName("stadiumid")] 147 | public int StadiumId { get; set; } 148 | 149 | [JsonPropertyName("capacity")] 150 | public int Capacity { get; set; } 151 | 152 | [JsonPropertyName("resourceGameYear")] 153 | public int ResourceGameYear { get; set; } 154 | 155 | [JsonPropertyName("tifoSupportType")] 156 | public int TifoSupportType { get; set; } 157 | 158 | [JsonPropertyName("tifoRestricted")] 159 | public bool TifoRestricted { get; set; } 160 | 161 | [JsonPropertyName("bannerRestricted")] 162 | public bool BannerRestricted { get; set; } 163 | 164 | [JsonPropertyName("ballRestricted")] 165 | public bool BallRestricted { get; set; } 166 | 167 | [JsonPropertyName("preferredTime1")] 168 | public int PreferredTime1 { get; set; } 169 | 170 | [JsonPropertyName("preferredTime2")] 171 | public int PreferredTime2 { get; set; } 172 | 173 | [JsonPropertyName("preferredWeather")] 174 | public int PreferredWeather { get; set; } 175 | 176 | [JsonPropertyName("undiscardable")] 177 | public bool Undiscardable { get; set; } 178 | 179 | [JsonPropertyName("tier")] 180 | public int Tier { get; set; } 181 | 182 | [JsonPropertyName("myStadium")] 183 | public bool MyStadium { get; set; } 184 | 185 | [JsonPropertyName("value")] 186 | public int? Value { get; set; } 187 | 188 | [JsonPropertyName("weightrare")] 189 | public int? Weightrare { get; set; } 190 | 191 | [JsonPropertyName("header")] 192 | public string Header { get; set; } = default!; 193 | 194 | [JsonPropertyName("chantsCount")] 195 | public int? ChantsCount { get; set; } 196 | 197 | [JsonPropertyName("attributeArray")] 198 | public List AttributeArray { get; set; } = default!; 199 | 200 | [JsonPropertyName("authenticity")] 201 | public bool? Authenticity { get; set; } 202 | 203 | [JsonPropertyName("showCasePriority")] 204 | public int? ShowCasePriority { get; set; } 205 | 206 | [JsonPropertyName("manufacturer")] 207 | public string Manufacturer { get; set; } = default!; 208 | 209 | [JsonPropertyName("year")] 210 | public int? Year { get; set; } 211 | 212 | [JsonPropertyName("isPlatformSpecific")] 213 | public bool? IsPlatformSpecific { get; set; } 214 | } 215 | 216 | public class Instruction 217 | { 218 | [JsonPropertyName("index")] 219 | public int Index { get; set; } 220 | 221 | [JsonPropertyName("value")] 222 | public int Value { get; set; } 223 | } 224 | 225 | public class ItemData 226 | { 227 | [JsonPropertyName("id")] 228 | public object Id { get; set; } = default!; 229 | 230 | [JsonPropertyName("timestamp")] 231 | public int Timestamp { get; set; } 232 | 233 | [JsonPropertyName("formation")] 234 | public string Formation { get; set; } = default!; 235 | 236 | [JsonPropertyName("untradeable")] 237 | public bool Untradeable { get; set; } 238 | 239 | [JsonPropertyName("assetId")] 240 | public int AssetId { get; set; } 241 | 242 | [JsonPropertyName("rating")] 243 | public int Rating { get; set; } 244 | 245 | [JsonPropertyName("itemType")] 246 | public string ItemType { get; set; } = default!; 247 | 248 | [JsonPropertyName("resourceId")] 249 | public int ResourceId { get; set; } 250 | 251 | [JsonPropertyName("owners")] 252 | public int Owners { get; set; } 253 | 254 | [JsonPropertyName("discardValue")] 255 | public int DiscardValue { get; set; } 256 | 257 | [JsonPropertyName("itemState")] 258 | public string ItemState { get; set; } = default!; 259 | 260 | [JsonPropertyName("cardsubtypeid")] 261 | public int Cardsubtypeid { get; set; } 262 | 263 | [JsonPropertyName("lastSalePrice")] 264 | public int LastSalePrice { get; set; } 265 | 266 | [JsonPropertyName("injuryType")] 267 | public string InjuryType { get; set; } = default!; 268 | 269 | [JsonPropertyName("injuryGames")] 270 | public int InjuryGames { get; set; } 271 | 272 | [JsonPropertyName("preferredPosition")] 273 | public string PreferredPosition { get; set; } = default!; 274 | 275 | [JsonPropertyName("contract")] 276 | public int Contract { get; set; } 277 | 278 | [JsonPropertyName("teamid")] 279 | public int Teamid { get; set; } 280 | 281 | [JsonPropertyName("rareflag")] 282 | public int Rareflag { get; set; } 283 | 284 | [JsonPropertyName("playStyle")] 285 | public int PlayStyle { get; set; } 286 | 287 | [JsonPropertyName("leagueId")] 288 | public int LeagueId { get; set; } 289 | 290 | [JsonPropertyName("assists")] 291 | public int Assists { get; set; } 292 | 293 | [JsonPropertyName("lifetimeAssists")] 294 | public int LifetimeAssists { get; set; } 295 | 296 | [JsonPropertyName("loyaltyBonus")] 297 | public int LoyaltyBonus { get; set; } 298 | 299 | [JsonPropertyName("pile")] 300 | public int Pile { get; set; } 301 | 302 | [JsonPropertyName("nation")] 303 | public int Nation { get; set; } 304 | 305 | [JsonPropertyName("marketDataMinPrice")] 306 | public int MarketDataMinPrice { get; set; } 307 | 308 | [JsonPropertyName("marketDataMaxPrice")] 309 | public int MarketDataMaxPrice { get; set; } 310 | 311 | [JsonPropertyName("resourceGameYear")] 312 | public int ResourceGameYear { get; set; } 313 | 314 | [JsonPropertyName("guidAssetId")] 315 | public string GuidAssetId { get; set; } = default!; 316 | 317 | [JsonPropertyName("groups")] 318 | public List Groups { get; set; } = default!; 319 | 320 | [JsonPropertyName("attributeArray")] 321 | public List AttributeArray { get; set; } = default!; 322 | 323 | [JsonPropertyName("statsArray")] 324 | public List StatsArray { get; set; } = default!; 325 | 326 | [JsonPropertyName("lifetimeStatsArray")] 327 | public List LifetimeStatsArray { get; set; } = default!; 328 | 329 | [JsonPropertyName("skillmoves")] 330 | public int SkillMoves { get; set; } 331 | 332 | [JsonPropertyName("weakfootabilitytypecode")] 333 | public int WeakFootAbilityTypeCode { get; set; } 334 | 335 | [JsonPropertyName("attackingworkrate")] 336 | public int AttackingWorkRate { get; set; } 337 | 338 | [JsonPropertyName("defensiveworkrate")] 339 | public int DefensiveWorkRate { get; set; } 340 | 341 | [JsonPropertyName("preferredfoot")] 342 | public int PreferredFoot { get; set; } 343 | 344 | [JsonPropertyName("possiblePositions")] 345 | public List PossiblePositions { get; set; } = default!; 346 | 347 | [JsonPropertyName("gender")] 348 | public int Gender { get; set; } 349 | 350 | [JsonPropertyName("baseTraits")] 351 | public List BaseTraits { get; set; } = default!; 352 | 353 | [JsonPropertyName("iconTraits")] 354 | public List IconTraits { get; set; } = default!; 355 | 356 | [JsonPropertyName("dream")] 357 | public bool? Dream { get; set; } 358 | 359 | [JsonPropertyName("statsList")] 360 | public List StatsList { get; set; } = default!; 361 | 362 | [JsonPropertyName("lifetimeStats")] 363 | public List LifetimeStats { get; set; } = default!; 364 | 365 | [JsonPropertyName("morale")] 366 | public int? Morale { get; set; } 367 | 368 | [JsonPropertyName("fitness")] 369 | public int? Fitness { get; set; } 370 | 371 | [JsonPropertyName("training")] 372 | public int? Training { get; set; } 373 | 374 | [JsonPropertyName("suspension")] 375 | public int? Suspension { get; set; } 376 | 377 | [JsonPropertyName("attributeList")] 378 | public List AttributeList { get; set; } = default!; 379 | } 380 | 381 | public class Kicktaker 382 | { 383 | [JsonPropertyName("id")] 384 | public object Id { get; set; } = default!; 385 | 386 | [JsonPropertyName("index")] 387 | public int Index { get; set; } 388 | } 389 | 390 | public class Manager 391 | { 392 | [JsonPropertyName("id")] 393 | public long Id { get; set; } 394 | 395 | [JsonPropertyName("timestamp")] 396 | public int Timestamp { get; set; } 397 | 398 | [JsonPropertyName("formation")] 399 | public string Formation { get; set; } = default!; 400 | 401 | [JsonPropertyName("untradeable")] 402 | public bool Untradeable { get; set; } 403 | 404 | [JsonPropertyName("assetId")] 405 | public int AssetId { get; set; } 406 | 407 | [JsonPropertyName("rating")] 408 | public int Rating { get; set; } 409 | 410 | [JsonPropertyName("itemType")] 411 | public string ItemType { get; set; } = default!; 412 | 413 | [JsonPropertyName("resourceId")] 414 | public int ResourceId { get; set; } 415 | 416 | [JsonPropertyName("owners")] 417 | public int Owners { get; set; } 418 | 419 | [JsonPropertyName("discardValue")] 420 | public int DiscardValue { get; set; } 421 | 422 | [JsonPropertyName("itemState")] 423 | public string ItemState { get; set; } = default!; 424 | 425 | [JsonPropertyName("cardsubtypeid")] 426 | public int Cardsubtypeid { get; set; } 427 | 428 | [JsonPropertyName("lastSalePrice")] 429 | public int LastSalePrice { get; set; } 430 | 431 | [JsonPropertyName("statsList")] 432 | public List StatsList { get; set; } = default!; 433 | 434 | [JsonPropertyName("lifetimeStats")] 435 | public List LifetimeStats { get; set; } = default!; 436 | 437 | [JsonPropertyName("contract")] 438 | public int Contract { get; set; } 439 | 440 | [JsonPropertyName("attributeList")] 441 | public List AttributeList { get; set; } = default!; 442 | 443 | [JsonPropertyName("teamid")] 444 | public int Teamid { get; set; } 445 | 446 | [JsonPropertyName("rareflag")] 447 | public int Rareflag { get; set; } 448 | 449 | [JsonPropertyName("leagueId")] 450 | public int LeagueId { get; set; } 451 | 452 | [JsonPropertyName("pile")] 453 | public int Pile { get; set; } 454 | 455 | [JsonPropertyName("nation")] 456 | public int Nation { get; set; } 457 | 458 | [JsonPropertyName("firstName")] 459 | public string FirstName { get; set; } = default!; 460 | 461 | [JsonPropertyName("lastName")] 462 | public string LastName { get; set; } = default!; 463 | 464 | [JsonPropertyName("negotiation")] 465 | public int Negotiation { get; set; } 466 | 467 | [JsonPropertyName("resourceGameYear")] 468 | public int ResourceGameYear { get; set; } 469 | 470 | [JsonPropertyName("gender")] 471 | public int Gender { get; set; } 472 | 473 | [JsonPropertyName("itemPronoun")] 474 | public int ItemPronoun { get; set; } 475 | } 476 | 477 | public class Player 478 | { 479 | [JsonPropertyName("index")] 480 | public int Index { get; set; } 481 | 482 | [JsonPropertyName("itemData")] 483 | public ItemData ItemData { get; set; } = default!; 484 | 485 | [JsonPropertyName("loyaltyBonus")] 486 | public int LoyaltyBonus { get; set; } 487 | 488 | [JsonPropertyName("kitNumber")] 489 | public int KitNumber { get; set; } 490 | 491 | [JsonPropertyName("chemistry")] 492 | public int Chemistry { get; set; } 493 | 494 | [JsonPropertyName("rank")] 495 | public int? Rank { get; set; } 496 | } 497 | 498 | public class Position 499 | { 500 | [JsonPropertyName("index")] 501 | public int Index { get; set; } 502 | 503 | [JsonPropertyName("value")] 504 | public int Value { get; set; } 505 | } 506 | 507 | public class Style 508 | { 509 | [JsonPropertyName("index")] 510 | public int Index { get; set; } 511 | 512 | [JsonPropertyName("value")] 513 | public int Value { get; set; } 514 | } 515 | 516 | public class Tactic 517 | { 518 | [JsonPropertyName("squadId")] 519 | public int SquadId { get; set; } 520 | 521 | [JsonPropertyName("tactic")] 522 | public string TacticName { get; set; } = default!; 523 | 524 | [JsonPropertyName("lastUpdateTime")] 525 | public int LastUpdateTime { get; set; } 526 | 527 | [JsonPropertyName("formation")] 528 | public string Formation { get; set; } = default!; 529 | 530 | [JsonPropertyName("positions")] 531 | public List Positions { get; set; } = default!; 532 | 533 | [JsonPropertyName("instructions")] 534 | public List Instructions { get; set; } = default!; 535 | 536 | [JsonPropertyName("styles")] 537 | public List