From e3d6cbba3fa9d4efc4f8185ce50104a9f8937d78 Mon Sep 17 00:00:00 2001 From: exsersewo Date: Sun, 12 Aug 2018 19:37:49 +0100 Subject: [PATCH] oops, i should double check before commit and publish --- SysEx.Net/Client.cs | 44 +++++++++++++++++++------------------- SysEx.Net/SysEx.Net.csproj | 2 +- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/SysEx.Net/Client.cs b/SysEx.Net/Client.cs index ca83e81..616b609 100644 --- a/SysEx.Net/Client.cs +++ b/SysEx.Net/Client.cs @@ -15,28 +15,28 @@ namespace SysEx.Net random = new Random(); } - public async Task v1LlamaAsync() => - await v1AnimalAsync(new Uri("https://api.systemexit.co.uk/v1/llama.json")); + public async Task GetLlamaAsync() => + await GetAnimalAsync(new Uri("https://api.systemexit.co.uk/v1/llama.json")); - public async Task v1SealAsync() => - await v1AnimalAsync(new Uri("https://api.systemexit.co.uk/v1/seal.json")); + public async Task GetSealAsync() => + await GetAnimalAsync(new Uri("https://api.systemexit.co.uk/v1/seal.json")); - public async Task v1DuckAsync() => - await v1AnimalAsync(new Uri("https://api.systemexit.co.uk/v1/duck.json")); + public async Task GetDuckAsync() => + await GetAnimalAsync(new Uri("https://api.systemexit.co.uk/v1/duck.json")); - public async Task v1SquirrelAsync() => - await v1AnimalAsync(new Uri("https://api.systemexit.co.uk/v1/squirrel.json")); + public async Task GetSquirrelAsync() => + await GetAnimalAsync(new Uri("https://api.systemexit.co.uk/v1/squirrel.json")); - public async Task v1LizardAsync() => - await v1AnimalAsync(new Uri("https://api.systemexit.co.uk/v1/lizard.json")); + public async Task GetLizardAsync() => + await GetAnimalAsync(new Uri("https://api.systemexit.co.uk/v1/lizard.json")); - public async Task v1MorphAsync() => - await v1AnimalAsync(new Uri("https://api.systemexit.co.uk/v1/morphs.json")); + public async Task GetMorphAsync() => + await GetAnimalAsync(new Uri("https://api.systemexit.co.uk/v1/morphs.json")); - public async Task v1SnakeAsync() => - await v1AnimalAsync(new Uri("https://api.systemexit.co.uk/v1/snake.json")); + public async Task GetSnakeAsync() => + await GetAnimalAsync(new Uri("https://api.systemexit.co.uk/v1/snake.json")); - async Task v1AnimalAsync(Uri url) + async Task GetAnimalAsync(Uri url) { var resp = await WebRequest.ReturnStringAsync(url); var items = JsonConvert.DeserializeObject>(resp); @@ -45,7 +45,7 @@ namespace SysEx.Net return animal; } - public async Task v1RoastAsync() + public async Task GetRoastAsync() { var resp = await WebRequest.ReturnStringAsync(new Uri("https://api.systemexit.co.uk/v1/roasts.json")); var items = JsonConvert.DeserializeObject>(resp); @@ -53,7 +53,7 @@ namespace SysEx.Net return items[random.Next(0, items.Count)].Roast; } - public async Task v1DadJokeAsync() + public async Task GetDadJokeAsync() { var resp = await WebRequest.ReturnStringAsync(new Uri("https://api.systemexit.co.uk/v1/dadjokes.json")); var items = JsonConvert.DeserializeObject>(resp); @@ -61,7 +61,7 @@ namespace SysEx.Net return items[random.Next(0, items.Count)]; } - public async Task v1PickupLineAsync() + public async Task GetPickupLineAsync() { var resp = await WebRequest.ReturnStringAsync(new Uri("https://api.systemexit.co.uk/v1/pickuplines.json")); var items = JsonConvert.DeserializeObject>(resp); @@ -69,19 +69,19 @@ namespace SysEx.Net return items[random.Next(0, items.Count)]; } - public async Task v1WeebActionGifAsync(GifType type) + public async Task GetWeebActionGifAsync(GifType type) { var resp = await WebRequest.ReturnStringAsync(new Uri("https://api.systemexit.co.uk/actions/?action=" + type.ToString().ToLowerInvariant())); return resp; } - public async Task v1WeebReactionGifAsync() + public async Task GetWeebReactionGifAsync() { var resp = await WebRequest.ReturnStringAsync(new Uri("https://api.systemexit.co.uk/reactions/")); return resp; } - public async Task v1LewdKitsuneAsync() + public async Task GetLewdKitsuneAsync() { var rawresp = await WebRequest.ReturnStringAsync(new Uri("https://kitsu.systemexit.co.uk/lewd")); dynamic item = JObject.Parse(rawresp); @@ -89,7 +89,7 @@ namespace SysEx.Net if (img == null) return null; return img; } - public async Task v1KitsuneAsync() + public async Task GetKitsuneAsync() { var rawresp = await WebRequest.ReturnStringAsync(new Uri("https://kitsu.systemexit.co.uk/kitsune")); dynamic item = JObject.Parse(rawresp); diff --git a/SysEx.Net/SysEx.Net.csproj b/SysEx.Net/SysEx.Net.csproj index 286128f..e096dad 100644 --- a/SysEx.Net/SysEx.Net.csproj +++ b/SysEx.Net/SysEx.Net.csproj @@ -15,7 +15,7 @@ en-GB Library https://github.com/exsersewo/SysEx.Net/blob/master/LICENSE - 1.0.2 + 1.0.3