17 lines
450 B
Python
17 lines
450 B
Python
from itertools import count
|
|
|
|
from data.ClientParams import ClientParams
|
|
from data.Item import Item
|
|
from data.enum.Priority import Priority
|
|
|
|
|
|
class Order:
|
|
id_counter = count(start=0)
|
|
|
|
def __init__(self, time: int, items: [Item], value: int, priority: Priority, client_params: ClientParams):
|
|
self.id = next(self.id_counter)
|
|
self.time = time
|
|
self.items = items
|
|
self.value = value
|
|
self.priority = priority
|