IW4M-Admin/Master/master/models/servermodel.py

17 lines
503 B
Python
Raw Normal View History

2018-04-18 16:46:53 -04:00
class ServerModel(object):
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
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
self.ip = ip
2018-04-18 16:46:53 -04:00
def __repr__(self):
return '<ServerModel(id={id})>'.format(id=self.id)