-
-
Notifications
You must be signed in to change notification settings - Fork 3
Custom Client
Ricky Setiawan edited this page Nov 26, 2020
·
1 revision
Question: How to add a new client that BooruDex not support??
Answer: There 3 answers:
- Contribute with making a pull request
- The client is compatible with the current available template. Then follow this steps.
- The client is not compatible with the current available template. Then make a new template follow this steps.
public class NewBooru : Moebooru
{
}
public class NewBooru : Moebooru
{
public NewBooru(HttpClient httpClient = null) : base("http://new-booru.com/", httpClient)
{
}
}
public class TemplateBooru : Booru
{
}
public class TemplateBooru : Booru
{
public TemplateBooru (string domain, HttpClient httpClient = null) : base(domain, httpClient)
{
}
// override necessary method
// ...
// ...
}