package com.veinhorn.scrollgalleryview.builder;

import com.veinhorn.scrollgalleryview.MediaInfo;

import java.util.List;

/**
 * MediaHelper is a specification which is used for building DSLs. It includes a bunch of methods
 * which help to simplify adding media to your gallery
 */
public interface MediaHelper {
    /**
     * Creates MediaInfo object based on image url
     * @param url is an image URL address
     * @return MediaInfo object
     */
    MediaInfo image(String url);

    /**
     * Creates a list of MediaInfos from the list of image urls
     * @param urls is a list of image urls
     * @return MediaInfo object
     */
    List<MediaInfo> images(List<String> urls);

    /**
     * Creates MediaInfo object based on image url
     * @param url is an image URL address
     * @param placeholderViewId is an image resource id which is used as video placeholder
     * @return MediaInfo object
     */
    MediaInfo video(String url, int placeholderViewId);
}

@@ -605,32 +605,42 @@
 %0A     * @return 
+a list of 
 MediaInfo object
@@ -631,32 +631,33 @@
 MediaInfo object
+s
 %0A     */%0A    Lis
@@ -693,24 +693,238 @@
 ng%3E urls);%0A%0A
+    /**%0A     * Creates a list of MediaInfos from the array of image urls%0A     * @param urls is an array of image urls%0A     * @return a list of MediaInfo objects%0A     */%0A    List%3CMediaInfo%3E images(String... urls);%0A%0A
     /**%0A    

add images(String... urls) method to MediaHelper