private void OnGetPublicationDate(PubDateData pubDates, string data)
 {
     if (pubDates != null)
     {
         Log.Debug("ExampleAlchemyLanguage", "status: {0}", pubDates.status);
         Log.Debug("ExampleAlchemyLanguage", "url: {0}", pubDates.url);
         Log.Debug("ExampleAlchemyLanguage", "language: {0}", pubDates.language);
         if (pubDates.publicationDate != null)
         {
             Log.Debug("ExampleAlchemyLanguage", "date: {0}, confident: {1}", pubDates.publicationDate.date, pubDates.publicationDate.confident);
         }
         else
         {
             Log.Debug("ExampleAlchemyLanguage", "Failed to find Publication Dates!");
         }
     }
     else
     {
         Log.Debug("ExampleAlchemyLanguage", "Failed to find Publication Dates!");
     }
 }
Esempio n. 2
0
 private void OnGetPublicationDateUrl(PubDateData pubDates, string data)
 {
     Log.Debug("ExampleAlchemyLanguage", "Alchemy Language - Get publication date response url: {0}", data);
     Test(pubDates != null);
     _getPubDateURLTested = true;
 }
 private void OnGetPublicationDateUrl(PubDateData pubDates, Dictionary <string, object> customData)
 {
     Log.Debug("ExampleAlchemyLanguage.OnGetPublicationDateUrl()", "Alchemy Language - Get publication date response url: {0}", customData["json"].ToString());
     _getPubDateURLTested = true;
 }
 private void OnGetPublicationDateHtml(PubDateData pubDates, string data)
 {
     Log.Debug("ExampleAlchemyLanguage", "Alchemy Language - Get publication date response html: {0}", data);
     _getPubDateHTMLTested = true;
 }