Class ModelSearchRequest

java.lang.Object
org.vrspace.server.api.sketchfab.ModelSearchRequest

public class ModelSearchRequest extends Object
Sketchfab model search API parameters, passed to sketchfab as it is. Most interesting parameters are: q, animated, rigged
Author:
joe
  • Constructor Details

    • ModelSearchRequest

      public ModelSearchRequest()
  • Method Details

    • toURI

      public URI toURI(String url)
    • getQ

      public String getQ()
      Space separated keywords
    • getUser

      public String getUser()
      Searches models by a user (sketchfab username)
    • getTags

      public List<String> getTags()
    • getCategories

      public List<String> getCategories()
    • getDate

      public Integer getDate()
      Limit search to a specific period only (in days)
    • isDownloadable

      public boolean isDownloadable()
      Always true
    • getAnimated

      public Boolean getAnimated()
    • getStaffpicked

      public Boolean getStaffpicked()
    • getMin_face_count

      public Integer getMin_face_count()
    • getMax_face_count

      public Integer getMax_face_count()
    • getPbr_type

      public String getPbr_type()
      Filter by PBR type. Set to metalness to search Metalness/Roughness models only. Set to specular to search Specular/Glossiness models only. Set to true to search PBR models only. Set to false to search non-PBR models only.
    • getRigged

      public Boolean getRigged()
    • getCollection

      public String getCollection()
      Searches models by collection (uid)
    • getSort_by

      public String getSort_by()
      How to sort results. When omitted, results are sorted by relevance. One of likeCount, -likeCount, viewCount, -viewCount, publishedAt, -publishedAt, processedAt, -processedAt
    • getFile_format

      public String getFile_format()
      Irrelevant, we always deal with GLTF
    • getLicense

      public String getLicense()
      One of by, by-sa, by-nd, by-nc, by-nc-sa, by-nc-nd, cc0, ed, st
    • getMax_uv_layer_count

      public Integer getMax_uv_layer_count()
    • getAvailable_archive_type

      public String getAvailable_archive_type()
    • getArchives_max_size

      public Integer getArchives_max_size()
    • getArchives_max_face_count

      public Integer getArchives_max_face_count()
    • getArchives_max_vertex_count

      public Integer getArchives_max_vertex_count()
    • getArchives_max_texture_count

      public Integer getArchives_max_texture_count()
    • getArchives_texture_max_resolution

      public Integer getArchives_texture_max_resolution()
    • getArchives_flavours

      public Boolean getArchives_flavours()
      If true, returns all archives flavours, listed by archive type, and sorted by texture resolution (descending). If false, only the texture with the highest reslution is returned for each archive type.
    • getCount

      public Integer getCount()
      Items displayed per page, seems ignored by sketchfab but returned in paging
    • getCursor

      public Integer getCursor()
      Starting item number, used for paging.
    • getType

      public String getType()
      Constant, type=models
    • setQ

      public void setQ(String q)
      Space separated keywords
    • setUser

      public void setUser(String user)
      Searches models by a user (sketchfab username)
    • setTags

      public void setTags(List<String> tags)
    • setCategories

      public void setCategories(List<String> categories)
    • setDate

      public void setDate(Integer date)
      Limit search to a specific period only (in days)
    • setDownloadable

      public void setDownloadable(boolean downloadable)
      Always true
    • setAnimated

      public void setAnimated(Boolean animated)
    • setStaffpicked

      public void setStaffpicked(Boolean staffpicked)
    • setMin_face_count

      public void setMin_face_count(Integer min_face_count)
    • setMax_face_count

      public void setMax_face_count(Integer max_face_count)
    • setPbr_type

      public void setPbr_type(String pbr_type)
      Filter by PBR type. Set to metalness to search Metalness/Roughness models only. Set to specular to search Specular/Glossiness models only. Set to true to search PBR models only. Set to false to search non-PBR models only.
    • setRigged

      public void setRigged(Boolean rigged)
    • setCollection

      public void setCollection(String collection)
      Searches models by collection (uid)
    • setSort_by

      public void setSort_by(String sort_by)
      How to sort results. When omitted, results are sorted by relevance. One of likeCount, -likeCount, viewCount, -viewCount, publishedAt, -publishedAt, processedAt, -processedAt
    • setFile_format

      public void setFile_format(String file_format)
      Irrelevant, we always deal with GLTF
    • setLicense

      public void setLicense(String license)
      One of by, by-sa, by-nd, by-nc, by-nc-sa, by-nc-nd, cc0, ed, st
    • setMax_uv_layer_count

      public void setMax_uv_layer_count(Integer max_uv_layer_count)
    • setAvailable_archive_type

      public void setAvailable_archive_type(String available_archive_type)
    • setArchives_max_size

      public void setArchives_max_size(Integer archives_max_size)
    • setArchives_max_face_count

      public void setArchives_max_face_count(Integer archives_max_face_count)
    • setArchives_max_vertex_count

      public void setArchives_max_vertex_count(Integer archives_max_vertex_count)
    • setArchives_max_texture_count

      public void setArchives_max_texture_count(Integer archives_max_texture_count)
    • setArchives_texture_max_resolution

      public void setArchives_texture_max_resolution(Integer archives_texture_max_resolution)
    • setArchives_flavours

      public void setArchives_flavours(Boolean archives_flavours)
      If true, returns all archives flavours, listed by archive type, and sorted by texture resolution (descending). If false, only the texture with the highest reslution is returned for each archive type.
    • setCount

      public void setCount(Integer count)
      Items displayed per page, seems ignored by sketchfab but returned in paging
    • setCursor

      public void setCursor(Integer cursor)
      Starting item number, used for paging.
    • setType

      public void setType(String type)
      Constant, type=models
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object