public MyProfileComplexViewModel() { UserViewModel = new UserViewModel(); UserCardModelList = new List<UserCard_XREF>(); CategoryList = new List<Category>(); CountryList = new List<Country>(); SelectedCategoriesViewModelList = new List<SelectedCategoriesViewModel>(); }
/// <summary> /// Method for Bind Detail of opposite user while making or receiving a call /// </summary> /// <param name="QBuserID">QuickBlox Id of a User whose details needs to be fetched</param> /// <returns></returns> public ActionResult UserDetailByQBloxUserID(string QBuserID) { UserViewModel modal = new UserViewModel(); if (UserSession.LoginUserType == USERTYPE.Expert.ToString()) { modal.ID = 1; modal.EmailID = "*****@*****.**"; modal.Address1 = "TadWadi"; modal.Address2 = "Adajan"; modal.City = "Surat"; modal.State = "Gujarat"; modal.PhoneNumber = "12135647"; modal.PinCode = "395001"; modal.ProfilePicPath = ServerSettings.WebApplicationURL + "/upload/profilepic/profile.jpg"; } else { modal.ID = 2; modal.EmailID = "*****@*****.**"; modal.Address1 = "15-c/shubham flats"; modal.Address2 = "Citylight"; modal.City = "Ahmedabad"; modal.State = "Gujarat"; modal.PhoneNumber = "12135647"; modal.PinCode = "3890510"; modal.ProfilePicPath = ServerSettings.WebApplicationURL + "/upload/profilepic/enlarged-facebook-profile-picture.jpg"; } return PartialView("_UserDetailForVideoCall", modal); }
/// <summary> /// Get User Detail when video call is received /// </summary> /// <param name="QBuserID">Quickblox Id of a User whose profile needs to be get</param> /// <returns></returns> public JsonResult GetUserProfileByAjax(string pQBUserID) { UserViewModel modal = new UserViewModel(); if (UserSession.LoginUserType == USERTYPE.Expert.ToString()) { modal.FirstName = "Demo User"; modal.ProfilePicPath = ServerSettings.WebApplicationURL + "/upload/profilepic/profile.jpg"; } else { modal.FirstName = "Demo Expert"; modal.ProfilePicPath = ServerSettings.WebApplicationURL + "/upload/profilepic/enlarged-facebook-profile-picture.jpg"; } return Json(modal, JsonRequestBehavior.AllowGet); }