private void OnGetAuthors(AuthorsData authors, string data) { if (authors != null) { Log.Debug("ExampleAlchemyLanguage", "data: {0}", data); if (authors.authors.names.Length == 0) { Log.Debug("ExampleAlchemyLanguage", "No authors found!"); } foreach (string name in authors.authors.names) { Log.Debug("ExampleAlchemyLanguage", "Author " + name + " found!"); } } else { Log.Debug("ExampleAlchemyLanguage", "Failed to find Author!"); } }
private void OnGetAuthorsUrl(AuthorsData authors, string data) { Log.Debug("ExampleAlchemyLanguage", "Alchemy Language - Get authors response url: {0}", data); Test(authors != null); _getAuthorsURLTested = true; }
private void OnGetAuthorsUrl(AuthorsData authors, Dictionary <string, object> customData) { Log.Debug("ExampleAlchemyLanguage.OnGetAuthorsUrl()", "Alchemy Language - Get authors response url: {0}", customData["json"].ToString()); _getAuthorsURLTested = true; }
private void OnGetAuthorsHtml(AuthorsData authors, string data) { Log.Debug("ExampleAlchemyLanguage", "Alchemy Language - Get authors response html: {0}", data); _getAuthorsHTMLTested = true; }