/// <summary> /// 获取动态更新 根据类型 /// </summary> private void getPostByType(string type) { Dictionary <string, string> parm = new Dictionary <string, string>(); if (type == "PostAll") { chargeList(0); if (!string.IsNullOrEmpty(max_id)) { //parm.Add("since_id",since_id); parm.Add("max_id", max_id); parm.Add("pagesize", pageSize.ToString()); } else { parm.Add("pagesize", pageSize.ToString()); } postenum = PostEnum.PostAll; title.Text = "动态更新"; PostViewModel.GetUlity(postenum, parm, ResultNewPost); } else if (type == "Atme2") { chargeList(0); postenum = PostEnum.Atme2; parm.Add("pageindex", pageindex.ToString()); parm.Add("pagesize", pageSize.ToString()); title.Text = "提到我的"; PostViewModel.GetUlity(postenum, parm, ResultNewPost); } else if (type == "Replyme") { chargeList(1); postenum = PostEnum.Replyme; parm.Add("max_id", max_id); parm.Add("pagesize", pageSize.ToString()); title.Text = "回复我的"; PostViewModel.GetUlity(postenum, parm, ResultReplybyme); } else { chargeList(0); if (!string.IsNullOrEmpty(max_id)) { //parm.Add("since_id",since_id); parm.Add("max_id", max_id); parm.Add("pagesize", pageSize.ToString()); } else { parm.Add("pagesize", pageSize.ToString()); } postenum = PostEnum.PostAll; PostViewModel.GetUlity(postenum, parm, ResultNewPost); } SelectImage(postenum); }