Exemple #1
0
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)
Exemple #2
0
def getDislikesByMessageId(mid):
    return MessageHandler().getDislikesByMessageId(mid)
Exemple #3
0
def getMessagesByGroupId(gid):
    return MessageHandler().getMessagesByGroupId(gid)
Exemple #4
0
def getAllMessages():
    return MessageHandler().getAllMessages()
Exemple #5
0
def getMessageById(message_id):
    return MessageHandler().getMessageByID(message_id)
Exemple #6
0
def getRepliesPerDay():
    return MessageHandler().getRepliesPerDay()
Exemple #7
0
def getUsersThatDislikedMessageByMID(mid):
    return MessageHandler().getUsersThatDislikedMessageByMID(mid)
Exemple #8
0
def repliesPerDay():
    return MessageHandler().repliesPerDay()
Exemple #9
0
def createHashtag():
    return MessageHandler().createHashtag(request.json)
Exemple #10
0
def numReplies(oid):
    return MessageHandler().numReplies(oid)
Exemple #11
0
def dislikeMessage():
    return MessageHandler().dislikeMessage(request.json)
Exemple #12
0
def getMessagesByUID(user_id):
    return MessageHandler().findUserMessages(user_id)
Exemple #13
0
def getChatMessages(chat_id):
    return MessageHandler().findChatMessages(chat_id)
Exemple #14
0
def getMessageByID(mid):
    return MessageHandler().getMessageByID(mid)
Exemple #15
0
def likesPerDay():
    return MessageHandler().likesPerDay()
Exemple #16
0
def getAllMessagesByUser(uid):
    return MessageHandler().getAllMessagesByUser(uid)
Exemple #17
0
def dislikesPerDay():
    return MessageHandler().dislikesPerDay()
Exemple #18
0
def getNumberOfDislikesByMID(mid):
    return MessageHandler().getNumberOfDislikesByMID(mid)
Exemple #19
0
def postsCounter():
    return MessageHandler().getPostsCount()
Exemple #20
0
def getMessagesPerDay():
    return MessageHandler().getMessagePerDay()
Exemple #21
0
def getTrendingTopics():
    return MessageHandler().getTrendingTopics()
Exemple #22
0
def getDislikesPerDay():
    return MessageHandler().getDislikesPerDay()
Exemple #23
0
def messages():
    handler = MessageHandler()
    return handler.getAllMessages()