/// <summary> /// 修改一个令牌 /// </summary> /// <param name="param"></param> /// <param name="timeout">请求超时时间,单位秒</param> /// <returns></returns> public static HttpResponse <TokenResult> UpdateToken(UpdateTokenParameter param, long timeout = 30) { return(Rtc.Patch("/tokens/" + param.token_id, timeout) .AddRangeField(param.ToParameter()) .asJson <TokenResult>()); }
/// <summary> /// 更新此项目 /// </summary> /// <param name="para"></param> /// <param name="timeout"></param> /// <returns></returns> public HttpResponse <ProjectItem> UpdateProject(ProjectParameter para, long timeout = 30) { return(Rtc.Patch("/project/update", timeout) .AddRangeField(para.ToParameter()) .asJson <ProjectItem>()); }
/// <summary> /// 修改一个会话 /// </summary> /// <param name="param"></param> /// <param name="timeout">请求超时时间,单位秒</param> /// <returns></returns> public static HttpResponse <SessionResult> UpdateSession(UpdateSessionParameter param, long timeout = 30) { return(Rtc.Patch("/sessions/" + param.session_id, timeout) .AddRangeField(param.ToParameter()) .asJson <SessionResult>()); }
/// <summary> /// 更新一个录像记录 /// </summary> /// <param name="record_id"></param> /// <param name="label"></param> /// <param name="timeout"></param> /// <returns></returns> public HttpResponse <RecordResult> UpdateRecord(string record_id, string label, long timeout = 30) { return(Rtc.Patch("/records/" + record_id, timeout).field("label", label).asJson <RecordResult>()); }