All Downloads are FREE. Search and download functionalities are using the official Maven repository.

co.easimart.EasimartCurrentUserController Maven / Gradle / Ivy

package co.easimart;

import bolts.Task;

/** package */ interface EasimartCurrentUserController
    extends EasimartObjectCurrentController {

  /**
   * Gets the persisted current EasimartUser.
   * @param shouldAutoCreateUser
   * @return
   */
  Task getAsync(boolean shouldAutoCreateUser);

  /**
   * Sets the persisted current EasimartUser only if it's current or we're not synced with disk.
   * @param user
   * @return
   */
  Task setIfNeededAsync(EasimartUser user);

  /**
   * Gets the session token of the persisted current EasimartUser.
   * @return
   */
  Task getCurrentSessionTokenAsync();

  /**
   * Logs out the current EasimartUser.
   * @return
   */
  Task logOutAsync();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy