from yowsup.structs import ProtocolEntity, ProtocolTreeNode
from .notification import NotificationProtocolEntity
class PictureNotificationProtocolEntity(NotificationProtocolEntity):
    '''
    <notification offline="0" id="{{NOTIFICATION_ID}}" notify="{{NOTIFY_NAME}}" type="picture" 
            t="{{TIMESTAMP}}" from="{{SENDER_JID}}">
    </notification>
    '''

    def __init__(self, _id,  _from, status, timestamp, notify, offline, setJid, setId):
        super(PictureNotificationProtocolEntity, self).__init__("picture", _id, _from, timestamp, notify, offline)
        self.setData(setJid, setId)

    @staticmethod
    def fromProtocolTreeNode(node):
        entity = NotificationProtocolEntity.fromProtocolTreeNode(node)
        entity.__class__ = PictureNotificationProtocolEntity
        return entity
f0a4bebf40975e5e1c4e79a23e9d2f790e9b7ab5
<mask token>


class PictureNotificationProtocolEntity(NotificationProtocolEntity):
    <mask token>
    <mask token>
    <mask token>

<mask token>


class PictureNotificationProtocolEntity(NotificationProtocolEntity):
    <mask token>

    def __init__(self, _id, _from, status, timestamp, notify, offline,
        setJid, setId):
        super(PictureNotificationProtocolEntity, self).__init__('picture',
            _id, _from, timestamp, notify, offline)
        self.setData(setJid, setId)

    @staticmethod
    def fromProtocolTreeNode(node):
        entity = NotificationProtocolEntity.fromProtocolTreeNode(node)
        entity.__class__ = PictureNotificationProtocolEntity
        return entity

<mask token>


class PictureNotificationProtocolEntity(NotificationProtocolEntity):
    """
    <notification offline="0" id="{{NOTIFICATION_ID}}" notify="{{NOTIFY_NAME}}" type="picture" 
            t="{{TIMESTAMP}}" from="{{SENDER_JID}}">
    </notification>
    """

    def __init__(self, _id, _from, status, timestamp, notify, offline,
        setJid, setId):
        super(PictureNotificationProtocolEntity, self).__init__('picture',
            _id, _from, timestamp, notify, offline)
        self.setData(setJid, setId)

    @staticmethod
    def fromProtocolTreeNode(node):
        entity = NotificationProtocolEntity.fromProtocolTreeNode(node)
        entity.__class__ = PictureNotificationProtocolEntity
        return entity

from yowsup.structs import ProtocolEntity, ProtocolTreeNode
from .notification import NotificationProtocolEntity


class PictureNotificationProtocolEntity(NotificationProtocolEntity):
    """
    <notification offline="0" id="{{NOTIFICATION_ID}}" notify="{{NOTIFY_NAME}}" type="picture" 
            t="{{TIMESTAMP}}" from="{{SENDER_JID}}">
    </notification>
    """

    def __init__(self, _id, _from, status, timestamp, notify, offline,
        setJid, setId):
        super(PictureNotificationProtocolEntity, self).__init__('picture',
            _id, _from, timestamp, notify, offline)
        self.setData(setJid, setId)

    @staticmethod
    def fromProtocolTreeNode(node):
        entity = NotificationProtocolEntity.fromProtocolTreeNode(node)
        entity.__class__ = PictureNotificationProtocolEntity
        return entity

from yowsup.structs import ProtocolEntity, ProtocolTreeNode
from .notification import NotificationProtocolEntity
class PictureNotificationProtocolEntity(NotificationProtocolEntity):
    '''
    <notification offline="0" id="{{NOTIFICATION_ID}}" notify="{{NOTIFY_NAME}}" type="picture" 
            t="{{TIMESTAMP}}" from="{{SENDER_JID}}">
    </notification>
    '''

    def __init__(self, _id,  _from, status, timestamp, notify, offline, setJid, setId):
        super(PictureNotificationProtocolEntity, self).__init__("picture", _id, _from, timestamp, notify, offline)
        self.setData(setJid, setId)

    @staticmethod
    def fromProtocolTreeNode(node):
        entity = NotificationProtocolEntity.fromProtocolTreeNode(node)
        entity.__class__ = PictureNotificationProtocolEntity
        return entity