基线 SVN r240

SVN-Revision: r240
This commit is contained in:
cyf
2025-02-06 06:46:06 +00:00
commit ab56a9bcf7
5317 changed files with 902274 additions and 0 deletions
+51
View File
@@ -0,0 +1,51 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lskj.Push.Common
{
public abstract class BaseResult
{
public const int ERROR_CODE_NONE = -1;
public const int ERROR_CODE_OK = 0;
public const String ERROR_MESSAGE_NONE = "None error message.";
public const int RESPONSE_OK = 200;
private ResponseWrapper responseResult;
public ResponseWrapper ResponseResult
{
get { return responseResult; }
set { responseResult = value; }
}
public abstract bool isResultOK();
// public override String getErrorMessage();
public int getRateLimitQuota() {
if (null != responseResult) {
return responseResult.rateLimitQuota;
}
return 0;
}
public int getRateLimitRemaining() {
if (null != responseResult) {
return responseResult.rateLimitRemaining;
}
return 0;
}
public int getRateLimitReset() {
if (null != responseResult) {
return responseResult.rateLimitReset;
}
return 0;
}
}
}