library/src/main/java/com/github/lykmapipo/retrofit/HttpService.java
@NonNull
    public static <S> S create(
            final Class<S> service, final String baseUrl,
            final String authToken, final Long timeout
    ) {
        // create provided service and return
        AuthProvider authProvider = new AuthProvider() {
            @Override
            public String getToken() {
                return authToken;
            }
        };
        return create(service, baseUrl, authProvider, null, timeout);
    }
/**
     * Create an implementation of the API endpoints defined by the {@code service} interface.
     *
     * @param service   valid retrofit service definition
     * @param baseUrl   valid service base url
     * @param authToken valid api authentication token(key)
     * @param timeout   valid request(connect, read, write) timeout (in seconds). The default is 10 seconds.
     * @return an object of type S from the {@code service} creation
     */
Create an implementation of the API endpoints defined by the  service interface.
@param service   valid retrofit service definition
@param baseUrl   valid service base url
@param authToken valid api authentication token(key)
@param timeout   valid request(connect, read, write) timeout (in seconds). The default is 10 seconds.
@return an object of type S from the  service creation
Create an implementation of the API endpoints defined by the service interface . @param service valid retrofit service definition @param baseUrl valid service base url @param authToken valid api authentication token ( key ) @param timeout valid request ( connect read write ) timeout ( in seconds ) . The default is 10 seconds . @return an object of type S from the service creation
@NonNull
    public static <S> S create(
            final Class<S> service, final String baseUrl,
            final String authToken, final Long timeout
    ) {
        AuthProvider authProvider = new AuthProvider() {
            @Override
            public String getToken() {
                return authToken;
            }
        };
        return create(service, baseUrl, authProvider, null, timeout);
    }
@ NonNull public static < S > S create ( final Class < S > service , final String baseUrl , final String authToken , final Long timeout ) { AuthProvider authProvider = new AuthProvider ( ) { @ Override public String getToken ( ) { return authToken ; } } ; return create ( service , baseUrl , authProvider , null , timeout ) ; }
Create an implementation of the API endpoints defined by the {@code service} interface.
Create an implementation of the API endpoints defined by the { @code service } interface .
// create provided service and return