internal PopulatedTagFeed(GfycatClient client, int gfyCount, int tagCount, RequestOptions defaultOptions) { _defaultOptions = defaultOptions; _gfyCount = gfyCount; _tagCount = tagCount; _client = client; }
internal static Album Create(GfycatClient client, Model model) { Album album = new Album(client, model.Id); album.Update(model); return(album); }
internal static PopulatedTagFeed Create(GfycatClient client, RequestOptions options, Model model) { return(new PopulatedTagFeed(client, options) { Content = model.Tags.Select(t => TaggedGfyFeed.Create(client, t, options)).ToReadOnlyCollection(), _cursor = model.Cursor }); }
internal static CurrentUserTimelineFeed Create(GfycatClient client, int count, RequestOptions defaultOptions, Feed feed) { return(new CurrentUserTimelineFeed(client, count, defaultOptions) { Content = feed.Gfycats.Select(g => Gfy.Create(client, g)).ToReadOnlyCollection(), _cursor = feed.Cursor }); }
internal static ReactionTagsFeed Create(GfycatClient client, RequestOptions options, Model model, ReactionLanguage lang) { return(new ReactionTagsFeed(client, options, lang) { Content = model.Tags.Select(t => ReactionFeed.Create(client, t, t.Tag, options)).ToReadOnlyCollection(), _cursor = model.Cursor }); }
internal static UserGfyFeed Create(GfycatClient client, RequestOptions defaultOptions, string userId, API.Models.Feed feed) { return(new UserGfyFeed(client, defaultOptions, userId) { Content = feed.Gfycats.Select(g => Gfy.Create(client, g)).ToReadOnlyCollection(), _cursor = feed.Cursor }); }
internal static AlbumFolder Create(GfycatClient client, API.Models.AlbumInfo model, string ownerId) { return(new AlbumFolder(client, model.Id) { Title = model.Title, Subfolders = model.Nodes.Select(a => Utils.CreateAlbum(client, a, ownerId)).ToReadOnlyCollection(), }); }
internal static FolderInfo Create(GfycatClient client, Model model) { return(new FolderInfo(client, model.Id) { Subfolders = model.Subfolders.Select(f => Create(client, f)).ToReadOnlyCollection(), Title = model.Title }); }
internal static CurrentUserSearchFeed Create(GfycatClient client, Model model, string searchText, RequestOptions options) { return(new CurrentUserSearchFeed(client, searchText, options) { Content = model.Gfycats.Select(g => Gfy.Create(client, g)).ToReadOnlyCollection(), _cursor = model.Cursor }); }
internal static SiteSearchFeed Create(GfycatClient client, Model model, int count, string searchText, RequestOptions options) { return(new SiteSearchFeed(client, count, searchText, options) { Content = model.Gfycats.Select(g => Gfy.Create(client, g)).ToReadOnlyCollection(), _cursor = model.Cursor, Count = model.Found }); }
internal static TaggedGfyFeed Create(GfycatClient client, int count, Model trendingFeed, RequestOptions options) { return(new TaggedGfyFeed(client, count, options) { Content = trendingFeed.Gfycats.Select(g => Gfy.Create(client, g)).ToReadOnlyCollection(), Tag = trendingFeed.Tag, _cursor = trendingFeed.Cursor }); }
internal static AppApiInfo Create(GfycatClient client, Model model) { return(new AppApiInfo(client, model.ClientId) { AppName = model.AppName, AppType = model.AppType, Company = model.Company, ContactName = model.ContactName, CreationDate = model.CreationDate, Email = model.Email, RedirectUris = model.RedirectUris.ToReadOnlyCollection(), Username = model.Username, WebUrl = model.WebUrl }); }
internal Gfy(GfycatClient client, string id) : base(client, id) { }
internal UserGfyFeed(GfycatClient client, RequestOptions defaultOptions, string userId) : base(client, defaultOptions) { _userId = userId; }
internal AlbumFolder(GfycatClient client, string id) : base(client, id) { }
internal GfyFeed(GfycatClient client, int count, RequestOptions defaultOptions) { _count = count; _client = client; _options = defaultOptions; }
internal ReactionTagsFeed(GfycatClient client, RequestOptions defaultOptions, ReactionLanguage language) { _defaultOptions = defaultOptions; _client = client; _language = language; }
internal SearchFeed(GfycatClient client, string searchText, int count, RequestOptions defaultOptions) : base(client, count, defaultOptions) { SearchText = searchText; }
internal CurrentUser(GfycatClient client, string id) : base(client, id) { }
internal CurrentUserGfyFeed(GfycatClient client, RequestOptions defaultOptions) : base(client, defaultOptions) { }
internal SiteSearchFeed(GfycatClient client, string searchText, RequestOptions options) : base(client, options) { _searchText = searchText; }
internal PopulatedTagFeed(GfycatClient client, RequestOptions defaultOptions) { _defaultOptions = defaultOptions; _client = client; }
internal TaggedGfyFeed(GfycatClient client, int count, RequestOptions options) : base(client, count, options) { }
internal BookmarkFolder(GfycatClient client, string id) : base(client, id) { }
internal FolderInfo(GfycatClient client, string id) : base(client, id) { }
internal CurrentUserTimelineFeed(GfycatClient client, int count, RequestOptions defaultOptions) : base(client, count, defaultOptions) { }
internal ReactionFeed(GfycatClient client, string searchText, RequestOptions options) : base(client, options) { Tag = searchText; }
internal AlbumInfo(GfycatClient client, string id, string owner) : base(client, id) { _owner = owner; }
internal Entity(GfycatClient client, string id) { Client = client; Id = id; }
internal CurrentUserSearchFeed(GfycatClient client, int count, string searchText, RequestOptions options) : base(client, searchText, count, options) { }