private void OnGetMicroformats(MicroformatData microformats, string data) { if (microformats != null) { Log.Debug("ExampleAlchemyLanguage", "status: {0}", microformats.status); Log.Debug("ExampleAlchemyLanguage", "url: {0}", microformats.url); if (microformats.microformats.Length == 0) { Log.Warning("ExampleAlchemyLanguage", "No microformats found!"); } else { foreach (Microformat microformat in microformats.microformats) { Log.Debug("ExampleAlchemyLanguage", "field: {0}, data: {1}.", microformat.field, microformat.data); } } } else { Log.Debug("ExampleAlchemyLanguage", "Failed to find Microformats!"); } }
//private void OnGetMicroformatsHtml(MicroformatData microformats, Dictionary<string, object> customData) //{ // Log.Debug("ExampleAlchemyLanguage.OnGetMicroformatsHtml()", "Alchemy Language - Get microformats response html: {0}", customData["json"].ToString()); // _getMicroformatHTMLTested = true; //} private void OnGetMicroformatsUrl(MicroformatData microformats, Dictionary <string, object> customData) { Log.Debug("ExampleAlchemyLanguage.OnGetMicroformatsUrl()", "Alchemy Language - Get microformats response url: {0}", customData["json"].ToString()); _getMicroformatURLTested = true; }
//private void OnGetMicroformatsHtml(MicroformatData microformats, string data) //{ // Log.Debug("ExampleAlchemyLanguage", "Alchemy Language - Get microformats response html: {0}", data); //Test(microformats != null); // _getMicroformatHTMLTested = true; //} private void OnGetMicroformatsUrl(MicroformatData microformats, string data) { Log.Debug("ExampleAlchemyLanguage", "Alchemy Language - Get microformats response url: {0}", data); Test(microformats != null); _getMicroformatURLTested = true; }