Class MockFetcher

    • Constructor Detail

      • MockFetcher

        public MockFetcher()
    • Method Detail

      • fetchAllRemoteData

        @NotNull
        public RemoteData fetchAllRemoteData​(@NotNull
                                             RemoteDataFetcherOptions options)
        Description copied from interface: RemoteDataFetcher
        Fetches and returns the remote data provided the options to fetch. Method doesn't cache any results (hence can be slow, but always up-to-date) and doesn't throw.
        Specified by:
        fetchAllRemoteData in interface RemoteDataFetcher
        Parameters:
        options - the options
        Returns:
        remote data, if it exists and can be fetched, or null
      • fetchRemoteUserData

        @Nullable
        public RemoteUserData fetchRemoteUserData​(@NotNull
                                                  SUser user)
        Description copied from interface: RemoteDataFetcher
        Fetches and returns the remote data for the specified user. Method doesn't cache any results (hence can be slow, but always up-to-date) and doesn't throw.
        Specified by:
        fetchRemoteUserData in interface RemoteDataFetcher
        Parameters:
        user - the user
        Returns:
        remote data, if it exists and can be fetched, or null
      • fetchRemoteGroupData

        @Nullable
        public RemoteGroupData fetchRemoteGroupData​(@NotNull
                                                    SUserGroup userGroup)
        Description copied from interface: RemoteDataFetcher
        Fetches and returns the remote data for the specified user group. Method doesn't cache any results (hence can be slow, but always up-to-date) and doesn't throw.
        Specified by:
        fetchRemoteGroupData in interface RemoteDataFetcher
        Parameters:
        userGroup - the user group
        Returns:
        remote data, if it exists and can be fetched, or null