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

from alipay.aop.api.response.AlipayResponse import AlipayResponse


class AlipayMobileStdPublicMessageMatcherSendResponse(AlipayResponse):

    def __init__(self):
        super(AlipayMobileStdPublicMessageMatcherSendResponse, self).__init__()
        self._to_alipay_user_id = None
        self._to_user_id = None

    @property
    def to_alipay_user_id(self):
        return self._to_alipay_user_id

    @to_alipay_user_id.setter
    def to_alipay_user_id(self, value):
        self._to_alipay_user_id = value
    @property
    def to_user_id(self):
        return self._to_user_id

    @to_user_id.setter
    def to_user_id(self, value):
        self._to_user_id = value

    def parse_response_content(self, response_content):
        response = super(AlipayMobileStdPublicMessageMatcherSendResponse, self).parse_response_content(response_content)
        if 'to_alipay_user_id' in response:
            self.to_alipay_user_id = response['to_alipay_user_id']
        if 'to_user_id' in response:
            self.to_user_id = response['to_user_id']
