From c61fe2b667079168387376da1c09823967476b21 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Wed, 2 Sep 2015 15:08:49 +0200 Subject: refactor commands and notify code --- voctocore/lib/response.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 voctocore/lib/response.py (limited to 'voctocore/lib/response.py') diff --git a/voctocore/lib/response.py b/voctocore/lib/response.py new file mode 100644 index 0000000..866d5f2 --- /dev/null +++ b/voctocore/lib/response.py @@ -0,0 +1,15 @@ +#!/usr/bin/python3 + +class Response(object): + def __init__(self, *args): + self.args = args + + def __str__(self): + return " ".join(map(str, self.args)) + + +class OkResponse(Response): + pass + +class NotifyResponse(Response): + pass -- cgit v1.2.3