-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feature|optimize] Support show RSS icon; support directly download m…
…agnet/torrent link; support show all articles; replaced Filled icon with Outlined icon
- Loading branch information
Showing
49 changed files
with
614 additions
and
485 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
34 changes: 34 additions & 0 deletions
34
app/src/main/java/com/skyd/anivu/model/bean/FaviconBean.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,34 @@ | ||
package com.skyd.anivu.model.bean | ||
|
||
import androidx.annotation.Keep | ||
import com.skyd.anivu.base.BaseBean | ||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Keep | ||
@Serializable | ||
data class FaviconBean( | ||
@SerialName("url") | ||
val url: String?, | ||
@SerialName("icons") | ||
val icons: List<FaviconItem>?, | ||
) : BaseBean { | ||
@Keep | ||
@Serializable | ||
data class FaviconItem( | ||
@SerialName("url") | ||
val url: String?, | ||
@SerialName("width") | ||
val width: Int?, | ||
@SerialName("height") | ||
val height: Int?, | ||
@SerialName("format") | ||
val format: String?, | ||
@SerialName("bytes") | ||
val bytes: Long?, | ||
@SerialName("error") | ||
val error: String?, | ||
@SerialName("sha1sum") | ||
val sha1sum: String?, | ||
) : BaseBean | ||
} |
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
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
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
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
5 changes: 5 additions & 0 deletions
5
app/src/main/java/com/skyd/anivu/model/service/HttpService.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,16 @@ | ||
package com.skyd.anivu.model.service | ||
|
||
import com.skyd.anivu.model.bean.FaviconBean | ||
import okhttp3.ResponseBody | ||
import retrofit2.Call | ||
import retrofit2.http.GET | ||
import retrofit2.http.Query | ||
import retrofit2.http.Url | ||
|
||
interface HttpService { | ||
@GET | ||
fun requestGetResponseBody(@Url url: String): Call<ResponseBody> | ||
|
||
@GET("https://besticon-demo.herokuapp.com/allicons.json") | ||
suspend fun requestFavicon(@Query("url") url: String): FaviconBean | ||
} |
Oops, something went wrong.