Skip to content

Commit

Permalink
fixup! Add support for searching threads and nodes
Browse files Browse the repository at this point in the history
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
  • Loading branch information
theimpulson committed Mar 26, 2024
1 parent 5e82c61 commit 7798849
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 12 deletions.
3 changes: 1 addition & 2 deletions app/src/main/java/io/aayush/relabs/network/XDAInterface.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Path
import retrofit2.http.Query
import retrofit2.http.QueryMap

interface XDAInterface {

Expand Down Expand Up @@ -114,8 +115,6 @@ interface XDAInterface {
suspend fun postSearch(
@Query("keywords") query: String,
@Query("search_type") type: String,
@Query("c[container_only]") searchThreadConstraint: Int? = null,
@Query("c[title_only]") searchTitleConstraint: Int? = null,
@Query("order") order: String = Order.RELEVANCE.value,
): Response<PostSearch>

Expand Down
3 changes: 0 additions & 3 deletions app/src/main/java/io/aayush/relabs/network/XDARepository.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package io.aayush.relabs.network
import android.util.Log
import androidx.paging.PagingData
import io.aayush.relabs.network.data.common.Success
import io.aayush.relabs.network.data.alert.Alerts
import io.aayush.relabs.network.data.alert.UserAlert
import io.aayush.relabs.network.data.expo.ExpoData
import io.aayush.relabs.network.data.node.Node
Expand All @@ -14,11 +13,9 @@ import io.aayush.relabs.network.data.react.React
import io.aayush.relabs.network.data.search.Type
import io.aayush.relabs.network.data.thread.Thread
import io.aayush.relabs.network.data.thread.ThreadInfo
import io.aayush.relabs.network.data.thread.Threads
import io.aayush.relabs.network.data.user.Me
import io.aayush.relabs.network.paging.GenericPagingSource.Companion.createPager
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.emptyFlow
import java.util.UUID
import okhttp3.MultipartBody
import retrofit2.Response
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ package io.aayush.relabs.network.data.search

enum class Type(val value: String) {
NODE("node"),
THREAD("post")
THREAD("thread")
}

0 comments on commit 7798849

Please sign in to comment.