congrats Icon
New! Announcing our next generation AI code completions
Read here
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

  • Making http post requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSystemService (Context)
  • runOnUiThread (Activity)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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