/// <summary> /// 获取新动态 /// </summary> /// <returns>动态响应</returns> public async Task <NewDynamicResponse> GetNewDynamicAsync(string lastSeemId = "0") { var param = new Dictionary <string, string>(); param.Add("cold_start", "1"); param.Add("qn", "32"); param.Add("rsp_type", "2"); param.Add("type_list", "268435455"); param.Add("uid", BiliClient.Mid); if (!string.IsNullOrEmpty(lastSeemId) && lastSeemId != "0") { param.Add("update_num_dy_id", lastSeemId); } string url = BiliFactory.UrlContact(Api.DYNAMIC_NEW, param, true, useiPhone: true); var data = await BiliClient.ConvertEntityFromWebAsync <NewDynamicResponse>(url); if (data != null && data.cards != null) { data.cards.RemoveAll(p => p == null || p.card == null || p.card.Length < 10 || p.desc.status != 1); BiliClient.WriteLocalSetting(BiliWpf.Services.Enums.Settings.LastSeemDynamicId, data.max_dynamic_id); } return(data); }