Exemplo n.º 1
0
        public static string GetRealChannelType(this InstaTvChannelType type)
        {
            switch (type)
            {
            case InstaTvChannelType.ChronoFollowing:
                return("chrono_following");

            case InstaTvChannelType.ContinueWatching:
                return("continue_watching");

            case InstaTvChannelType.Popular:
                return("popular");

            case InstaTvChannelType.User:
                return("user");

            case InstaTvChannelType.ForYou:
            default:
                return("for_you");
            }
        }
Exemplo n.º 2
0
 /// <summary>
 ///     Get channel by <seealso cref="InstaTvChannelType" />
 /// </summary>
 /// <param name="channelType">Channel type</param>
 /// <param name="paginationParameters">Pagination parameters: next id and max amount of pages to load</param>
 public Task <IResult <InstaTvChannel> > GetChannelByTypeAsync(InstaTvChannelType channelType, PaginationParameters paginationParameters)
 {
     InstaUserAuthValidator.Validate(userAuthValidate);
     return(GetChannel(channelType, null, paginationParameters));
 }