Contentful logo

Contentful Community

Getting all the Assets

Hello,
I’m trying to get some Assets in a Content, but I just recieve one Asset, but there are more.

That’s how it is look like:

var entries = await client.GetEntries<Material>();
foreach (var item in entries)
{
  // item.Contents.Count is 1 but it should have 3!!
}

The Materila basically is just a class wich has a List.

public class Material
{
        public SystemProperties Sys { get; set; }
         public int Id { get; set; }
         public string Title { get; set; }
         public List<Asset> Contents { get; set; }
}

In the Contentful the Content model has a field which is called Contents and it is a media, many files.

Any idea?

Amir