Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
alipay-sdk-python / alipay / aop / api / response / AlipayOfflineMarketProductBatchqueryResponse.py
Size: Mime:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import json

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


class AlipayOfflineMarketProductBatchqueryResponse(AlipayResponse):

    def __init__(self):
        super(AlipayOfflineMarketProductBatchqueryResponse, self).__init__()
        self._current_pageno = None
        self._item_ids = None
        self._total_pageno = None

    @property
    def current_pageno(self):
        return self._current_pageno

    @current_pageno.setter
    def current_pageno(self, value):
        self._current_pageno = value
    @property
    def item_ids(self):
        return self._item_ids

    @item_ids.setter
    def item_ids(self, value):
        if isinstance(value, list):
            self._item_ids = list()
            for i in value:
                self._item_ids.append(i)
    @property
    def total_pageno(self):
        return self._total_pageno

    @total_pageno.setter
    def total_pageno(self, value):
        self._total_pageno = value

    def parse_response_content(self, response_content):
        response = super(AlipayOfflineMarketProductBatchqueryResponse, self).parse_response_content(response_content)
        if 'current_pageno' in response:
            self.current_pageno = response['current_pageno']
        if 'item_ids' in response:
            self.item_ids = response['item_ids']
        if 'total_pageno' in response:
            self.total_pageno = response['total_pageno']