基线 SVN r240
SVN-Revision: r240
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
using Lskj.Push.Common;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Lskj.Push.Report
|
||||
{
|
||||
public class ReceivedResult : BaseResult
|
||||
{
|
||||
|
||||
private List<Received> receivedList = new List<Received>();
|
||||
|
||||
public List<Received> ReceivedList
|
||||
{
|
||||
get { return receivedList; }
|
||||
set { receivedList = value; }
|
||||
}
|
||||
|
||||
public class Received {
|
||||
public long msg_id;
|
||||
public String android_received;
|
||||
public String ios_apns_sent;
|
||||
}
|
||||
|
||||
public override bool isResultOK()
|
||||
{
|
||||
if (Equals(ResponseResult.responseCode, HttpStatusCode.OK))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public HttpStatusCode getErrorCode()
|
||||
{
|
||||
if (null != ResponseResult)
|
||||
{
|
||||
return ResponseResult.responseCode;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
public string getErrorMessage()
|
||||
{
|
||||
if (null != ResponseResult)
|
||||
{
|
||||
return ResponseResult.exceptionString;
|
||||
}
|
||||
return "";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user