public void Start(PurchasesQueryArgs queryArgs) { SetQueryArgs(queryArgs); m_IsInProgress = true; m_Timestamp = DateTime.Now.Ticks; if (!m_UnityConnect.isUserLoggedIn) { OnOperationError(new UIError(UIErrorCode.AssetStoreOperationError, k_UserNotLoggedInErrorMessage)); return; } m_Result = new AssetStorePurchases(m_OriginalQueryArgs); if ((m_DownloadedAssetsOnly || m_UpdateAvailableOnly) && !m_AdjustedQueryArgs.productIds.Any()) { m_Result.total = 0; onOperationSuccess?.Invoke(this); FinalizedOperation(); return; } // We need to keep a local version of the current timestamp to make sure the callback timestamp is still the original one. var localTimestamp = m_Timestamp; m_AssetStoreRestAPI.GetPurchases(QueryToString(m_AdjustedQueryArgs), (result) => GetPurchasesCallback(result, localTimestamp), OnOperationError); }
private void OnProductListFetched(AssetStorePurchases productList) { GetPageFromTab <PaginatedPage>(PackageFilterTab.AssetStore).OnProductListFetched(productList); }