ScrollableList Class

Namespace:
Weavy.Web.Api.Models
Assembly:
Weavy.Web.dll

A wrapper around a PagedList for better JSON serialization.

public class ScrollableList
Inheritance:
System.Object → ScrollableList

Constructors

ScrollableList(IEnumerable, Nullable, Nullable, Nullable, Uri) Initializes a new instance of the ScrollableList class.
ScrollableList(PagedList, Uri) Initializes a new instance of the ScrollableList class.

Properties

Count Gets the total number of items in the result.
Data Gets the items on the current page.
Next The query options for scrolling to the next page.
Prev The query options for scrolling to the previous page.
Skip Gets the number of skipped items.
Top Gets the maximum requested number of items.

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.