Exemple #1
0
def getCountUserPostPerDay():
    return MessageHandler().getCountUserPostPerDay()
Exemple #2
0
def getCountHashtagsPerDay():
    return MessageHandler().getCountHashtagsPerDay()
Exemple #3
0
def getCountDisLikesPerDay():
    return MessageHandler().getCountDisLikesPerDay()
Exemple #4
0
def getCountRepliesPerDay():
    return MessageHandler().getCountRepliesPerDay()
Exemple #5
0
def insertReplyMessage():
    if request.method == 'POST':
        handler = MessageHandler()
        return handler.insertReplyMessage(request.args)
    else:
        return jsonify(Error="Method not allowed."), 405
Exemple #6
0
def getCountByMessagesPerDay():
    return MessageHandler().getCountByMessagesPerDay()
Exemple #7
0
def getAllMessagesByChatGroup():
    if request.method == 'GET':
        handler = MessageHandler()
        return handler.getMessagesWithLikesAndDislikesByChatGroup(request.args)
    else:
        return jsonify(Error="Method not allowed."), 405
Exemple #8
0
def getAllMessagesByHashtag():
    if request.method == 'GET':
        handler = MessageHandler()
        return handler.getAllMessagesByHashtaginGC(request.args)
    else:
        return jsonify(Error="Method not allowed."), 405
Exemple #9
0
def getMessagesWithLikesAndDislikes():
    handler = MessageHandler()
    return handler.getMessagesWithLikesAndDislikes()
Exemple #10
0
def getMessagesbyChatIDAndUser(cid, uid):
    handler = MessageHandler()
    return handler.getMessagesbyChatIDAndUser(cid, uid)
Exemple #11
0
def getMessagesbyChatID(cid):
    handler = MessageHandler()
    return handler.getMessagesbyChatID(cid)
Exemple #12
0
def getMessageById(mid):
    return MessageHandler().getMessageById(mid)
Exemple #13
0
def getAllMessages():
    handler = MessageHandler()
    return handler.getAllMessages()