Esempio n. 1
0
 private void updateDataBasedOn(LinkPreviewLoader.Result result)
 {
     if (result.RequestWasSuccessful)
     {
         _data = result.Data;
     }
 }
 private void onPreviewLoaded(LinkPreviewLoader.Result result)
 {
     disposeRequest();
     if (result.RequestWasSuccessful)
     {
         List <MetaData> extractedMetaData = extractMetaDataFrom(result.Data);
         updateMetaData(extractedMetaData);
     }
     else
     {
         displayErrorNotification(_loadingErrorMessage);
     }
 }
Esempio n. 3
0
 private void onPreviewLoaded(LinkPreviewLoader.Result result)
 {
     _fetchPreviewRequest = null;
     updateDataBasedOn(result);
     updateView();
 }