基线 SVN r240
SVN-Revision: r240
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
using Lskj.Push.Common;
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Lskj.Push.Device
|
||||
{
|
||||
public class AliasDeviceListResult:BaseResult
|
||||
{
|
||||
public List<String> registration_ids ;
|
||||
public AliasDeviceListResult()
|
||||
{
|
||||
registration_ids = null;
|
||||
}
|
||||
public override bool isResultOK()
|
||||
{
|
||||
if (Equals(ResponseResult.responseCode, HttpStatusCode.OK))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
public static AliasDeviceListResult fromResponse(ResponseWrapper responseWrapper)
|
||||
{
|
||||
AliasDeviceListResult aliasDeviceListResult = new AliasDeviceListResult();
|
||||
if (responseWrapper.isServerResponse())
|
||||
{
|
||||
aliasDeviceListResult = JsonConvert.DeserializeObject<AliasDeviceListResult>(responseWrapper.responseContent);
|
||||
}
|
||||
aliasDeviceListResult.ResponseResult = responseWrapper;
|
||||
return aliasDeviceListResult;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user