This commit is contained in:
Paul Schneider 2022-04-09 19:53:26 +01:00
commit 1befc2e053
38 changed files with 427 additions and 309 deletions

View file

@ -0,0 +1,13 @@
using Newtonsoft.Json;
namespace isn.Abstract
{
public class ApiIndexViewModel
{
[JsonProperty("version")]
public string Version { get; set; }
[JsonProperty("resources")]
public Resource[] Resources { get; set; }
}
}

View file

@ -0,0 +1,8 @@
namespace isn.abst
{
public static class Constants
{
public const string PublishCommandId = "PackagePublish/2.0.0";
}
}

17
src/isn.abst/Resource.cs Normal file
View file

@ -0,0 +1,17 @@
using Newtonsoft.Json;
namespace isn.Abstract
{
public class Resource
{
[JsonProperty("@id")]
public string Id {get; set; }
[JsonProperty("@type")]
public string Type {get; set; }
[JsonProperty("comment")]
public string Comment {get; set; }
}
}

View file

@ -0,0 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net4.7.2</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="11.0.1"/>
</ItemGroup>
</Project>