-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix isPlayable case only specifically
- Loading branch information
1 parent
5b0ab93
commit 9a36b9e
Showing
5 changed files
with
73 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using ManiaAPI.NadeoAPI; | ||
using ManiaAPI.NadeoAPI.Extensions.Gbx; | ||
using Spectre.Console; | ||
|
||
using var ns = new NadeoServices(); | ||
|
||
var login = AnsiConsole.Ask<string>("Enter Ubisoft Connect [green]login[/]:"); | ||
|
||
var password = AnsiConsole.Prompt( | ||
new TextPrompt<string>("Enter Ubisoft Connect [green]password[/]:") | ||
.PromptStyle("red") | ||
.Secret()); | ||
|
||
await ns.AuthorizeAsync(login, password, AuthorizationMethod.UbisoftAccount); | ||
|
||
AnsiConsole.MarkupLine("[green]Authorization successful[/]"); | ||
|
||
var mapInfo = await ns.UpdateMapAsync(Guid.Parse(args[0]), args[1]); | ||
|
||
AnsiConsole.WriteLine(mapInfo.ToString()); |
21 changes: 21 additions & 0 deletions
21
Samples/UpdateTM2020MapSample/UpdateTM2020MapSample.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>net9.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
<PublishAot>true</PublishAot> | ||
<InvariantGlobalization>true</InvariantGlobalization> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Spectre.Console" Version="0.49.1" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\Src\ManiaAPI.NadeoAPI.Extensions.Gbx\ManiaAPI.NadeoAPI.Extensions.Gbx.csproj" /> | ||
<ProjectReference Include="..\..\Src\ManiaAPI.NadeoAPI\ManiaAPI.NadeoAPI.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters