from backend.common.event.domain_event import DomainEvent

GROUP_CREATED_EVENT = 'event.group_created'


class GroupCreatedEvent(DomainEvent):

    def __init__(self, group_id, rider_id_list, from_location, to_location):
        super().__init__(GROUP_CREATED_EVENT, "v1")
        self._group_id = group_id
        self._rider_id_list = rider_id_list
        self._from_location = from_location
        self._to_location = to_location

    @property
    def group_id(self):
        return self._group_id

    @property
    def rider_id_list(self):
        return self._rider_id_list

    @property
    def from_location(self):
        return self._from_location

    @property
    def to_location(self):
        return self._to_location

    def __str__(self):
        return 'group_id={},rider_id_list={},from_location={},to_location={}'.format(
            self._group_id, self._rider_id_list, self._from_location, self._to_location)

1ef0afdb7e3a91ce4299756725286a0e9843a0d6
<mask token>


class GroupCreatedEvent(DomainEvent):
    <mask token>

    @property
    def group_id(self):
        return self._group_id
    <mask token>

    @property
    def from_location(self):
        return self._from_location

    @property
    def to_location(self):
        return self._to_location

    def __str__(self):
        return ('group_id={},rider_id_list={},from_location={},to_location={}'
            .format(self._group_id, self._rider_id_list, self.
            _from_location, self._to_location))

<mask token>


class GroupCreatedEvent(DomainEvent):

    def __init__(self, group_id, rider_id_list, from_location, to_location):
        super().__init__(GROUP_CREATED_EVENT, 'v1')
        self._group_id = group_id
        self._rider_id_list = rider_id_list
        self._from_location = from_location
        self._to_location = to_location

    @property
    def group_id(self):
        return self._group_id

    @property
    def rider_id_list(self):
        return self._rider_id_list

    @property
    def from_location(self):
        return self._from_location

    @property
    def to_location(self):
        return self._to_location

    def __str__(self):
        return ('group_id={},rider_id_list={},from_location={},to_location={}'
            .format(self._group_id, self._rider_id_list, self.
            _from_location, self._to_location))

<mask token>
GROUP_CREATED_EVENT = 'event.group_created'


class GroupCreatedEvent(DomainEvent):

    def __init__(self, group_id, rider_id_list, from_location, to_location):
        super().__init__(GROUP_CREATED_EVENT, 'v1')
        self._group_id = group_id
        self._rider_id_list = rider_id_list
        self._from_location = from_location
        self._to_location = to_location

    @property
    def group_id(self):
        return self._group_id

    @property
    def rider_id_list(self):
        return self._rider_id_list

    @property
    def from_location(self):
        return self._from_location

    @property
    def to_location(self):
        return self._to_location

    def __str__(self):
        return ('group_id={},rider_id_list={},from_location={},to_location={}'
            .format(self._group_id, self._rider_id_list, self.
            _from_location, self._to_location))

from backend.common.event.domain_event import DomainEvent
GROUP_CREATED_EVENT = 'event.group_created'


class GroupCreatedEvent(DomainEvent):

    def __init__(self, group_id, rider_id_list, from_location, to_location):
        super().__init__(GROUP_CREATED_EVENT, 'v1')
        self._group_id = group_id
        self._rider_id_list = rider_id_list
        self._from_location = from_location
        self._to_location = to_location

    @property
    def group_id(self):
        return self._group_id

    @property
    def rider_id_list(self):
        return self._rider_id_list

    @property
    def from_location(self):
        return self._from_location

    @property
    def to_location(self):
        return self._to_location

    def __str__(self):
        return ('group_id={},rider_id_list={},from_location={},to_location={}'
            .format(self._group_id, self._rider_id_list, self.
            _from_location, self._to_location))

from backend.common.event.domain_event import DomainEvent

GROUP_CREATED_EVENT = 'event.group_created'


class GroupCreatedEvent(DomainEvent):

    def __init__(self, group_id, rider_id_list, from_location, to_location):
        super().__init__(GROUP_CREATED_EVENT, "v1")
        self._group_id = group_id
        self._rider_id_list = rider_id_list
        self._from_location = from_location
        self._to_location = to_location

    @property
    def group_id(self):
        return self._group_id

    @property
    def rider_id_list(self):
        return self._rider_id_list

    @property
    def from_location(self):
        return self._from_location

    @property
    def to_location(self):
        return self._to_location

    def __str__(self):
        return 'group_id={},rider_id_list={},from_location={},to_location={}'.format(
            self._group_id, self._rider_id_list, self._from_location, self._to_location)
