public Cite_Userinfo GetUserInfo() { Cite_Userinfo citeUserinfo = new Cite_Userinfo(); if (this.IsConnected) { byte[] numArray = new byte[32]; byte[] numArray1 = new byte[32]; byte[] numArray2 = new byte[32]; byte[] numArray3 = new byte[32]; byte[] numArray4 = new byte[32]; byte[] numArray5 = new byte[32]; try { if (CiteDLL.XX_GetUserInfo(this.CamSerial, numArray, numArray1, numArray2, numArray3, numArray4, numArray5)) { citeUserinfo.DeptName = CiteLib.ConvertByteArrayToString(numArray).Trim(); citeUserinfo.DeptID = CiteLib.ConvertByteArrayToString(numArray1).Trim(); citeUserinfo.UserName = CiteLib.ConvertByteArrayToString(numArray2).Trim(); citeUserinfo.BadgeNum = CiteLib.ConvertByteArrayToString(numArray3).Trim(); citeUserinfo.FWVer = CiteLib.ConvertByteArrayToString(numArray5).Trim(); citeUserinfo.UniqueID = CiteLib.ConvertByteArrayToString(numArray4).Trim(); } } catch (Exception exception) { this.ErrorMsg = exception.Message; } } return(citeUserinfo); }