private async void load(string url) { HMS.SP.BasePermissions spBasePermissions = await SPGet.getBasePermissions(spglb.myClient, url); this.add_BasePermissions(1, spBasePermissions); this.hide_running(); }
public int add_BasePermissions(int pos, int level, HMS.SP.BasePermissions spBasePermissions) { if (spBasePermissions.__HMSError_ != null && (spBasePermissions.__HMSError_.errno != 0 || spBasePermissions.__HMSError_.info != "")) { pos = this.add_lineAt(pos, level, "__HMSError", HMS.Util.__HMSError.toString(spBasePermissions.__HMSError_)); } pos = this.add__deferred(pos, level, spBasePermissions.__deferred_); pos = this.add__metadata(pos, level, spBasePermissions.__metadata_); pos = this.add__rest(pos, level, spBasePermissions.__rest); pos = this.add_lineAt(pos, level, "High", HMS.SP.SPUtil.toString(spBasePermissions.High_)); //Int64; pos = this.add_lineAt(pos, level, "Low", HMS.SP.SPUtil.toString(spBasePermissions.Low_)); //Int64; return(pos); }
public int add_BasePermissions_deferred(int pos, int level, HMS.SP.BasePermissions spBasePermissions) { { string useUrl = spBasePermissions.__deferred_.uri; if (!String.IsNullOrEmpty(useUrl)) { pos = this.add_lineAt(pos, level, false, "BasePermissions", "", knownPages.pageBasePermissions, useUrl); } else { pos = this.add_lineAt(pos, level, true, "BasePermissions", "", knownPages.NONE, ""); pos = this.add_BasePermissions(pos, level + 1, spBasePermissions); } } return(pos); }
public int add_BasePermissions(int level, HMS.SP.BasePermissions spBasePermissions) { return(add_BasePermissions(-1, level, spBasePermissions)); }