19 lines
409 B
Java
19 lines
409 B
Java
package org.mercury_im.messenger.persistence.repository;
|
|
|
|
import androidx.lifecycle.LiveData;
|
|
|
|
import org.mercury_im.messenger.persistence.model.AccountModel;
|
|
|
|
import java.util.List;
|
|
|
|
public interface AccountRepository<E extends AccountModel> {
|
|
|
|
LiveData<E> getAccount(long accountId);
|
|
|
|
LiveData<List<E>> getAllAccountsLive();
|
|
|
|
List<E> getAllAccounts();
|
|
|
|
long insertAccount(E accountModel);
|
|
}
|