#! coding:utf-8
"""


@author: BARS Group
@date: 26.09.2016

"""
from sirius.lib.message import Message


class OperationResult(object):
    def __init__(self, stream_id):
        self.stream_id = stream_id

    def check(self, method, url):
        msg = None
        op_res = self.get_operation_result()
        if op_res is not None:
            data = {'result': op_res}
            msg = Message(data, self.stream_id)
            msg.to_local_service()
            msg.set_result_type()
            msg.set_method('put', url + 'result/')
        return msg

    def get_operation_result(self):
        # todo:
        return None

e4032bfa9e6bbe823cdd0f824df66967b4edd43b
<mask token>


class OperationResult(object):
    <mask token>
    <mask token>
    <mask token>

<mask token>


class OperationResult(object):
    <mask token>

    def check(self, method, url):
        msg = None
        op_res = self.get_operation_result()
        if op_res is not None:
            data = {'result': op_res}
            msg = Message(data, self.stream_id)
            msg.to_local_service()
            msg.set_result_type()
            msg.set_method('put', url + 'result/')
        return msg

    def get_operation_result(self):
        return None

<mask token>


class OperationResult(object):

    def __init__(self, stream_id):
        self.stream_id = stream_id

    def check(self, method, url):
        msg = None
        op_res = self.get_operation_result()
        if op_res is not None:
            data = {'result': op_res}
            msg = Message(data, self.stream_id)
            msg.to_local_service()
            msg.set_result_type()
            msg.set_method('put', url + 'result/')
        return msg

    def get_operation_result(self):
        return None

<mask token>
from sirius.lib.message import Message


class OperationResult(object):

    def __init__(self, stream_id):
        self.stream_id = stream_id

    def check(self, method, url):
        msg = None
        op_res = self.get_operation_result()
        if op_res is not None:
            data = {'result': op_res}
            msg = Message(data, self.stream_id)
            msg.to_local_service()
            msg.set_result_type()
            msg.set_method('put', url + 'result/')
        return msg

    def get_operation_result(self):
        return None

#! coding:utf-8
"""


@author: BARS Group
@date: 26.09.2016

"""
from sirius.lib.message import Message


class OperationResult(object):
    def __init__(self, stream_id):
        self.stream_id = stream_id

    def check(self, method, url):
        msg = None
        op_res = self.get_operation_result()
        if op_res is not None:
            data = {'result': op_res}
            msg = Message(data, self.stream_id)
            msg.to_local_service()
            msg.set_result_type()
            msg.set_method('put', url + 'result/')
        return msg

    def get_operation_result(self):
        # todo:
        return None
