Tabnine Logo
InteractorExecution
Code IndexAdd Tabnine to your IDE (free)

How to use
InteractorExecution
in
me.panavtec.cleancontacts.presentation.invoker

Best Java code snippets using me.panavtec.cleancontacts.presentation.invoker.InteractorExecution (Showing top 3 results out of 315)

origin: PaNaVTEC/Clean-Contacts

 private void refreshContactList() {
  new InteractorExecution<>(getContactsInteractor).result(new InteractorResult<List<Contact>>() {
   @Override public void onResult(List<Contact> result) {
    List<PresentationContact> presentationContacts = listMapper.map(result);
    getView().refreshContactsList(presentationContacts);
   }
  }).error(GetContactsError.class, new InteractorResult<GetContactsError>() {
   @Override public void onResult(GetContactsError error) {
    getView().showGetContactsError();
   }
  }).execute(interactorInvoker);
 }
}
origin: PaNaVTEC/Clean-Contacts

 @Override public Object answer(InvocationOnMock invocation) throws Throwable {
  InteractorExecution execution = (InteractorExecution) invocation.getArguments()[0];
  InteractorResponse response = execution.getInteractor().call();
  InteractorError error = response.getError();
  if (response.hasError() && execution.getInteractorErrorResult(error.getClass()) != null) {
   execution.getInteractorErrorResult(error.getClass()).onResult(error);
  } else if (execution.getInteractorResult() != null) {
   execution.getInteractorResult().onResult(response.getResult());
  }
  return null;
 }
}).when(interactorInvoker).execute(anyInteractorExecution());
origin: PaNaVTEC/Clean-Contacts

 public void obtainContact() {
  getContactInteractor.setData(contactMd5);
  new InteractorExecution<>(getContactInteractor).result(new InteractorResult<Contact>() {
   @Override public void onResult(Contact result) {
    getView().showContactData(presentationContactMapper.map(result));
   }
  }).error(GetContactError.class, new InteractorResult<InteractorError>() {
   @Override public void onResult(InteractorError result) {
    getView().showGetContactError();
   }
  }).execute(interactorInvoker);
 }
}
me.panavtec.cleancontacts.presentation.invokerInteractorExecution

Most used methods

  • <init>
  • error
  • execute
  • getInteractor
  • getInteractorErrorResult
  • getInteractorResult
  • result

Popular in Java

  • Running tasks concurrently on multiple threads
  • setContentView (Activity)
  • getExternalFilesDir (Context)
  • setScale (BigDecimal)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • String (java.lang)
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • ImageIO (javax.imageio)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now