Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add extensions for getting all data kinds of a Contact or RawContact as a list #312

Closed
2 tasks done
vestrel00 opened this issue Sep 5, 2023 · 1 comment
Closed
2 tasks done
Assignees
Labels
enhancement New feature or request

Comments

@vestrel00
Copy link
Owner

vestrel00 commented Sep 5, 2023

Problem

Currently, in order for users of this library to gather all of the DataEntity belonging to a RawContact (or all of the RawContacts belonging to a Contact), they would have to manually build that list... It might look something like this,

val rawContactData = buildList<ExistingDataEntity> {
    addAll(rawContact.addresses)
    addAll(rawContact.emails)
    addAll(rawContact.events)
    // and so on...
}

Gathering all data in a single list may be useful in some cases such as #306 or contacts.core.data.Data APIs.

Solution

Implement and provide extension functions for library users so they don't have to!

  • Update relevant docs (about-api-entities.md, convenience-functions.md)
  • Update gh-pages
@vestrel00 vestrel00 added the enhancement New feature or request label Sep 5, 2023
@vestrel00 vestrel00 self-assigned this Sep 5, 2023
@vestrel00 vestrel00 added this to In progress in General maintenance Sep 5, 2023
@vestrel00 vestrel00 moved this from In progress to Done in General maintenance Sep 5, 2023
@vestrel00
Copy link
Owner Author

🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥
This is now release in 0.3.1!
🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

1 participant