def getAllMessageDislikesByMID(mid): if request.method == 'POST': print("Request: ", request.json) return MessageHandler().insertMessageDislikeJson(request.json) else: if not request.args: return MessageHandler().getAllMessageDislikesByMID(mid)
def getDislikesByMessageId(mid): return MessageHandler().getDislikesByMessageId(mid)
def getMessagesByGroupId(gid): return MessageHandler().getMessagesByGroupId(gid)
def getAllMessages(): return MessageHandler().getAllMessages()
def getMessageById(message_id): return MessageHandler().getMessageByID(message_id)
def getRepliesPerDay(): return MessageHandler().getRepliesPerDay()
def getUsersThatDislikedMessageByMID(mid): return MessageHandler().getUsersThatDislikedMessageByMID(mid)
def repliesPerDay(): return MessageHandler().repliesPerDay()
def createHashtag(): return MessageHandler().createHashtag(request.json)
def numReplies(oid): return MessageHandler().numReplies(oid)
def dislikeMessage(): return MessageHandler().dislikeMessage(request.json)
def getMessagesByUID(user_id): return MessageHandler().findUserMessages(user_id)
def getChatMessages(chat_id): return MessageHandler().findChatMessages(chat_id)
def getMessageByID(mid): return MessageHandler().getMessageByID(mid)
def likesPerDay(): return MessageHandler().likesPerDay()
def getAllMessagesByUser(uid): return MessageHandler().getAllMessagesByUser(uid)
def dislikesPerDay(): return MessageHandler().dislikesPerDay()
def getNumberOfDislikesByMID(mid): return MessageHandler().getNumberOfDislikesByMID(mid)
def postsCounter(): return MessageHandler().getPostsCount()
def getMessagesPerDay(): return MessageHandler().getMessagePerDay()
def getTrendingTopics(): return MessageHandler().getTrendingTopics()
def getDislikesPerDay(): return MessageHandler().getDislikesPerDay()
def messages(): handler = MessageHandler() return handler.getAllMessages()