-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
release v1
- Loading branch information
Showing
16 changed files
with
899 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System.Net.Http; | ||
|
||
namespace BooruDex.Booru.Client | ||
{ | ||
public class DanbooruDonmai : Template.Danbooru | ||
{ | ||
#region Constructor & Destructor | ||
|
||
/// <summary> | ||
/// Create <see cref="DanbooruDonmai"/> client object. | ||
/// </summary> | ||
/// <param name="httpClient">Http client for sending request and recieving response.</param> | ||
public DanbooruDonmai(HttpClient httpClient = null) : base("https://danbooru.donmai.us/", httpClient) | ||
{ | ||
|
||
} | ||
|
||
#endregion Constructor & Destructor | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Net.Http; | ||
using System.Text; | ||
|
||
namespace BooruDex.Booru.Client | ||
{ | ||
public class Gelbooru : Template.Gelbooru | ||
{ | ||
#region Constructor & Destructor | ||
|
||
/// <summary> | ||
/// Create <see cref="Gelbooru"/> client object. | ||
/// </summary> | ||
/// <param name="httpClient">Http client for sending request and recieving response.</param> | ||
public Gelbooru(HttpClient httpClient = null) : base("http://gelbooru.com/", httpClient) | ||
{ | ||
|
||
} | ||
|
||
#endregion Constructor & Destructor | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,41 @@ | ||
using System.Net.Http; | ||
|
||
using BooruDex.Booru.Template; | ||
using BooruDex.Models; | ||
|
||
using Newtonsoft.Json.Linq; | ||
|
||
namespace BooruDex.Booru.Client | ||
{ | ||
public class Lolibooru : Moebooru | ||
{ | ||
#region Constructor & Destructor | ||
|
||
/// <summary> | ||
/// Create <see cref="Lolibooru"/> client object. | ||
/// </summary> | ||
/// <param name="httpClient">Http client for sending request and recieving response.</param> | ||
public Lolibooru(HttpClient httpClient = null) : base("http://lolibooru.moe/", httpClient) | ||
{ | ||
// lolibooru tag limit can more than 6 | ||
this._TagsLimit = 0; // not tag limit | ||
this._PasswordSalt = "--{}--"; | ||
} | ||
|
||
#endregion Constructor & Destructor | ||
|
||
#region Protected Override Method | ||
|
||
protected override Tag ReadTag(JToken json) | ||
{ | ||
var item = json; | ||
return new Tag( | ||
item["id"].Value<uint>(), | ||
item["name"].Value<string>(), | ||
(TagType)item["tag_type"].Value<int>(), | ||
item["post_count"].Value<uint>() | ||
); | ||
} | ||
|
||
#endregion Protected Override Method | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System.Net.Http; | ||
|
||
using BooruDex.Booru.Template; | ||
|
||
namespace BooruDex.Booru.Client | ||
{ | ||
public class Realbooru : Gelbooru02 | ||
{ | ||
#region Constructor & Destructor | ||
|
||
/// <summary> | ||
/// Create <see cref="Realbooru"/> client object. | ||
/// </summary> | ||
/// <param name="httpClient">Http client for sending request and recieving response.</param> | ||
public Realbooru(HttpClient httpClient = null) : base("http://realbooru.com/", httpClient) | ||
{ | ||
|
||
} | ||
|
||
#endregion Constructor & Destructor | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System.Net.Http; | ||
|
||
using BooruDex.Booru.Template; | ||
|
||
namespace BooruDex.Booru.Client | ||
{ | ||
public class Rule34 : Gelbooru02 | ||
{ | ||
#region Constructor & Destructor | ||
|
||
/// <summary> | ||
/// Create <see cref="Rule34"/> client object. | ||
/// </summary> | ||
/// <param name="httpClient">Http client for sending request and recieving response.</param> | ||
public Rule34(HttpClient httpClient = null) : base("https://rule34.xxx/", httpClient) | ||
{ | ||
|
||
} | ||
|
||
#endregion Constructor & Destructor | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System.Net.Http; | ||
|
||
using BooruDex.Booru.Template; | ||
|
||
namespace BooruDex.Booru.Client | ||
{ | ||
public class Safebooru : Gelbooru02 | ||
{ | ||
#region Constructor & Destructor | ||
|
||
/// <summary> | ||
/// Create <see cref="Safebooru"/> client object. | ||
/// </summary> | ||
/// <param name="httpClient">Http client for sending request and recieving response.</param> | ||
public Safebooru(HttpClient httpClient = null) : base("https://safebooru.org/", httpClient) | ||
{ | ||
|
||
} | ||
|
||
#endregion Constructor & Destructor | ||
} | ||
} |
Oops, something went wrong.