{"id":16525947,"url":"https://github.com/haroldadmin/networkresponseadapter","last_synced_at":"2025-04-04T15:11:54.840Z","repository":{"id":42459972,"uuid":"183674686","full_name":"haroldadmin/NetworkResponseAdapter","owner":"haroldadmin","description":"Retrofit call adapter to model success/failed responses as sealed types","archived":false,"fork":false,"pushed_at":"2024-04-17T07:28:17.000Z","size":1287,"stargazers_count":562,"open_issues_count":8,"forks_count":62,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-12-26T02:07:23.989Z","etag":null,"topics":["kotlin","kotlin-coroutines","kotlin-test","retrofit"],"latest_commit_sha":null,"homepage":"https://haroldadmin.github.io/NetworkResponseAdapter","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/haroldadmin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-26T18:13:27.000Z","updated_at":"2024-10-15T09:45:03.000Z","dependencies_parsed_at":"2024-04-17T08:39:29.698Z","dependency_job_id":"d14ddeb7-ef11-46c8-9a0b-a896305f1b19","html_url":"https://github.com/haroldadmin/NetworkResponseAdapter","commit_stats":{"total_commits":93,"total_committers":4,"mean_commits":23.25,"dds":"0.032258064516129004","last_synced_commit":"c1da40ab2d51f77de22c0176afaab6c374403c65"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haroldadmin%2FNetworkResponseAdapter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haroldadmin%2FNetworkResponseAdapter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haroldadmin%2FNetworkResponseAdapter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haroldadmin%2FNetworkResponseAdapter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haroldadmin","download_url":"https://codeload.github.com/haroldadmin/NetworkResponseAdapter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247198469,"owners_count":20900081,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["kotlin","kotlin-coroutines","kotlin-test","retrofit"],"created_at":"2024-10-11T17:08:06.224Z","updated_at":"2025-04-04T15:11:54.823Z","avatar_url":"https://github.com/haroldadmin.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NetworkResponse Retrofit adapter\n\n[![Build Status](https://github.com/haroldadmin/networkresponseadapter/workflows/CI/badge.svg)](https://github.com/haroldadmin/networkresponseadapter/actions)\n\nThis library provides a Kotlin Coroutines based Retrofit call adapter for wrapping your API responses in\na `NetworkResponse` sealed type.\n\n## Documentation\n\n[**https://haroldadmin.github.io/NetworkResponseAdapter**](https://haroldadmin.github.io/NetworkResponseAdapter)\n\n## Network Response\n\n`NetworkResponse\u003cS, E\u003e` is a Kotlin sealed interface with the following states:\n\n- `Success`: Represents successful network calls (2xx response codes)\n- `Error`: Represents unsuccessful network calls\n  - `ServerError`: Server errors (non 2xx responses)\n  - `NetworkError`: IO Errors, connectivity problems\n  - `UnknownError`: Any other errors, like serialization exceptions\n\nIt is generic on two types: a success response (`S`), and an error response (`E`).\n\n- `S`: Kotlin representation of a successful API response\n- `E`: Representation of an unsuccessful API response\n\nFind complete documentation at [**https://haroldadmin.github.io/NetworkResponseAdapter**](https://haroldadmin.github.io/NetworkResponseAdapter).\n\n## Installation\n\nAdd the Jitpack repository to your list of repositories:\n\n```groovy\nallprojects {\n    repositories {\n        maven { url 'https://jitpack.io' }\n    }\n}\n```\n\nAnd then add the dependency in your gradle file:\n\n```groovy\ndependencies {\n    implementation \"com.github.haroldadmin:NetworkResponseAdapter:(latest-version)\"\n}\n```\n\n[![Release](https://jitpack.io/v/haroldadmin/NetworkResponseAdapter.svg)](https://jitpack.io/#haroldadmin/NetworkResponseAdapter)\n\n## License\n\n```text\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharoldadmin%2Fnetworkresponseadapter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharoldadmin%2Fnetworkresponseadapter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharoldadmin%2Fnetworkresponseadapter/lists"}