Exemplo n.º 1
0
		/// <summary>
		/// This is a async request of \statuses\reset_count rest call. 
		///It returns JsonResponse&lt;Stream&gt;
		/// Here comes request Comments:
		///<para>将当前登录用户的某种新消息的未读数为0。可以清零的计数类别有:1. 评论数,2. @me数,3. 私信数,4. 关注数 </para>
		///<para>URL:</para>
		///<para>	http://api.t.sina.com.cn/statuses/reset_count.(json|xml)</para>
		///<para>支持格式:</para>
		///<para>	XML/JSON</para>
		///<para>HTTP请求方式:</para>
		///<para>	POST</para>
		///<para>是否需要登录:</para>
		///<para>	true  关于授权机制,参见授权机制声明</para>
		///<para>请求数限制:</para>
		///<para>	false  关于请求数限制,参见接口访问权限说明</para>
		///<para></para>
		/// </summary>
		public async Task<JsonResponse<Stream>> RequestStatusesResetCountAsync (
			StatusesResetCountRequest request,
			CancellationToken cancellationToken =default(CancellationToken),
			IProgress<ProgressReport> progress=null 
			)			
		{
			return await _requestStatusesResetCountMethod.GetResponseAsync(request, cancellationToken, progress);
		}
Exemplo n.º 2
0
		/// <summary>
		/// This is a sync request of \statuses\reset_count rest call.
		///It returns JsonResponse&lt;Stream&gt;
		/// Here comes request Comments:
		///<para>将当前登录用户的某种新消息的未读数为0。可以清零的计数类别有:1. 评论数,2. @me数,3. 私信数,4. 关注数 </para>
		///<para>URL:</para>
		///<para>	http://api.t.sina.com.cn/statuses/reset_count.(json|xml)</para>
		///<para>支持格式:</para>
		///<para>	XML/JSON</para>
		///<para>HTTP请求方式:</para>
		///<para>	POST</para>
		///<para>是否需要登录:</para>
		///<para>	true  关于授权机制,参见授权机制声明</para>
		///<para>请求数限制:</para>
		///<para>	false  关于请求数限制,参见接口访问权限说明</para>
		///<para></para>
		/// </summary>
		public JsonResponse<Stream> RequestStatusesResetCount(StatusesResetCountRequest request)
		{
			return RequestStatusesResetCountAsync(request).Result;
		}
Exemplo n.º 3
0
		/// <summary>
		/// This is a sync execution of \statuses\reset_count rest call. 
		/// It returns JsonResponse&lt;StatusesResetCountResponse&gt;
		/// Here comes request Comments:
		///<para>将当前登录用户的某种新消息的未读数为0。可以清零的计数类别有:1. 评论数,2. @me数,3. 私信数,4. 关注数 </para>
		///<para>URL:</para>
		///<para>	http://api.t.sina.com.cn/statuses/reset_count.(json|xml)</para>
		///<para>支持格式:</para>
		///<para>	XML/JSON</para>
		///<para>HTTP请求方式:</para>
		///<para>	POST</para>
		///<para>是否需要登录:</para>
		///<para>	true  关于授权机制,参见授权机制声明</para>
		///<para>请求数限制:</para>
		///<para>	false  关于请求数限制,参见接口访问权限说明</para>
		///<para></para>
		/// </summary>
		public JsonResponse<StatusesResetCountResponse> ExecuteStatusesResetCount(StatusesResetCountRequest request)
		{
			return ExecuteStatusesResetCountAsync(request).Result;
		}