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();
}