Interface ActionTakenDao


  • public interface ActionTakenDao
    An interface containing various methods for interacting with the database table for the ActionTaken object.
    • Method Detail

      • insert

        Single<Long> insert​(ActionTaken actionTaken)
        Inserts a single action taken.
        Parameters:
        actionTaken - The ActionTaken to be inserted.
        Returns:
        A Single containing a Long.
      • insert

        Single<List<Long>> insert​(ActionTaken... actionsTaken)
        Inserts several actions taken passed via varargs.
        Parameters:
        actionsTaken - Varargs of ActionTaken to be inserted.
        Returns:
        A Single List of Long.
      • update

        Single<Integer> update​(ActionTaken actionTaken)
        Updated a single action taken.
        Parameters:
        actionTaken - The ActionTaken to be updated.
        Returns:
        A Single containing a Integer.
      • update

        Single<Integer> update​(ActionTaken... actionsTaken)
        Updates several actions taken passed via varargs.
        Parameters:
        actionsTaken - Varargs of ActionTaken to be updated.
        Returns:
        A Single containing a Integer.
      • delete

        Single<Integer> delete​(ActionTaken actionTaken)
        Deletes a single action taken.
        Parameters:
        actionTaken - The ActionTaken to be deleted.
        Returns:
        A Single containing a Integer.
      • delete

        Single<Integer> delete​(ActionTaken... actionsTaken)
        Deletes several actions taken passed via varargs.
        Parameters:
        actionsTaken - Varargs of ActionTaken to be deleted.
        Returns:
        A Single containing a Integer.
      • selectSpecificActionTaken

        LiveData<ActionTaken> selectSpecificActionTaken​(long id)
        Query to provide a specific action taken.
        Parameters:
        id - The ID of the ActionTaken.
        Returns:
        A LiveData containing the ActionTaken.
      • selectFeedActions

        LiveData<List<ActionTaken>> selectFeedActions()
        Query to provide the actions taken that make up the user's feed.
        Returns:
        A LiveData containing a List of ActionTaken objects.
      • selectPostsByFriend

        LiveData<List<ActionTaken>> selectPostsByFriend​(long friend)
        Query to provide the actions taken that are posts by a specific friend.
        Parameters:
        friend - The ID of the Friend.
        Returns:
        A LiveData containing a List of ActionTaken objects.
      • selectMessagesByFriend

        LiveData<List<ActionTaken>> selectMessagesByFriend​(long friend)
        Query to provide the actions taken that are messages by a specific friend.
        Parameters:
        friend - The ID of the Friend.
        Returns:
        A LiveData containing a List of ActionTaken objects.