1
0
镜像来自 https://github.com/KokaKiwi/BarInsta synced 2025-09-17 22:53:45 +00:00

random cleanup

This commit is contained in:
Austin Huang 2021-07-24 19:30:24 -04:00
父節點 94a5fdc6fe
當前提交 5ce6859837
沒有發現已知的金鑰在資料庫的簽署中
GPG Key ID: 84C23AA04587A91F
共有 4 個文件被更改,包括 5 次插入6 次删除

查看文件

@ -1,7 +1,6 @@
package awais.instagrabber.webservices
import android.util.Log
import awais.instagrabber.models.enums.FollowingType
import awais.instagrabber.repositories.GraphQLService
import awais.instagrabber.repositories.responses.*
import awais.instagrabber.utils.Constants
@ -299,7 +298,7 @@ open class GraphQLRepository(private val service: GraphQLService) {
fun getInstance(): GraphQLRepository {
return INSTANCE ?: synchronized(this) {
val service: GraphQLService = RetrofitFactory.retrofitWeb.create(GraphQLService::class.java)
val service = RetrofitFactory.retrofitWeb.create(GraphQLService::class.java)
GraphQLRepository(service).also { INSTANCE = it }
}
}

查看文件

@ -189,7 +189,7 @@ class MediaRepository(private val service: MediaService) {
fun getInstance(): MediaRepository {
return INSTANCE ?: synchronized(this) {
val service: MediaService = retrofit.create(MediaService::class.java)
val service = retrofit.create(MediaService::class.java)
MediaRepository(service).also { INSTANCE = it }
}
}

查看文件

@ -10,7 +10,7 @@ import com.google.common.collect.ImmutableMap
import java.util.*
import java.util.stream.Collectors
class ProfileRepository private constructor(private val repository: ProfileService) {
open class ProfileRepository(private val repository: ProfileService) {
suspend fun fetchPosts(
userId: Long,
maxId: String?
@ -113,7 +113,7 @@ class ProfileRepository private constructor(private val repository: ProfileServi
fun getInstance(): ProfileRepository {
return INSTANCE ?: synchronized(this) {
val service: ProfileService = RetrofitFactory.retrofit.create(ProfileService::class.java)
val service = RetrofitFactory.retrofit.create(ProfileService::class.java)
ProfileRepository(service).also { INSTANCE = it }
}
}

查看文件

@ -6,7 +6,7 @@ import awais.instagrabber.webservices.RetrofitFactory.retrofitWeb
import com.google.common.collect.ImmutableMap
import retrofit2.Call
class SearchRepository(private val service: SearchService) {
open class SearchRepository(private val service: SearchService) {
suspend fun search(
isLoggedIn: Boolean,
query: String,