ArchiveList Class

Namespace:
Weavy.Core.Models
Assembly:
Weavy.Core.dll

An ArchiveList contains methods for displaying the number of items created during a specific year, month and/or day.

public class ArchiveList
Inheritance:
System.Object → ArchiveList

Constructors

ArchiveList(IEnumerable) Initializes a new instance of the ArchiveList class with a dictionary of dates and the number of items for each date.

Methods

GetCount() Gets the total number of items in the archive list.
GetCount(Int32) Gets the total number of items in the archive list for the specified year.
GetCount(Int32, Int32) Gets the total number of items in the archive list for the specified year and month.
GetCount(Int32, Int32, Int32) Gets the total number of items in the archive list for the specified year, month and day.
GetDays(Int32, Int32) Gets a list of days, for the specified year and month, with items in the archive list.
GetMonths(Int32) Gets a list of months, for the specified year, with items in the archive list.
GetYears() Gets the list of years with items in the archive list.

Extension Methods

IsNullOrDefault(T) Gets a value indicating if the specified value has the default value of the generic type.
Serialize(Object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(Object, Nullable, JsonSerializerSettings) Serializes an object, or graph of connected objects, to a json string.
IsValid(Object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.