示例#1
0
        private async void load(string url)
        {
            HMS.SP.User spUser = await SPGet.getUser(spglb.myClient, url);

            this.add_User(1, spUser);
            this.hide_running();
        }
示例#2
0
 public int add_User_deferred(int pos, int level, HMS.SP.User spUser)
 {
     if (spUser.TitleResource_.uri == null)
     {
         pos = this.add_lineAt(pos, level, true, "User", HMS.SP.SPUtil.toString(spUser.Title_), knownPages.NONE, ""); //String;
         pos = add_User(pos, level + 1, spUser);
     }
     else
     {
         string useUrl = spUser.__deferred_.uri;
         if (String.IsNullOrEmpty(useUrl))
         {
             useUrl = spUser.TitleResource_.uri.Replace("/TitleResource", "");
         }
         pos = this.add_lineAt(pos, level, false, spUser.Title_, "", knownPages.pageUser, useUrl);
     }
     return(pos);
 }
示例#3
0
 public int  add_User(int pos, int level, HMS.SP.User spUser)
 {
     if (spUser.__HMSError_ != null && (spUser.__HMSError_.errno != 0 || spUser.__HMSError_.info != ""))
     {
         pos = this.add_lineAt(pos, level, "__HMSError", HMS.Util.__HMSError.toString(spUser.__HMSError_));
     }
     pos = this.add__deferred(pos, level, spUser.__deferred_);
     pos = this.add__metadata(pos, level, spUser.__metadata_);
     pos = this.add__rest(pos, level, spUser.__rest);
     pos = this.add_lineAt(pos, level, "Email", HMS.SP.SPUtil.toString(spUser.Email_));                              //String;
     pos = this.add_deferredAt(pos, level, "Groups", "...", myType.GetType("SP.Group"), spUser.Groups_.__deferred_); //Group;
     pos = this.add_lineAt(pos, level, "Id", HMS.SP.SPUtil.toString(spUser.Id_));                                    //Int32;
     pos = this.add_lineAt(pos, level, "IsHiddenInUI", HMS.SP.SPUtil.toString(spUser.IsHiddenInUI_));                //Boolean;
     pos = this.add_lineAt(pos, level, "IsSiteAdmin", HMS.SP.SPUtil.toString(spUser.IsSiteAdmin_));                  //Boolean;
     pos = this.add_lineAt(pos, level, "LoginName", HMS.SP.SPUtil.toString(spUser.LoginName_));                      //String;
     pos = this.add_lineAt(pos, level, "PrincipalType", HMS.SP.SPUtil.toString(spUser.PrincipalType_));              //Int32;
     pos = this.add_lineAt(pos, level, "Title", HMS.SP.SPUtil.toString(spUser.Title_));                              //String;
     pos = this.add_deferredAt(pos, level, "UserId", "...", knownPages.pageUserIdInfo, spUser.UserId_.__deferred_);  //UserIdInfo;
     return(pos);
 }
示例#4
0
 public int add_User(int level, HMS.SP.User spUser)
 {
     return(add_User(-1, level, spUser));
 }