Skip to content
This repository has been archived by the owner on Jul 30, 2023. It is now read-only.

added allargs constructor to entities. #53

Merged
merged 1 commit into from May 22, 2017
Merged

added allargs constructor to entities. #53

merged 1 commit into from May 22, 2017

Conversation

wakingrufus
Copy link
Contributor

This allows them to be instantiated with values without json. This is useful for testing.
It also makes it easier to switch them to "data" classes if the need ever arises.

Reason: I am trying to use this library in a project, and I can't create the entities to pass to my code for testing purposes.

This allows them to be instantiated with values without json. This is useful for testing.
It also makes it easier to switch them to "data" classes if the need ever arises.
@codecov-io
Copy link

Codecov Report

Merging #53 into master will decrease coverage by 3.15%.
The diff coverage is 63%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master      #53      +/-   ##
============================================
- Coverage     61.29%   58.13%   -3.16%     
  Complexity      147      147              
============================================
  Files            43       43              
  Lines           633      633              
  Branches         60       60              
============================================
- Hits            388      368      -20     
- Misses          231      251      +20     
  Partials         14       14
Impacted Files Coverage Δ Complexity Δ
...n/java/com/sys1yagi/mastodon4j/api/entity/Error.kt 0% <0%> (ø) 0 <0> (ø) ⬇️
...a/com/sys1yagi/mastodon4j/api/entity/Attachment.kt 100% <100%> (ø) 7 <7> (ø) ⬇️
...com/sys1yagi/mastodon4j/api/entity/Relationship.kt 100% <100%> (ø) 7 <7> (ø) ⬇️
...java/com/sys1yagi/mastodon4j/api/entity/Results.kt 100% <100%> (ø) 4 <4> (ø) ⬇️
...java/com/sys1yagi/mastodon4j/api/entity/Context.kt 100% <100%> (ø) 3 <3> (ø) ⬇️
...sys1yagi/mastodon4j/api/entity/auth/AccessToken.kt 100% <100%> (ø) 1 <1> (ø) ⬇️
...ava/com/sys1yagi/mastodon4j/api/entity/Instance.kt 100% <100%> (ø) 6 <6> (ø) ⬇️
.../java/com/sys1yagi/mastodon4j/api/entity/Report.kt 100% <100%> (ø) 3 <3> (ø) ⬇️
...in/java/com/sys1yagi/mastodon4j/api/entity/Card.kt 100% <100%> (ø) 5 <5> (ø) ⬇️
...java/com/sys1yagi/mastodon4j/api/entity/Mention.kt 20% <20%> (-60%) 1 <1> (ø)
... and 6 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f9e87f5...2c14f54. Read the comment docs.

@sys1yagi sys1yagi added this to the 1.1.0 milestone May 22, 2017
@sys1yagi
Copy link
Owner

thanks. LGTM

@sys1yagi sys1yagi merged commit a02d8a3 into sys1yagi:master May 22, 2017
@sys1yagi
Copy link
Owner

v1.1.0 released 🎊

https://jitpack.io/#sys1yagi/mastodon4j/1.1.0
compile 'com.github.sys1yagi.mastodon4j:mastodon4j:1.1.0'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants