getConsents

fun getConsents(sessionToken: String, loadStrategy: ConsentLoadStrategy = ConsentLoadStrategy.CACHE): Observable<List<ConsentGroup>>

getConsents, This Observable will emmit the List of a users ConsentGroup every time changes have been made to the list locally. The application UI should update every time this observable emits a new value.

Return

a Observable that emits the ConsentGroup list.

Parameters

sessionToken

token of the user.

loadStrategy

the load strategy CACHE or REFRESH default is CACHE