<gh_stars>0
#!/usr/bin/env python2
# -*- encoding=utf-8 -*-

# description:
# author:jack
# create_time: 2018/5/26

"""
    desc:pass
"""

from dueros.directive.Display.template.BaseTemplate import BaseTemplate


class BodyTemplate5(BaseTemplate):

    def __init__(self):
        super(BodyTemplate5, self).__init__(['token', 'title', 'type'])
        self.set_type('BodyTemplate5')
        self.data['images'] = []

    def add_images(self, url, width_pixels='', height_pixel=''):

        image_structure = self.create_image_structure(url, width_pixels, height_pixel)
        if image_structure:
            self.data['images'].append(image_structure.get_data())
        return self
    pass


if __name__ == '__main__':
    pass
#!/usr/bin/env python2
# -*- encoding=utf-8 -*-

# description:
# author:jack
# create_time: 2018/5/26

"""
    desc:pass
"""

from dueros.directive.Display.template.BaseTemplate import BaseTemplate


class BodyTemplate5(BaseTemplate):

    def __init__(self):
        super(BodyTemplate5, self).__init__(['token', 'title', 'type'])
        self.set_type('BodyTemplate5')
        self.data['images'] = []

    def add_images(self, url, width_pixels='', height_pixel=''):

        image_structure = self.create_image_structure(url, width_pixels, height_pixel)
        if image_structure:
            self.data['images'].append(image_structure.get_data())
        return self
    pass


if __name__ == '__main__':
    pass
#!/usr/bin/env python2 # -*- encoding=utf-8 -*- # description: # author:jack # create_time: 2018/5/26 desc:pass