예제 #1
0
def manageLikeMessage():
    # tengo que hacer la rutina para vetificar si alguien no le dio
    # like o dislike, se alguien le dio like/dislike seria un update
    if request.method == 'POST':
        handler = ReactionHandler()
        return handler.insertLikeinMessage(request.args)
    else:
        return jsonify(Error="Method not allowed."), 405
예제 #2
0
def getAllDislikes():
    return ReactionHandler().getAllDislikes()
예제 #3
0
def getReactionsById(rid):
    return ReactionHandler().getReactionsById(rid)
예제 #4
0
def manageDislikeMessage():
    if request.method == 'POST':
        handler = ReactionHandler()
        return handler.insertDislikeinMessage(request.args)
    else:
        return jsonify(Error="Method not allowed."), 405
예제 #5
0
def reactions():
    handler = ReactionHandler()
    return handler.getAllReactions()
예제 #6
0
def getNumberOfDislikesByMessageID(mid):
    handler = ReactionHandler()
    return handler.getNumberOfDislikesByMessageID(mid)
예제 #7
0
def getAllDislikesByMessageID(mid):
    handler = ReactionHandler()
    return handler.getAllDislikesByMessageID(mid)
예제 #8
0
def getAllReactionsByMessageID(mid):
    handler = ReactionHandler()
    return handler.getAllReactionsbyMessageID(mid)