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

org.whispersystems.signalservice.api.SignalServiceDataStore Maven / Gradle / Ivy

There is a newer version: 2.15.3_unofficial_107
Show newest version
package org.whispersystems.signalservice.api;

import org.whispersystems.signalservice.api.push.ServiceId;

/**
 * And extension of the normal protocol store interface that has additional methods that are needed
 * in the service layer, but not the protocol layer.
 */
public interface SignalServiceDataStore {

  /**
   * @return A {@link SignalServiceAccountDataStore} for the specified account.
   */
  SignalServiceAccountDataStore get(ServiceId accountIdentifier);

  /**
   * @return A {@link SignalServiceAccountDataStore} for the ACI account.
   */
  SignalServiceAccountDataStore aci();

  /**
   * @return A {@link SignalServiceAccountDataStore} for the PNI account.
   */
  SignalServiceAccountDataStore pni();

  /**
   * @return True if the user has linked devices, otherwise false.
   */
  boolean isMultiDevice();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy