Exemple #1
0
        public async void AreUrlsInReadingListAsync([Converter("ToJSON")] string urls_json, [Converter("Callback")] int hCallback)
        {
            var urls = JsonConvert.DeserializeObject <string[]>(urls_json);
            var res  = await wvp.AreUrlsInReadingListAsync(urls);

            await wvp.DoOnMainThreadAsync(() => { wvp.CallJavascriptAsync("Ao3Track.Callbacks.call", hCallback, res); }).ConfigureAwait(false);
        }
Exemple #2
0
 public IAsyncOperation <string> AreUrlsInReadingListAsync([ReadOnlyArray] string[] urls)
 {
     return(Task.Run(async() =>
     {
         var result = await wvp.AreUrlsInReadingListAsync(urls);
         return JsonConvert.SerializeObject(result);
     }).AsAsyncOperation());
 }
        public async void AreUrlsInReadingListAsync(string[] urls, [Converter("Callback")] int hCallback)
        {
            var res = await wvp.AreUrlsInReadingListAsync(urls);

            await wvp.DoOnMainThreadAsync(() => { wvp.CallJavascriptAsync("Ao3Track.Callbacks.call", hCallback, res); }).ConfigureAwait(false);
        }