public BooruGalleryAdapterBase(string base_api_url, string password_salt) { APIWrapperOption = new APIWrapperOption() { ApiBaseUrl = base_api_url, PasswordSalts = password_salt, VoteValue = 3, HttpRequest = HttpRequestAdapter.Default, Log = LogAdapter.Default, TryGetValidFileSize = false, PicturesCountPerRequest = (ulong)Setting <GlobalSetting> .Current.GetPictureCountPerLoad }; APIWrapper = new APIWrapper(APIWrapperOption); }
static async Task Main(string[] args) { var option = new APIWrapperOption() { ApiBaseUrl = "https://yande.re/", PasswordSalts = "choujin-steiner--your-password--" }; var wrapper = new APIWrapper(option); var i = await wrapper.AccountManager.LoginAsync("MikiraSora", "q6523230"); var u = (await wrapper.ImageFetcher.GetImageInfoAsync(298297)).DetailUrl; await foreach (var tag in wrapper.TagSearcher.SearchTagsAsync("stock")) { Console.WriteLine(tag.Name); } Console.ReadLine(); }
public ImageFetcher(APIWrapperOption option) : base(option) { }
public TagSearcher(APIWrapperOption option) : base(option) { }
public AccountManager(APIWrapperOption option) : base(option) { }
public ImageVoter(APIWrapperOption option) : base(option) { }
public FeatureBase(APIWrapperOption option) { this.Option = option; Log.Info($"Created new {this.GetType().Name} for {option.ApiBaseUrl}"); }