December 2, 2020 update:
  • The Poly website (poly.google.com) and Poly API will be shut down on June 30, 2021. Uploading of new assets will be disabled two months earlier, on April 30, 2021.
  • Previously uploaded assets will remain available and can be downloaded from poly.google.com until June 30, 2021.

PolyToolkit.PolyListAssetsRequest

Represents a set of Poly request parameters determining which assets should be returned.

Summary

null values mean "don't filter by this parameter".

Inheritance

Inherits from: PolyToolkit.PolyRequest

Constructors and Destructors

PolyListAssetsRequest()

Public attributes

category = PolyCategory.UNSPECIFIED
Category can be any of the PolyCategory object categories (e.g.
curated = false
bool
formatFilter = null
keywords = ""
string
maxComplexity = PolyMaxComplexityFilter.UNSPECIFIED

Public functions

ToString()
override string

Public static functions

Featured()
Returns a ListAssetsRequest that requests the featured assets.
Latest()
Returns a ListAssetsRequest that requests the latest assets.

Public attributes

category

PolyCategory category = PolyCategory.UNSPECIFIED

Category can be any of the PolyCategory object categories (e.g.

"PolyCategory.ANIMALS").

curated

bool curated = false

formatFilter

PolyFormatFilter formatFilter = null

keywords

string keywords = ""

maxComplexity

PolyMaxComplexityFilter maxComplexity = PolyMaxComplexityFilter.UNSPECIFIED

Public functions

PolyListAssetsRequest

 PolyListAssetsRequest()

ToString

override string ToString()

Public static functions

PolyListAssetsRequest Featured()

Returns a ListAssetsRequest that requests the featured assets.

This approximates what the user would see in the Poly main page, but the ordering might be different.

Latest

PolyListAssetsRequest Latest()

Returns a ListAssetsRequest that requests the latest assets.

This query is not curated, so it will return the latest assets regardless of whether they have been reviewed. If you wish to enable curation, set curated=true on the returned object.