Skip to content

Commit

Permalink
fix: fixed vs2022 shitty tabs in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
sikelio committed Jul 29, 2024
1 parent 9dae49f commit e6f5b93
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion System/System.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<RepositoryType>git</RepositoryType>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Description>A collection of classes for system operations</Description>
<PackageTags>system</PackageTags>
<PackageTags>system;tools</PackageTags>
<PackageLicenseFile>LICENCE.md</PackageLicenseFile>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
<PackageReadmeFile>README.md</PackageReadmeFile>
Expand Down
18 changes: 9 additions & 9 deletions Web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,29 +15,29 @@ Install-Package FrApp42.Net

```csharp
using namespace FrApp42.Web.API;
using System.Text.Json.Serialization;
using System.Text.Json.Serialization;

string url = "your-url";

Request request = new(url);
request
.AddHeader("key", "value")
.AcceptJson()
.AddHeader("key", "value")
.AcceptJson()

Result<MyModel> result = await request.Run<MyModel>();

if (result.StatusCode == 200 && result.Value != null)
{
Console.WriteLine(result.Value.Name);
Console.WriteLine(result.Value.Description);
Console.WriteLine(result.Value.Name);
Console.WriteLine(result.Value.Description);
}

class MyModel
{
[JsonPropertyName("name")]
public string Name { get; set; }
[JsonPropertyName("name")]
public string Name { get; set; }

[JsonPropertyName("description")]
public string Description { get; set; }
[JsonPropertyName("description")]
public string Description { get; set; }
}
```
2 changes: 1 addition & 1 deletion Web/Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<RepositoryType>git</RepositoryType>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Description>A collection of classes for web operations</Description>
<PackageTags>web</PackageTags>
<PackageTags>web;tools</PackageTags>
<PackageLicenseFile>LICENCE.md</PackageLicenseFile>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
<PackageReadmeFile>README.md</PackageReadmeFile>
Expand Down

0 comments on commit e6f5b93

Please sign in to comment.