Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3ee5860b authored by Vincent Bourgmayer's avatar Vincent Bourgmayer
Browse files

feature: add GitlabReleaseInfo as data class. Use it as return type for...

feature: add GitlabReleaseInfo as data class. Use it as return type for SystemAppDefinitionApi.kt->getStstelAppReleases(...)
parent 184e4af9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@

package foundation.e.apps.data.gitlab

import foundation.e.apps.data.gitlab.models.GitlabReleaseInfo
import foundation.e.apps.data.gitlab.models.SystemAppInfo
import retrofit2.Response
import retrofit2.http.GET
@@ -50,7 +51,7 @@ interface SystemAppDefinitionApi {
    @GET(LIST_RELEASES_URL_SEGMENT)
    suspend fun getSystemAppReleases(
        @Path(PROJECT_ID_PLACEHOLDER) projectId: Int
    )//: Response<@TODO>
    ): Response<List<GitlabReleaseInfo>>

    @GET(UPDATE_INFO_BY_TAG_URL_SEGMENT)
    suspend fun getSystemAppUpdateInfoByTag(
+14 −0
Original line number Diff line number Diff line
package foundation.e.apps.data.gitlab.models

import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import com.squareup.moshi.Json
import java.util.Date


@JsonIgnoreProperties(ignoreUnknown = true)
data class GitlabReleaseInfo(
    @Json(name = "tag_name") val tagName: String,
    @Json(name = "name") val releaseName: String,
    @Json(name = "created_at") val createdAt: Date,
    @Json(name = "released_at") val releasedAt: Date,
)