FeedsHelper

open class FeedsHelper

Constructors

Link copied to clipboard
constructor(coreApi: CoreApi, @NonNull notifyRepository: NotifyRepository)

Functions

Link copied to clipboard
open fun getFeedsView(context: Context, propertyId: Int, buildingId: Int, entityId: Int, shareCallback: NotifyRepository.Callback<Feed>, actionCallback: NotifyRepository.Callback<Feed>, callback: NotifyRepository.Callback<RecyclerView.Adapter<out Any>>)
Link copied to clipboard
open fun parseCampaignsToFeeds(@NonNull campaigns: List<Campaign>, coreApi: CoreApi): List<Feed>
Note: also filters expired campaigns ie if schedule end date is before today, they are not returned.