SitesClientManager
↳ extends UnityEngine.MonoBehaviour
Declaration
public class SitesClientManager : MonoBehaviourSummary
A MonoBehaviour component that provides access to the Sites API. Use this to query organizational hierarchy data including users, organizations, sites, and assets.
Remarks
The SitesClientManager handles the lifecycle of the underlying SitesClient automatically. It creates the client on Awake and disposes it on OnDestroy.
Properties
| Name | Type | Summary |
|---|---|---|
| readonly Client | SitesClient | The underlying SitesClient instance. |
| RequestTimeoutSeconds | int | The timeout for API requests in seconds. |
Methods
| Name | Type | Summary |
|---|---|---|
| GetAssetInfoAsync | Task<AssetResult> | Gets asset information by asset ID. |
| GetAssetsForSiteAsync | Task<AssetResult> | Gets all assets for a site. |
| GetOrganizationInfoAsync | Task<OrganizationResult> | Gets organization information by organization ID. |
| GetOrganizationsForUserAsync | Task<OrganizationResult> | Gets all organizations for a user. Consider using GetSelfOrganizationInfoAsync instead. |
| GetSelfOrganizationInfoAsync | Task<OrganizationResult> | Gets organizations for the current authenticated session. |
| GetSelfUserInfoAsync | Task<UserResult> | Gets information for the currently authenticated user. To fetch organizations, consider using GetSelfOrganizationInfoAsync instead. |
| GetSiteAssetsByLocationAsync | Task<SiteAssetsResult> | Gets sites and their assets near a GPS coordinate. |
| GetSiteInfoAsync | Task<SiteResult> | Gets site information by site ID. |
| GetSitesForOrganizationAsync | Task<SiteResult> | Gets all sites for an organization. |
| GetUserInfoAsync | Task<UserResult> | Gets user information by user ID. |