"""User Interaction logic.""" from social_analytics.models import user_interaction def create_user_interaction(data): """Create a user interaction. Args: data (dict): the data from which to create the user interaction. Returns: response.Response: containing the created user interaction dict. """ return user_interaction.create_user_interaction(data) def get_user_interactions_by_user_id(user_id): """Get the latest user interactions for a user. Args: user_id (string): user identification of the user. Returns: response.Response: containing the latest user interactions. """ return user_interaction.get_user_interactions_by_user_id(user_id)