Knetik.StoreQuery.Load C# (CSharp) Method

Load() public method

public Load ( Action cb = null ) : KnetikResult
cb Action
return KnetikResult
        public KnetikResult<StoreQuery> Load(Action<KnetikResult<StoreQuery>> cb = null)
        {
            if (cb != null)
            {
                // async
                Client.ListStorePage(PageIndex, PageSize, Terms, Related, UseCatalog, HandleResponse(cb));
                return null;
            } else
            {
                // sync
                return OnLoad(Client.ListStorePage(PageIndex, PageSize, Terms, Related, UseCatalog));
            }
        }

Usage Example

コード例 #1
0
ファイル: StoreQuery.cs プロジェクト: knetikmedia/UnitySDK
 public StoreQuery NextPage(Action<KnetikResult<StoreQuery>> cb = null)
 {
     var next = new StoreQuery (Client);
     next.PageIndex = PageIndex + 1;
     next.PageSize = PageSize;
     next.Terms = Terms;
     next.Related = Related;
     if (cb != null) {
         next.Load (cb);
     }
     return next;
 }