class Player(Resource):
    @inject
    def __init__(self):
        self.play_handler = Injector().get(PlayHandler)
        self.parser = reqparse.RequestParser()

    def post(self) -> Tuple[dict, int]:
        """
        This will call the play_handler
        """
        print(request.json)
        if request.json['incomingSide'] == 'RIGHT' :
             return self.play_handler.receive_play(request.json), 200
        else:
            return make_response(jsonify({"error": "The incoming side should be the right.", "errorCode": 100001}), 501)
class Player(Resource):
    @inject
    def __init__(self):
        self.play_handler = Injector().get(PlayHandler)
        self.parser = reqparse.RequestParser()

    def post(self) -> Tuple[dict, int]:
        """
        This will call the play_handler
        """
        print(request.json)
        if request.json['incomingSide'] == 'RIGHT':
             return self.play_handler.receive_play(request.json), 200
        else:
            return jsonify({"error": "The incoming side should be the right.", "errorCode": 100001}), 501