Exemple #1
0
        private async void load(string url)
        {
            HMS.SP.ListItemCollectionPosition spListItemCollectionPosition = await SPGet.getListItemCollectionPosition(spglb.myClient, url);

            this.add_ListItemCollectionPosition(1, spListItemCollectionPosition);
            this.hide_running();
        }
 public int  add_ListItemCollectionPosition(int pos, int level, HMS.SP.ListItemCollectionPosition spListItemCollectionPosition)
 {
     if (spListItemCollectionPosition.__HMSError_ != null && (spListItemCollectionPosition.__HMSError_.errno != 0 || spListItemCollectionPosition.__HMSError_.info != ""))
     {
         pos = this.add_lineAt(pos, level, "__HMSError", HMS.Util.__HMSError.toString(spListItemCollectionPosition.__HMSError_));
     }
     pos = this.add__deferred(pos, level, spListItemCollectionPosition.__deferred_);
     pos = this.add__metadata(pos, level, spListItemCollectionPosition.__metadata_);
     pos = this.add__rest(pos, level, spListItemCollectionPosition.__rest);
     pos = this.add_lineAt(pos, level, "PagingInfo", HMS.SP.SPUtil.toString(spListItemCollectionPosition.PagingInfo_)); //String;
     return(pos);
 }
 public int add_ListItemCollectionPosition_deferred(int pos, int level, HMS.SP.ListItemCollectionPosition spListItemCollectionPosition)
 {
     {
         string useUrl = spListItemCollectionPosition.__deferred_.uri;
         if (!String.IsNullOrEmpty(useUrl))
         {
             pos = this.add_lineAt(pos, level, false, "ListItemCollectionPosition", "", knownPages.pageListItemCollectionPosition, useUrl);
         }
         else
         {
             pos = this.add_lineAt(pos, level, true, "ListItemCollectionPosition", "", knownPages.NONE, "");
             pos = this.add_ListItemCollectionPosition(pos, level + 1, spListItemCollectionPosition);
         }
     }
     return(pos);
 }
 public int add_ListItemCollectionPosition(int level, HMS.SP.ListItemCollectionPosition spListItemCollectionPosition)
 {
     return(add_ListItemCollectionPosition(-1, level, spListItemCollectionPosition));
 }