[][src]Trait mygpoclient::suggestion::RetrieveSuggestedPodcasts

pub trait RetrieveSuggestedPodcasts {
    fn retrieve_suggested_podcasts(
        &self,
        max_results: u8
    ) -> Result<Vec<Suggestion>, Error>; }

Required methods

fn retrieve_suggested_podcasts(
    &self,
    max_results: u8
) -> Result<Vec<Suggestion>, Error>

Retrieve Suggested Podcasts

Download a list of podcasts that the user has not yet subscribed to (by checking all server-side subscription lists) and that might be interesting to the user based on existing subscriptions (again on all server-side subscription lists).

The server does not specify the “relevance” for the podcast suggestion, and the client application SHOULD filter out any podcasts that are already added to the client application but that the server does not know about yet (although this is just a suggestion for a good client-side UX).

Examples

use mygpoclient::client::AuthenticatedClient;
use mygpoclient::suggestion::RetrieveSuggestedPodcasts;

let client = AuthenticatedClient::new(&username, &password);

let max_results = 3;
let suggestions = client.retrieve_suggested_podcasts(max_results)?;

assert!(suggestions.len() <= max_results as usize);

See also

Loading content...

Implementors

impl RetrieveSuggestedPodcasts for AuthenticatedClient[src]

impl RetrieveSuggestedPodcasts for DeviceClient[src]

Loading content...