IW4M-Admin/Master/master/models/servermodel.py
2018-04-18 15:46:53 -05:00

15 lines
438 B
Python

class ServerModel(object):
def __init__(self, id, port, game, hostname, clientnum, maxclientnum, map, gametype):
self.id = id
self.port = port
self.game = game
self.hostname = hostname
self.clientnum = clientnum
self.maxclientnum = maxclientnum
self.map = map
self.gametype = gametype
def __repr__(self):
return '<ServerModel(id={id})>'.format(id=self.id)