基线 SVN r240
SVN-Revision: r240
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
using Lskj.Push.Push;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Lskj.Push.Common
|
||||
{
|
||||
public class APIRequestException:Exception
|
||||
{
|
||||
|
||||
private ResponseWrapper responseRequest;
|
||||
public APIRequestException(ResponseWrapper responseRequest)
|
||||
: base(responseRequest.exceptionString)
|
||||
{
|
||||
this.responseRequest = responseRequest;
|
||||
}
|
||||
public HttpStatusCode Status
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.responseRequest.responseCode;
|
||||
}
|
||||
}
|
||||
public long MsgId
|
||||
{
|
||||
get
|
||||
{
|
||||
return responseRequest.jpushError.msg_id;
|
||||
}
|
||||
}
|
||||
public int ErrorCode
|
||||
{
|
||||
get
|
||||
{
|
||||
return responseRequest.jpushError.error.code;
|
||||
}
|
||||
}
|
||||
|
||||
public String ErrorMessage
|
||||
{
|
||||
get
|
||||
{
|
||||
return responseRequest.jpushError.error.message;
|
||||
}
|
||||
}
|
||||
private JpushError ErrorObject()
|
||||
{
|
||||
return responseRequest.jpushError;
|
||||
}
|
||||
public int RateLimitQuota()
|
||||
{
|
||||
return responseRequest.rateLimitQuota;
|
||||
}
|
||||
public int RateLimitRemaining()
|
||||
{
|
||||
return responseRequest.rateLimitRemaining;
|
||||
}
|
||||
public int RateLimitReset()
|
||||
{
|
||||
return responseRequest.rateLimitReset;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user