API reference
API reference
Select your platform
No SDKs available
No versions available

DeserializableList Class

Extends IList< T >
DeserializableList is designed to be used with the OculusPlatform SDK and provides a way to deserialize JSON data into a list of objects. It provides a range of methods for adding, removing, and accessing elements in the list, as well as properties for checking if there are more pages of data available.

Properties

The number of elements contained within this list. This is not equal to the total number of elements across multiple pages.
bool ICollection< T >. IsReadOnly[Get]
Access the indexed element in this list.
Parameters
index
The index of the element to return.
List< T > Data[Get]
This property returns a value indicating whether there is a next page of elements that can be retrieved, allowing for pagination of large datasets.
This property returns a value indicating whether there is a previous page of elements that can be retrieved, allowing for navigation through paginated data.
This property returns the URL to request the next paginated list of elements, providing a way to retrieve additional data.
This property returns the URL to request the previous paginated list of elements, providing a way to navigate back through paginated data.

Protected Fields

This is a protected field that stores the actual list of objects. It is used by the DeserializableList class to store the data that is deserialized from JSON.
This is a protected field that store the URLs for the next pages of data. It allows you to retrieve additional data beyond the initial page.
This is a protected field that store the URLs for the previous pages of data. It allows you to retrieve additional data beyond the initial page.

Member Functions

This method returns the index of the specified object in the list, or -1 if it is not found.
This method adds an item to the end of the list, increasing its size by one.
This method removes all items from the list, leaving it empty and with a count of zero.
This method determines whether the list contains a specific value, returning true if it is found and false otherwise.
This method copies the elements of the list to an array, starting at a specified array index, allowing for efficient transfer of data.
This method returns an enumerator that iterates through the list, providing a way to access each element in sequence. Taken from examples here
This method inserts an item into the list at a specified index, shifting existing elements to make room.
This method removes the first occurrence of a specific object from the list, decreasing its size by one.
This method removes the item at the specified index from the list, shifting existing elements to fill the gap.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon