Example #1
0
 public YandereLoader(
     HttpClient httpClient   = null,
     BooruLoader booruLoader = null,
     string login            = null,
     string passwordHash     = null)
 {
     _login        = login;
     _passwordHash = passwordHash;
     _booruLoader  = booruLoader ?? new BooruLoader(httpClient, 0);
 }
 public SankakuLoader(string login,
                      string passHash,
                      int loadDelay,
                      HttpClient httpClient   = null,
                      BooruLoader booruLoader = null)
 {
     _login        = login;
     _passwordhash = passHash;
     _booruLoader  = booruLoader
                     ?? new BooruLoader(httpClient,
                                        loadDelay,
                                        loginCookie: $"login={_login};pass_hash={_passwordhash};",
                                        customMessageBuilder: BuildRequestMessage);
 }
Example #3
0
 public DanbooruLoader(string login, string apiKey, int loadDelay, HttpClient httpClient = null, BooruLoader booruLoader = null)
 {
     _login       = login;
     _apiKey      = apiKey;
     _booruLoader = booruLoader ?? new BooruLoader(httpClient, loadDelay, customUrlTransform: AddAuth);
 }