Commit Graph

66 Commits

Author SHA1 Message Date
Esta Nagy a2b0360e4b New mapping approach (#41)
* New mapping approach
- Refreshes license information in file headers
- Rewrites API models to eliminate most of the custom mapping code
- Redefines API configuration options
- Simplifies fetching and mapping logic
- Updates dependency versions
- Reduces Java source level to 8 everywhere to eliminate JavaDoc warnings related to generated code
- Moves some in-line JSONs to class path resources to make tests more clean
- Adds assumptions to skip integration tests if API key is not set
- Adds assumptions to skip One Call API tests unless RUN_ONE_CALL env var is set
- Solves issue around UnsupportedOperationExceptions in certain terminators
- Adds option to use secure channel for picture URLs
- Adds new tests

Signed-off-by: Esta Nagy <nagyesta@gmail.com>

* New mapping approach - Code review
- Minor fixes
- Adds new tests

Signed-off-by: Esta Nagy <nagyesta@gmail.com>

* New mapping approach - Code review
- Add more tests

Signed-off-by: Esta Nagy <nagyesta@gmail.com>

* New mapping approach - Code review
- Unified coordinate and time period usage
- Fixed local system dependent test

Signed-off-by: Esta Nagy <nagyesta@gmail.com>

* New mapping approach - Code review
- Fixed line separator issue in response processing
- Changed how unitSystem can be defined by moving this parameter to the JSON/XML/HTML terminator methods

Signed-off-by: Esta Nagy <nagyesta@gmail.com>

Signed-off-by: Esta Nagy <nagyesta@gmail.com>
2022-10-01 00:57:01 +03:00
Prominence b83b121e90 Adjusted to use HTTPS protocol by default. Added possibility to change request protocol. 2022-08-13 16:08:35 +03:00
Prominence 2d81dadfad Fixed javadoc layout. 2022-05-02 22:35:52 +03:00
Prominence 5e4b34632e Reimplemented request executor. Added possibility to test requests with mocked http requests. 2022-05-02 20:12:34 +03:00
Prominence 6c1a1642f1 Implemented first part of Road Risk API. 2022-05-02 01:19:19 +03:00
Prominence 8a1daa0fe2 Updated 5 Day / 3 Hour Forecast functionality. 2022-05-01 21:21:24 +03:00
Prominence 7e88fe597c Updated javadocs. 2022-05-01 18:23:17 +03:00
Prominence aa48ac3aa0 Implemented Solar Radiation API functionality. Small refactoring. 2022-05-01 18:19:33 +03:00
Prominence 7f0866ffa2 Implemented climatic forecast for 30 days. Some refactoring. 2022-05-01 01:23:51 +03:00
Prominence 4fdb48986e A bunch of global refactoring and improvements.
Improved coverage reports generation.
Updated docs.
Moved logic out of large mappers into small deserializers.
Implemented Geocoding API functionality.
Implemented Hourly forecast functionality.
Implemented Daily forecast functionality.
Renamed Coordinate class.
Reimplemented Current Weather API: removed multiple locations requests. Marked officially deprecated methods as @Deprecated.
Updated tests.
2022-04-30 01:35:45 +03:00
Prominence 8ca55b15f7 Adjusted to use 17 source and 8 target version. Code refactoring. Docs improvements. 2022-04-19 22:15:19 +03:00
Prominence 40462397c1 Added methods and fields to represent daily moonrise/moonset information. Added tests. Fixed UKRAINIAN language constant name. Updated docs. 2022-04-15 00:37:04 +03:00
Prominence 44b543e65c Another portion of refactoring. Updated dependencies. 2022-04-14 23:30:44 +03:00
Prominence 13b20fc7e9 Moved mappers into separate package. 2022-04-14 20:28:23 +03:00
Prominence 2a531dd683 Started global refactoring. Added timeout parameters for requests. 2022-04-13 00:13:27 +03:00
Alexey Zinchenko 3c8b00eae1 Releasing 2.2.0 version. 2021-04-17 17:14:51 +03:00
Alexey Zinchenko e594ffb7ad 2.1.1 version implementation. 2021-04-15 00:00:48 +03:00
Alexey Zinchenko 4cfa8ab843 2.1.0 version implementation. 2021-04-12 02:00:51 +03:00
Alexey Zinchenko f5d202aee3 Version 2.0.1 (#13)
* Added method for weather icon id retrieval. Small internal changes in models.

* Changed temperature unit signs.
2021-03-26 23:32:57 +03:00
Prominence cba15e6420 Added logging on requests. 2021-03-26 00:56:19 +03:00
Prominence 64e02cd7a8 A lot of refactoring and documentation writing. 2021-03-26 00:48:39 +03:00
Prominence c68c6fd2b6 Wrote documentation. 2021-03-25 00:58:14 +03:00
Prominence cdc5a4b380 Added tests for forecast functionality. 2021-03-24 02:15:01 +03:00
Prominence a0e289cc2c Rechecked all tests. Fixed API customization possibilities. 2021-03-24 01:32:49 +03:00
Prominence ef138d3bfe Added unit tests. Removed obsolete API parameter. 2021-03-24 00:04:55 +03:00
Prominence 4c7b553b81 Added javadocs and refactoring. 2021-03-23 21:15:35 +03:00
Prominence 599faf60cc Fixed tests. 2021-03-23 11:27:26 +03:00
Prominence 930776f5c2 Tests refactoring. Got rid of 'assert 'statement. 2021-03-23 01:56:08 +03:00
Prominence 5d6b8c4d97 Rechecked weather API response mapping. Refactoring. 2021-03-22 23:00:30 +03:00
Prominence f7741e1df6 Implemented free-plan weather forecast retrieving. 2021-03-22 01:46:44 +03:00
Prominence ea39441e83 Initial implementation of free-plan forecast retriever. Small refactoring. 2021-03-21 02:32:39 +03:00
Prominence d63de824b3 Refactoring. Checked old implementation. 2021-03-21 00:41:58 +03:00
Prominence 10ba59652b Package reorganizations. Small refactoring. 2021-03-20 23:48:57 +03:00
Prominence 3845e41bcd Renamed exception. Documentation enhancements. Small refactoring for unit systems. 2019-06-26 20:35:56 +03:00
Prominence babc48bf6c Fixed docs. Removed 'annotations' dependency. 2019-06-25 23:08:51 +03:00
Prominence d3ca16472b Added draft unit tests for model to cover all lines. 2019-06-25 22:59:38 +03:00
Prominence dbc5b08f43 More tests were added. 2019-06-17 22:46:35 +03:00
Prominence 3cb26b7d20 Added slf4j-api. Small refactoring. 2019-06-17 20:32:50 +03:00
Prominence 6e0ddc2a83 Added codecov support. 2019-06-16 14:42:42 +03:00
Prominence 1812a39108 Removed debug output. Fixed async result retrieving in tests. 2019-06-14 21:32:54 +03:00
Prominence aed72a5ab5 Added new draft current weather retrieving implementation. 2019-06-13 23:48:05 +03:00
Prominence c6bbf7be90 Changed custom exceptions: now they are uncheked. Fixed several API issues. Added tests. 2019-05-29 22:50:07 +03:00
Prominence 39d56b6782 Implemented Air Pollution retrieving. 2018-08-02 21:34:41 +03:00
Prominence 0487e0f2d0 'System' class was removed. 2018-08-01 21:02:42 +03:00
Prominence c288f71826 Useless imports were removed. 2018-08-01 21:00:11 +03:00
Prominence 157959e537 'System' class was removed. 2018-08-01 20:40:17 +03:00
Prominence 126bfc2d56 Updated documentation. Added useful method. 2018-07-31 23:53:45 +03:00
Prominence e5dee248b6 Implemented UltravioletIndex retrieving. Renamed JSON utulity class. 2018-07-29 18:55:05 +03:00
Prominence d86b228c6e Implemented DailyForecast requesting. Added 'lombok' dependency. Some refactoring... 2018-07-25 00:19:43 +03:00
Prominence f00ae8d37c Changed basic package name. Improved 'pom.xml' configuration. 2018-07-19 23:52:22 +03:00