{"id":23379223,"url":"https://github.com/johnjohndoe/halfnarpclient","last_synced_at":"2025-04-10T20:45:51.367Z","repository":{"id":23954673,"uuid":"27336624","full_name":"johnjohndoe/HalfnarpClient","owner":"johnjohndoe","description":"A Java library containing a parser and models for the Halfnarp API.","archived":false,"fork":false,"pushed_at":"2022-03-31T13:28:27.000Z","size":571,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T18:21:15.379Z","etag":null,"topics":["31c3","32c3","33c3","34c3","35c3","36c3","ccc","halfnarp","halfnarp-api","jackson","java","rc3","retrofit2","schedule","scr","sha","sha2017"],"latest_commit_sha":null,"homepage":"https://github.com/johnjohndoe/HalfnarpClient","language":"Java","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/johnjohndoe.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-30T13:29:13.000Z","updated_at":"2024-05-17T16:42:47.000Z","dependencies_parsed_at":"2022-07-30T05:07:57.339Z","dependency_job_id":null,"html_url":"https://github.com/johnjohndoe/HalfnarpClient","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnjohndoe%2FHalfnarpClient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnjohndoe%2FHalfnarpClient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnjohndoe%2FHalfnarpClient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnjohndoe%2FHalfnarpClient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnjohndoe","download_url":"https://codeload.github.com/johnjohndoe/HalfnarpClient/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248294885,"owners_count":21079997,"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":["31c3","32c3","33c3","34c3","35c3","36c3","ccc","halfnarp","halfnarp-api","jackson","java","rc3","retrofit2","schedule","scr","sha","sha2017"],"created_at":"2024-12-21T19:17:14.475Z","updated_at":"2025-04-10T20:45:51.345Z","avatar_url":"https://github.com/johnjohndoe.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.com/johnjohndoe/HalfnarpClient.svg?branch=master)](https://travis-ci.com/johnjohndoe/HalfnarpClient) [![Apache License](http://img.shields.io/badge/license-Apache%20License%202.0-lightgrey.svg)](http://choosealicense.com/licenses/apache-2.0/) [![Known Vulnerabilities](https://snyk.io/test/github/johnjohndoe/halfnarpclient/badge.svg?targetFile=build.gradle)](https://snyk.io/test/github/johnjohndoe/halfnarpclient?targetFile=build.gradle)\n\n# Halfnarp Client\n\nA Java library containing a parser and models for the Halfnarp API available here:\n\n* http://halfnarp.events.ccc.de/-/talkpreferences\n\nThe source code of the API can be found here:\n\n* https://github.com/tomster/halfnarp\n\n\n## Demo application\n\nPlease note there is a Android demo application for this library available:\n\n* https://github.com/johnjohndoe/HalfnarpClientDemo\n\n\n## Usage\n\nThe library can be accessed via the `ApiModule` class.\n\n```java\nTalkPreferencesService service = ApiModule.getTalkPreferencesService(final String baseUrl);\n\nCall\u003cList\u003cGetTalksResponse\u003e\u003e getTalksCall = service.getTalks();\n// Execute getTalks call to send a request to the webserver.\n\nCall\u003cCreateTalkPreferencesSuccessResponse\u003e createTalkPreferencesSuccessResponseCall =\n                mService.createTalkPreferences(talkIds);\n// Execute createTalkPreferencesSuccessResponse call to send a request to the webserver.\n\nCall\u003cUpdateTalkPreferencesSuccessResponse\u003e updateTalkPreferencesSuccessResponseCall =\n                mService.updateTalkPreferences(uniqueId, talkIds);\n// Execute updateTalkPreferencesSuccessResponse call to send a request to the webserver.\n\nCall\u003cGetTalkPreferencesSuccessResponse\u003e getTalkPreferencesSuccessResponseCall =\n                mService.getTalkPreferences(uniqueId);\n// Execute getTalkPreferencesSuccessResponse call to send a request to the webserver.\n```\n\nMake sure to define the following `packagingOptions` in the  `build.gradle` of you app.\n\n```groovy\npackagingOptions {\n    pickFirst \"META-INF/LICENSE\"\n    pickFirst \"META-INF/NOTICE\"\n}\n```\n\n\n### Gradle build\n\nTo deploy the library to your local Maven repository run the following task:\n\n```bash\n$ ./gradlew publishToMavenLocal\n```\n\nThen, to use the library in your project add the following to\nyour top level `build.gradle`:\n\n```\nallprojects {\n    repositories {\n        mavenLocal()\n    }\n}\n```\n\nand to your application module `build.gradle`:\n\n\n```groovy\ndependencies {\n    implementation \"info.metadude.java.library.halfnarp:halfnarp-client:$version\"\n}\n```\n\n## Tests\n\nRun the following command to execute all tests:\n\n```groovy\n$ ./gradlew clean test\n```\n\n## Which applications are using this library?\n\n* Schedule Conflict Resolvr - [Sources][scr-sources], [PlayStore][scr-playstore]\n\n\n## Author\n\n* [Tobias Preuss][tobias-preuss]\n\n## License\n\n    Copyright 2015 - 2022 Tobias Preuss\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n\n\n[tobias-preuss]: https://github.com/johnjohndoe\n[scr-sources]: https://github.com/ligi/SCR\n[scr-playstore]: https://play.google.com/store/apps/details?id=org.ligi.scr\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnjohndoe%2Fhalfnarpclient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnjohndoe%2Fhalfnarpclient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnjohndoe%2Fhalfnarpclient/lists"}