-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
220 changed files
with
6,241 additions
and
11,209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
app_fenrir/src/main/kotlin/dev/ragnarok/fenrir/api/IOtherVkRestProvider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package dev.ragnarok.fenrir.api | ||
|
||
import dev.ragnarok.fenrir.api.rest.SimplePostHttp | ||
import io.reactivex.rxjava3.core.Single | ||
|
||
interface IOtherVkRestProvider { | ||
fun provideAuthRest(): Single<SimplePostHttp> | ||
fun provideAuthServiceRest(): Single<SimplePostHttp> | ||
fun provideLongpollRest(): Single<SimplePostHttp> | ||
fun provideLocalServerRest(): Single<SimplePostHttp> | ||
} |
10 changes: 0 additions & 10 deletions
10
app_fenrir/src/main/kotlin/dev/ragnarok/fenrir/api/IOtherVkRetrofitProvider.kt
This file was deleted.
Oops, something went wrong.
5 changes: 3 additions & 2 deletions
5
app_fenrir/src/main/kotlin/dev/ragnarok/fenrir/api/IServiceProvider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
package dev.ragnarok.fenrir.api | ||
|
||
import dev.ragnarok.fenrir.api.rest.IServiceRest | ||
import io.reactivex.rxjava3.core.Single | ||
|
||
interface IServiceProvider { | ||
fun <T : Any> provideService( | ||
fun <T : IServiceRest> provideService( | ||
accountId: Int, | ||
serviceClass: Class<T>, | ||
serviceClass: T, | ||
vararg tokenTypes: Int | ||
): Single<T> | ||
} |
8 changes: 8 additions & 0 deletions
8
app_fenrir/src/main/kotlin/dev/ragnarok/fenrir/api/IUploadRestProvider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package dev.ragnarok.fenrir.api | ||
|
||
import dev.ragnarok.fenrir.api.rest.SimplePostHttp | ||
import io.reactivex.rxjava3.core.Single | ||
|
||
interface IUploadRestProvider { | ||
fun provideUploadRest(): Single<SimplePostHttp> | ||
} |
7 changes: 0 additions & 7 deletions
7
app_fenrir/src/main/kotlin/dev/ragnarok/fenrir/api/IUploadRetrofitProvider.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
app_fenrir/src/main/kotlin/dev/ragnarok/fenrir/api/IVkRestProvider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package dev.ragnarok.fenrir.api | ||
|
||
import dev.ragnarok.fenrir.AccountType | ||
import dev.ragnarok.fenrir.api.rest.SimplePostHttp | ||
import io.reactivex.rxjava3.core.Single | ||
import okhttp3.OkHttpClient | ||
|
||
interface IVkRestProvider { | ||
fun provideNormalRest(accountId: Int): Single<SimplePostHttp> | ||
fun provideCustomRest(accountId: Int, token: String): Single<SimplePostHttp> | ||
fun provideServiceRest(): Single<SimplePostHttp> | ||
fun provideNormalHttpClient(accountId: Int): Single<OkHttpClient.Builder> | ||
fun provideRawHttpClient(@AccountType type: Int): Single<OkHttpClient.Builder> | ||
} |
13 changes: 0 additions & 13 deletions
13
app_fenrir/src/main/kotlin/dev/ragnarok/fenrir/api/IVkRetrofitProvider.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 0 additions & 40 deletions
40
app_fenrir/src/main/kotlin/dev/ragnarok/fenrir/api/RetrofitWrapper.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.