|
|
@ -37,13 +37,13 @@ class OfflineFirstUserDataRepository @Inject constructor(
|
|
|
|
override suspend fun setFollowedTopicIds(followedTopicIds: Set<String>) =
|
|
|
|
override suspend fun setFollowedTopicIds(followedTopicIds: Set<String>) =
|
|
|
|
niaPreferencesDataSource.setFollowedTopicIds(followedTopicIds)
|
|
|
|
niaPreferencesDataSource.setFollowedTopicIds(followedTopicIds)
|
|
|
|
|
|
|
|
|
|
|
|
override suspend fun toggleFollowedTopicId(followedTopicId: String, followed: Boolean) {
|
|
|
|
override suspend fun setTopicIdFollowed(followedTopicId: String, followed: Boolean) {
|
|
|
|
niaPreferencesDataSource.toggleFollowedTopicId(followedTopicId, followed)
|
|
|
|
niaPreferencesDataSource.setTopicIdFollowed(followedTopicId, followed)
|
|
|
|
analyticsHelper.logTopicFollowToggled(followedTopicId, followed)
|
|
|
|
analyticsHelper.logTopicFollowToggled(followedTopicId, followed)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
override suspend fun updateNewsResourceBookmark(newsResourceId: String, bookmarked: Boolean) {
|
|
|
|
override suspend fun updateNewsResourceBookmark(newsResourceId: String, bookmarked: Boolean) {
|
|
|
|
niaPreferencesDataSource.toggleNewsResourceBookmark(newsResourceId, bookmarked)
|
|
|
|
niaPreferencesDataSource.setNewsResourceBookmarked(newsResourceId, bookmarked)
|
|
|
|
analyticsHelper.logNewsResourceBookmarkToggled(
|
|
|
|
analyticsHelper.logNewsResourceBookmarkToggled(
|
|
|
|
newsResourceId = newsResourceId,
|
|
|
|
newsResourceId = newsResourceId,
|
|
|
|
isBookmarked = bookmarked,
|
|
|
|
isBookmarked = bookmarked,
|
|
|
|