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
def getAllDislikes(): return ReactionHandler().getAllDislikes()
def getReactionsById(rid): return ReactionHandler().getReactionsById(rid)
def manageDislikeMessage(): if request.method == 'POST': handler = ReactionHandler() return handler.insertDislikeinMessage(request.args) else: return jsonify(Error="Method not allowed."), 405
def reactions(): handler = ReactionHandler() return handler.getAllReactions()
def getNumberOfDislikesByMessageID(mid): handler = ReactionHandler() return handler.getNumberOfDislikesByMessageID(mid)
def getAllDislikesByMessageID(mid): handler = ReactionHandler() return handler.getAllDislikesByMessageID(mid)
def getAllReactionsByMessageID(mid): handler = ReactionHandler() return handler.getAllReactionsbyMessageID(mid)