/// <summary> /// 获取当前用户的所有群组,并请求群组离线消息 /// </summary> public void GetGroupList() { var temperrorCode = 0; var temperrorMsg = string.Empty; var groups = AntSdkService.GetGroupList(AntSdkService.AntSdkLoginOutput.userId, ref temperrorCode, ref temperrorMsg); if (!string.IsNullOrEmpty(temperrorMsg)) { Application.Current.Dispatcher.Invoke(new Action(() => MessageBoxWindow.Show(temperrorMsg, GlobalVariable.WarnOrSuccess.Warn))); } if (groups == null || groups.Length == 0) { return; } GroupInfos = new List <AntSdkGroupInfo>(groups); }