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