15 lines
290 B
Python
15 lines
290 B
Python
from model.frame import Frame
|
|
|
|
|
|
class DialogStateMonitor:
|
|
dialog = []
|
|
|
|
def append(self, frame: Frame):
|
|
self.dialog.append(frame)
|
|
|
|
def get_all(self) -> [Frame]:
|
|
return self.dialog
|
|
|
|
def get_last(self) -> Frame:
|
|
return self.dialog[len(self.dialog) - 1]
|