public class AutoReplyRepository extends Object
Constructor and Description |
---|
AutoReplyRepository(Context context)
A constructor for the AutoReply repository
|
Modifier and Type | Method and Description |
---|---|
Completable |
delete(AutoReply autoReply)
Allows us to delete certain AutoReplies from the database
|
LiveData<List<AutoReplyWithUserType>> |
getAllAutoReplies()
A repository method that is not currently being used.
|
LiveData<List<AutoReplyWithUserType>> |
getAutoRepliesByUserType(long userTypeId)
A repository method that gets all the AutoReplies for a specific userType.
|
Completable |
save(AutoReply autoReply)
A method that saves the autoReplies so they cant be sent out by the different User types.
|
public AutoReplyRepository(Context context)
context
- , taking in a context parameter.public Completable save(AutoReply autoReply)
autoReply
- , an AutoReply object.public Completable delete(AutoReply autoReply)
autoReply
- , an AutoReply object.public LiveData<List<AutoReplyWithUserType>> getAutoRepliesByUserType(long userTypeId)
userTypeId
- , a long associated to one of the aforementioned user types.public LiveData<List<AutoReplyWithUserType>> getAllAutoReplies()