2018-04-18 16:46:53 -04:00
|
|
|
|
|
|
|
class ServerModel(object):
|
2018-12-16 22:16:56 -05:00
|
|
|
def __init__(self, id, port, game, hostname, clientnum, maxclientnum, map, gametype, ip, version):
|
2018-04-18 16:46:53 -04:00
|
|
|
self.id = id
|
|
|
|
self.port = port
|
2018-12-16 22:16:56 -05:00
|
|
|
self.version = version
|
2018-04-18 16:46:53 -04:00
|
|
|
self.game = game
|
|
|
|
self.hostname = hostname
|
|
|
|
self.clientnum = clientnum
|
|
|
|
self.maxclientnum = maxclientnum
|
|
|
|
self.map = map
|
|
|
|
self.gametype = gametype
|
2018-09-29 15:52:22 -04:00
|
|
|
self.ip = ip
|
2018-04-18 16:46:53 -04:00
|
|
|
|
|
|
|
def __repr__(self):
|
|
|
|
return '<ServerModel(id={id})>'.format(id=self.id)
|