#!/usr/bin/env python
# -*- coding: utf-8 -*-
import json

from alipay.aop.api.constant.ParamConstants import *


class NotifyUserVo(object):

    def __init__(self):
        self._del_flag = None
        self._notify_id = None
        self._notify_object = None
        self._notify_object_open_id = None
        self._open_id = None
        self._status = None
        self._user_id = None

    @property
    def del_flag(self):
        return self._del_flag

    @del_flag.setter
    def del_flag(self, value):
        self._del_flag = value
    @property
    def notify_id(self):
        return self._notify_id

    @notify_id.setter
    def notify_id(self, value):
        self._notify_id = value
    @property
    def notify_object(self):
        return self._notify_object

    @notify_object.setter
    def notify_object(self, value):
        self._notify_object = value
    @property
    def notify_object_open_id(self):
        return self._notify_object_open_id

    @notify_object_open_id.setter
    def notify_object_open_id(self, value):
        self._notify_object_open_id = value
    @property
    def open_id(self):
        return self._open_id

    @open_id.setter
    def open_id(self, value):
        self._open_id = value
    @property
    def status(self):
        return self._status

    @status.setter
    def status(self, value):
        self._status = value
    @property
    def user_id(self):
        return self._user_id

    @user_id.setter
    def user_id(self, value):
        self._user_id = value


    def to_alipay_dict(self):
        params = dict()
        if self.del_flag:
            if hasattr(self.del_flag, 'to_alipay_dict'):
                params['del_flag'] = self.del_flag.to_alipay_dict()
            else:
                params['del_flag'] = self.del_flag
        if self.notify_id:
            if hasattr(self.notify_id, 'to_alipay_dict'):
                params['notify_id'] = self.notify_id.to_alipay_dict()
            else:
                params['notify_id'] = self.notify_id
        if self.notify_object:
            if hasattr(self.notify_object, 'to_alipay_dict'):
                params['notify_object'] = self.notify_object.to_alipay_dict()
            else:
                params['notify_object'] = self.notify_object
        if self.notify_object_open_id:
            if hasattr(self.notify_object_open_id, 'to_alipay_dict'):
                params['notify_object_open_id'] = self.notify_object_open_id.to_alipay_dict()
            else:
                params['notify_object_open_id'] = self.notify_object_open_id
        if self.open_id:
            if hasattr(self.open_id, 'to_alipay_dict'):
                params['open_id'] = self.open_id.to_alipay_dict()
            else:
                params['open_id'] = self.open_id
        if self.status:
            if hasattr(self.status, 'to_alipay_dict'):
                params['status'] = self.status.to_alipay_dict()
            else:
                params['status'] = self.status
        if self.user_id:
            if hasattr(self.user_id, 'to_alipay_dict'):
                params['user_id'] = self.user_id.to_alipay_dict()
            else:
                params['user_id'] = self.user_id
        return params

    @staticmethod
    def from_alipay_dict(d):
        if not d:
            return None
        o = NotifyUserVo()
        if 'del_flag' in d:
            o.del_flag = d['del_flag']
        if 'notify_id' in d:
            o.notify_id = d['notify_id']
        if 'notify_object' in d:
            o.notify_object = d['notify_object']
        if 'notify_object_open_id' in d:
            o.notify_object_open_id = d['notify_object_open_id']
        if 'open_id' in d:
            o.open_id = d['open_id']
        if 'status' in d:
            o.status = d['status']
        if 'user_id' in d:
            o.user_id = d['user_id']
        return o


