src/main/java/org/jinstagram/InstagramBase.java
@Override
    public MediaFeed getRecentMediaFeed(String userId, int count, String minId, String maxId, Date maxTimeStamp,
            Date minTimeStamp) throws InstagramException {
        Preconditions.checkEmptyString(userId, USER_ID_CANNOT_BE_NULL_OR_EMPTY);
        Map<String, String> params = new HashMap<String, String>();

        if (maxId != null) {
            params.put(QueryParam.MAX_ID, String.valueOf(maxId));
        }

        if (minId != null) {
            params.put(QueryParam.MIN_ID, String.valueOf(minId));
        }

        if (count != 0) {
            params.put(QueryParam.COUNT, String.valueOf(count));
        }

        if (maxTimeStamp != null) {
            params.put(QueryParam.MAX_TIMESTAMP, String.valueOf(maxTimeStamp.getTime() / 1000));
        }

        if (minTimeStamp != null) {
            params.put(QueryParam.MIN_TIMESTAMP, String.valueOf(minTimeStamp.getTime() / 1000));
        }

        String methodName = format(Methods.USERS_RECENT_MEDIA, userId);

        return createInstagramObject(Verbs.GET, MediaFeed.class, methodName, params);

    }
@Override
    public MediaFeed getRecentMediaFeed(String userId, int count, String minId, String maxId, Date maxTimeStamp,
            Date minTimeStamp) throws InstagramException {
        Preconditions.checkEmptyString(userId, USER_ID_CANNOT_BE_NULL_OR_EMPTY);
        Map<String, String> params = new HashMap<String, String>();

        if (maxId != null) {
            params.put(QueryParam.MAX_ID, String.valueOf(maxId));
        }

        if (minId != null) {
            params.put(QueryParam.MIN_ID, String.valueOf(minId));
        }

        if (count != 0) {
            params.put(QueryParam.COUNT, String.valueOf(count));
        }

        if (maxTimeStamp != null) {
            params.put(QueryParam.MAX_TIMESTAMP, String.valueOf(maxTimeStamp.getTime() / 1000));
        }

        if (minTimeStamp != null) {
            params.put(QueryParam.MIN_TIMESTAMP, String.valueOf(minTimeStamp.getTime() / 1000));
        }

        String methodName = format(Methods.USERS_RECENT_MEDIA, userId);

        return createInstagramObject(Verbs.GET, MediaFeed.class, methodName, params);

    }
@ Override public MediaFeed getRecentMediaFeed ( String userId , int count , String minId , String maxId , Date maxTimeStamp , Date minTimeStamp ) throws InstagramException { Preconditions . checkEmptyString ( userId , USER_ID_CANNOT_BE_NULL_OR_EMPTY ) ; Map < String , String > params = new HashMap < String , String > ( ) ; if ( maxId != null ) { params . put ( QueryParam . MAX_ID , String . valueOf ( maxId ) ) ; } if ( minId != null ) { params . put ( QueryParam . MIN_ID , String . valueOf ( minId ) ) ; } if ( count != 0 ) { params . put ( QueryParam . COUNT , String . valueOf ( count ) ) ; } if ( maxTimeStamp != null ) { params . put ( QueryParam . MAX_TIMESTAMP , String . valueOf ( maxTimeStamp . getTime ( ) / 1000 ) ) ; } if ( minTimeStamp != null ) { params . put ( QueryParam . MIN_TIMESTAMP , String . valueOf ( minTimeStamp . getTime ( ) / 1000 ) ) ; } String methodName = format ( Methods . USERS_RECENT_MEDIA , userId ) ; return createInstagramObject ( Verbs . GET , MediaFeed . class , methodName , params ) ; }
/* (non-Javadoc)
@see org.jinstagram.InstagramClient#getRecentMediaFeed(java.lang.String, int, java.lang.String, java.lang.String, java.util.Date, java.util.Date)
/ * ( non - Javadoc )