Update tests and fix errors with Endpoints being null due to api update
This commit is contained in:
@@ -15,7 +15,7 @@ namespace SysEx.Net.Tests
|
|||||||
{
|
{
|
||||||
var client = new SysExClient();
|
var client = new SysExClient();
|
||||||
|
|
||||||
var resp = await client.GetMemeImageAsync("22million", "https://cdn.discordapp.com/avatars/270047199184945152/e6a23a1c72703edb5e178411bba9190c.png");
|
var resp = await client.GetMemeImageAsync();
|
||||||
|
|
||||||
if(resp is Stream)
|
if(resp is Stream)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,8 +1,12 @@
|
|||||||
namespace SysEx.Net.Models
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace SysEx.Net.Models
|
||||||
{
|
{
|
||||||
public struct MemeEndpoints
|
public struct MemeEndpoints
|
||||||
{
|
{
|
||||||
|
[JsonProperty("Name")]
|
||||||
public string Name;
|
public string Name;
|
||||||
|
[JsonProperty("RequiredSources")]
|
||||||
public int RequiredSources;
|
public int RequiredSources;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,10 +5,12 @@ namespace SysEx.Net.Models
|
|||||||
{
|
{
|
||||||
public struct MemeResponse
|
public struct MemeResponse
|
||||||
{
|
{
|
||||||
|
[JsonProperty("Successful")]
|
||||||
public bool Successful;
|
public bool Successful;
|
||||||
|
[JsonProperty("example")]
|
||||||
public string Example;
|
public string Example;
|
||||||
|
|
||||||
[JsonProperty(PropertyName = "availabletemplates")]
|
[JsonProperty("available-templates")]
|
||||||
public List<MemeEndpoints> Endpoints;
|
public List<MemeEndpoints> Endpoints;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
<NeutralLanguage>en-GB</NeutralLanguage>
|
<NeutralLanguage>en-GB</NeutralLanguage>
|
||||||
<RepositoryType>Library</RepositoryType>
|
<RepositoryType>Library</RepositoryType>
|
||||||
<PackageLicenseUrl>https://github.com/exsersewo/SysEx.Net/blob/master/LICENSE</PackageLicenseUrl>
|
<PackageLicenseUrl>https://github.com/exsersewo/SysEx.Net/blob/master/LICENSE</PackageLicenseUrl>
|
||||||
<Version>1.0.6</Version>
|
<Version>1.0.7</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||||
|
|||||||
Reference in New Issue
Block a user