Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f2d21dc411 | |||
| 7266a2162d | |||
| 4e6b8b2de8 | |||
| f12f9d70a0 |
@@ -24,14 +24,11 @@ Yande.re</Description>
|
|||||||
<PackageTags>booru imageboard api wrapper</PackageTags>
|
<PackageTags>booru imageboard api wrapper</PackageTags>
|
||||||
<PackageLicenseUrl></PackageLicenseUrl>
|
<PackageLicenseUrl></PackageLicenseUrl>
|
||||||
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
|
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
|
||||||
<Version>2.0.0.0</Version>
|
<Version>2.0.2</Version>
|
||||||
<PackageLicenseFile>LICENSE</PackageLicenseFile>
|
<PackageLicenseFile>LICENSE</PackageLicenseFile>
|
||||||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
<AssemblyVersion>2.0.2.0</AssemblyVersion>
|
||||||
<FileVersion>2.0.0.0</FileVersion>
|
<FileVersion>2.0.2.0</FileVersion>
|
||||||
<PackageReleaseNotes>⚠ This version is not compatible with 1.0.0.X code ⚠
|
<PackageReleaseNotes>Readded DanBooruImage#Score from Inheritence Rework</PackageReleaseNotes>
|
||||||
|
|
||||||
Wrapper Restructuring & Seperate out each client from the container client
|
|
||||||
Fix bugs presented from some booru's updating</PackageReleaseNotes>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
|
||||||
|
|||||||
@@ -5,6 +5,9 @@ namespace Booru.Net
|
|||||||
{
|
{
|
||||||
public class DanbooruImage : BooruImage
|
public class DanbooruImage : BooruImage
|
||||||
{
|
{
|
||||||
|
[JsonProperty("score")]
|
||||||
|
public int? Score { get; set; }
|
||||||
|
|
||||||
[JsonProperty("tag_string")]
|
[JsonProperty("tag_string")]
|
||||||
private string TagString { get; set; }
|
private string TagString { get; set; }
|
||||||
|
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ namespace Booru.Net
|
|||||||
public int Up { get; set; }
|
public int Up { get; set; }
|
||||||
|
|
||||||
[JsonProperty("down")]
|
[JsonProperty("down")]
|
||||||
private int Down { get; set; }
|
public int Down { get; set; }
|
||||||
|
|
||||||
[JsonProperty("total")]
|
[JsonProperty("total")]
|
||||||
private int Total { get; set; }
|
public int Total { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
26
README.md
26
README.md
@@ -14,9 +14,22 @@ Currently supported Boards are:
|
|||||||
# How to get started
|
# How to get started
|
||||||
|
|
||||||
```cs
|
```cs
|
||||||
var BooruClient = new BooruClient();
|
var GelbooruClient = new GelbooruClient();
|
||||||
|
|
||||||
var posts = await BooruClient.GetGelbooruImagesAsync("aisha_clanclan", "melfina");
|
var posts = await GelbooruClient.GetImagesAsync("aisha_clanclan", "melfina");
|
||||||
|
|
||||||
|
if(posts != null)
|
||||||
|
{
|
||||||
|
...
|
||||||
|
}
|
||||||
|
|
||||||
|
List<string> tags = new List<string>
|
||||||
|
{
|
||||||
|
"aisha_clanclan",
|
||||||
|
"melfina"
|
||||||
|
};
|
||||||
|
|
||||||
|
posts = await GelbooruClient.GetImagesAsync(tags);
|
||||||
|
|
||||||
if(posts != null)
|
if(posts != null)
|
||||||
{
|
{
|
||||||
@@ -24,14 +37,5 @@ if(posts != null)
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
List of Methods in Wrapper:
|
|
||||||
- `GetGelbooruImagesAsync(IEnumerable<string> tags)`
|
|
||||||
- `GetDanbooruImagesAsync(IEnumerable<string> tags)`
|
|
||||||
- `GetRule34ImagesAsync(IEnumerable<string> tags)`
|
|
||||||
- `GetE621ImagesAsync(IEnumerable<string> tags)`
|
|
||||||
- `GetKonaChanImagesAsync(IEnumerable<string> tags)`
|
|
||||||
- `GetYandereImagesAsync(IEnumerable<string> tags)`
|
|
||||||
- `GetRealBooruImagesAsync(IEnumerable<string> tags)`
|
|
||||||
|
|
||||||
# Contributing
|
# Contributing
|
||||||
If you wish to add more booru's to the wrapper/make the code better/optimise the code, please fork your own version and pull-request it. If you are planning on adding another booru to the wrapper, please do it in a similar style to the currently existing methods.
|
If you wish to add more booru's to the wrapper/make the code better/optimise the code, please fork your own version and pull-request it. If you are planning on adding another booru to the wrapper, please do it in a similar style to the currently existing methods.
|
||||||
|
|||||||
Reference in New Issue
Block a user