ab56a9bcf7
SVN-Revision: r240
36 lines
797 B
C#
36 lines
797 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Net;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Lskj.Push.Common.Resp
|
|
{
|
|
public class DefaultResult:BaseResult
|
|
{
|
|
|
|
public static DefaultResult fromResponse(ResponseWrapper responseWrapper)
|
|
{
|
|
DefaultResult result = null;
|
|
|
|
if (responseWrapper.isServerResponse())
|
|
{
|
|
result = new DefaultResult();
|
|
}
|
|
|
|
result.ResponseResult=responseWrapper;
|
|
|
|
return result;
|
|
}
|
|
public override bool isResultOK()
|
|
{
|
|
if (Equals(ResponseResult.responseCode, HttpStatusCode.OK))
|
|
{
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
}
|
|
}
|