示例#1
0
 /// <summary>
 /// Retrieve list of ChatUser.
 /// no parameters required to be passed in.
 /// </summary>
 /// <returns>List of ChatUser</returns>
 public ChatUserList GetAll()
 {
     using (ChatUserDataAccess data = new ChatUserDataAccess(ClientContext))
     {
         return(data.GetAll());
     }
 }
示例#2
0
        /// <summary>
        /// Retrieve list of ChatUser.
        /// </summary>
        /// <param name="fillChild"></param>
        /// <returns>List of ChatUser</returns>
        public ChatUserList GetAll(bool fillChild)
        {
            ChatUserList chatUserList = new ChatUserList();

            using (ChatUserDataAccess data = new ChatUserDataAccess(ClientContext))
            {
                chatUserList = data.GetAll();
            }
            if (fillChild)
            {
                foreach (ChatUser chatUserObject in chatUserList)
                {
                    FillChatUserWithChilds(chatUserObject, fillChild);
                }
            }
            return(chatUserList);
        }