public void RevokeAccount(IYoutubeAccountContainer container, IYoutubeAccount account) { LOGGER.Info($"Revoking connecgtion to account with id: {account.Id} and title: '{account.Title}'"); YoutubeAccountService.RevokeAccessOfAccount(account); container.UnregisterAccount(account); }
public static string GetActiveToken(this IYoutubeAccount account) { LOGGER.Debug($"Returning active access token for account with id: {account.Id} and title: '{account.Title}'"); return(YoutubeAccountService.GetAccessToken(account)); }
public static string GetActiveToken(this IList <IYoutubeAccountAccess> access) { LOGGER.Debug($"Returning active access token for one of {access.Count} accesses"); return(YoutubeAccountService.GetAccessToken(access)); }