@ -15,7 +15,7 @@ namespace SysEx.Net.Tests
{
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)
@ -1,8 +1,12 @@
namespace SysEx.Net.Models
using Newtonsoft.Json;
namespace SysEx.Net.Models
public struct MemeEndpoints
[JsonProperty("Name")]
public string Name;
[JsonProperty("RequiredSources")]
public int RequiredSources;
}
@ -5,10 +5,12 @@ namespace SysEx.Net.Models
public struct MemeResponse
[JsonProperty("Successful")]
public bool Successful;
[JsonProperty("example")]
public string Example;
[JsonProperty(PropertyName = "availabletemplates")]
[JsonProperty("available-templates")]
public List<MemeEndpoints> Endpoints;
@ -15,7 +15,7 @@
<NeutralLanguage>en-GB</NeutralLanguage>
<RepositoryType>Library</RepositoryType>
<PackageLicenseUrl>https://github.com/exsersewo/SysEx.Net/blob/master/LICENSE</PackageLicenseUrl>
<Version>1.0.6</Version>
<Version>1.0.7</Version>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">