Ejemplo n.º 1
0
 internal PopulatedTagFeed(GfycatClient client, int gfyCount, int tagCount, RequestOptions defaultOptions)
 {
     _defaultOptions = defaultOptions;
     _gfyCount       = gfyCount;
     _tagCount       = tagCount;
     _client         = client;
 }
Ejemplo n.º 2
0
        internal static Album Create(GfycatClient client, Model model)
        {
            Album album = new Album(client, model.Id);

            album.Update(model);
            return(album);
        }
Ejemplo n.º 3
0
 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
     });
 }
Ejemplo n.º 4
0
 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
     });
 }
Ejemplo n.º 5
0
 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
     });
 }
Ejemplo n.º 6
0
 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
     });
 }
Ejemplo n.º 7
0
 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(),
     });
 }
Ejemplo n.º 8
0
 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
     });
 }
Ejemplo n.º 9
0
 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
     });
 }
Ejemplo n.º 10
0
 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
     });
 }
Ejemplo n.º 11
0
 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
     });
 }
Ejemplo n.º 12
0
 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
     });
 }
Ejemplo n.º 13
0
 internal Gfy(GfycatClient client, string id) : base(client, id)
 {
 }
Ejemplo n.º 14
0
 internal UserGfyFeed(GfycatClient client, RequestOptions defaultOptions, string userId) : base(client, defaultOptions)
 {
     _userId = userId;
 }
Ejemplo n.º 15
0
 internal AlbumFolder(GfycatClient client, string id) : base(client, id)
 {
 }
Ejemplo n.º 16
0
 internal GfyFeed(GfycatClient client, int count, RequestOptions defaultOptions)
 {
     _count   = count;
     _client  = client;
     _options = defaultOptions;
 }
Ejemplo n.º 17
0
 internal ReactionTagsFeed(GfycatClient client, RequestOptions defaultOptions, ReactionLanguage language)
 {
     _defaultOptions = defaultOptions;
     _client         = client;
     _language       = language;
 }
Ejemplo n.º 18
0
 internal SearchFeed(GfycatClient client, string searchText, int count, RequestOptions defaultOptions) : base(client, count, defaultOptions)
 {
     SearchText = searchText;
 }
Ejemplo n.º 19
0
 internal CurrentUser(GfycatClient client, string id) : base(client, id)
 {
 }
Ejemplo n.º 20
0
 internal CurrentUserGfyFeed(GfycatClient client, RequestOptions defaultOptions) : base(client, defaultOptions)
 {
 }
Ejemplo n.º 21
0
 internal SiteSearchFeed(GfycatClient client, string searchText, RequestOptions options) : base(client, options)
 {
     _searchText = searchText;
 }
Ejemplo n.º 22
0
 internal PopulatedTagFeed(GfycatClient client, RequestOptions defaultOptions)
 {
     _defaultOptions = defaultOptions;
     _client         = client;
 }
Ejemplo n.º 23
0
 internal TaggedGfyFeed(GfycatClient client, int count, RequestOptions options) : base(client, count, options)
 {
 }
Ejemplo n.º 24
0
 internal BookmarkFolder(GfycatClient client, string id) : base(client, id)
 {
 }
Ejemplo n.º 25
0
 internal FolderInfo(GfycatClient client, string id) : base(client, id)
 {
 }
Ejemplo n.º 26
0
 internal CurrentUserTimelineFeed(GfycatClient client, int count, RequestOptions defaultOptions) : base(client, count, defaultOptions)
 {
 }
Ejemplo n.º 27
0
 internal ReactionFeed(GfycatClient client, string searchText, RequestOptions options) : base(client, options)
 {
     Tag = searchText;
 }
Ejemplo n.º 28
0
 internal AlbumInfo(GfycatClient client, string id, string owner) : base(client, id)
 {
     _owner = owner;
 }
Ejemplo n.º 29
0
 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)
 {
 }