示例#1
0
class Creator(object):
    def __init__(self):
        self.game_model = Model()
        self.adapter = Adapter()

    def get(self, game_id):
        game_json_data = self.game_model.get()
        return self.adapter.adapt(game_json_data)
示例#2
0
 def __init__(self):
     self.game_model = Model()
     self.adapter = Adapter()