Exemplo n.º 1
0
 public UserInfo[] Browse(string userid)
 {
     try
     {
         UserService userService = new UserService();
         return userService.VisibleProfilesGet(userid).ToArray();
     }
     catch (Exception e)
     {
         Logging.WriteToEventLog("USER BROWSE " + e.Message);
         return null;
     }
 }
Exemplo n.º 2
0
        public UserInfo[] BrowseWithChat(string userid, string NoOfChat)
        {
            try
            {
                UserService userService = new UserService();
                UserInfo[] userInfos = userService.VisibleProfilesGet(userid).ToArray();

                if (userInfos != null)
                {
                    foreach(UserInfo userinfo in userInfos)
                    {
                        userinfo.Chats = userService.UserChatGet(userid, userinfo.UserID.ToString(), "0", NoOfChat);
                    }
                }
                return userInfos;
            }
            catch (Exception e)
            {
                Logging.WriteToEventLog("USER BROWSE " + e.Message);
                return null;
            }
        }
Exemplo n.º 3
0
 public void GetVisibleProfilesDB()
 {
     IUserService userService = new UserService();
     userService.VisibleProfilesGet("1");
 }
Exemplo n.º 4
0
 public void VisibleProfilesGet()
 {
     IUserResource userResource = new MockUserResource();
     IUserService userService = new UserService(userResource);
     List<UserInfo> users = userService.VisibleProfilesGet("1");
 }