예제 #1
0
    def add_image(object: mediaupdate.mediaUpdateType, image: str, **kwargs):
        if not object.images:
            object.images = pyxb.BIND()

        new_image = MediaBackendUtil.create_image(image, **kwargs)
        object.images.append(new_image)
        return image
예제 #2
0
    def add_location(object: mediaupdate.mediaUpdateType, programUrl:str, **kwargs):
        if not object.locations:
            object.locations = pyxb.BIND()

        location = MediaBackendUtil.create_location(programUrl, **kwargs)
        object.locations.append(location)
        return location