def getCountUserPostPerDay(): return MessageHandler().getCountUserPostPerDay()
def getCountHashtagsPerDay(): return MessageHandler().getCountHashtagsPerDay()
def getCountDisLikesPerDay(): return MessageHandler().getCountDisLikesPerDay()
def getCountRepliesPerDay(): return MessageHandler().getCountRepliesPerDay()
def insertReplyMessage(): if request.method == 'POST': handler = MessageHandler() return handler.insertReplyMessage(request.args) else: return jsonify(Error="Method not allowed."), 405
def getCountByMessagesPerDay(): return MessageHandler().getCountByMessagesPerDay()
def getAllMessagesByChatGroup(): if request.method == 'GET': handler = MessageHandler() return handler.getMessagesWithLikesAndDislikesByChatGroup(request.args) else: return jsonify(Error="Method not allowed."), 405
def getAllMessagesByHashtag(): if request.method == 'GET': handler = MessageHandler() return handler.getAllMessagesByHashtaginGC(request.args) else: return jsonify(Error="Method not allowed."), 405
def getMessagesWithLikesAndDislikes(): handler = MessageHandler() return handler.getMessagesWithLikesAndDislikes()
def getMessagesbyChatIDAndUser(cid, uid): handler = MessageHandler() return handler.getMessagesbyChatIDAndUser(cid, uid)
def getMessagesbyChatID(cid): handler = MessageHandler() return handler.getMessagesbyChatID(cid)
def getMessageById(mid): return MessageHandler().getMessageById(mid)
def getAllMessages(): handler = MessageHandler() return handler.getAllMessages()