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