// Path: glidesample/src/main/java/example/com/glidesample/model/CustomImageSizeModel.java
// public interface CustomImageSizeModel {
//     String requestCustomSizeUrl(int width, int height);
// 
//     String getBaseUrl();
// }


import android.content.Context;
import com.bumptech.glide.load.model.stream.BaseGlideUrlLoader;
import example.com.glidesample.model.CustomImageSizeModel;
package example.com.glidesample.glide;




/**
 * Created by Administrator on 2016/7/7.
 */
public class CustomImageModelLoader extends BaseGlideUrlLoader<CustomImageSizeModel> {
    public CustomImageModelLoader(Context context) {
        super(context);
    }

    @Override
    protected String getUrl(CustomImageSizeModel model, int width, int height) {
// Path: glidesample/src/main/java/example/com/glidesample/model/CustomImageSizeModel.java
// public interface CustomImageSizeModel {
//     String requestCustomSizeUrl(int width, int height);
// 
//     String getBaseUrl();
// }


// Path: glidesample/src/main/java/example/com/glidesample/glide/CustomImageModelLoader.java
import android.content.Context;
import com.bumptech.glide.load.model.stream.BaseGlideUrlLoader;
import example.com.glidesample.model.CustomImageSizeModel;

package example.com.glidesample.glide;




/**
 * Created by Administrator on 2016/7/7.
 */
public class CustomImageModelLoader extends BaseGlideUrlLoader<CustomImageSizeModel> {
    public CustomImageModelLoader(Context context) {
        super(context);
    }

    @Override
    protected String getUrl(CustomImageSizeModel model, int width, int height) {
        return model.requestCustomSizeUrl(width, height);