|
using System;
|
|
namespace Model
|
{
|
public class GwSp
|
{
|
private string _spId;
|
private int _apId;
|
private string _clientId;
|
private int _strategyId;
|
private string _channelType;
|
private string _password;
|
private string _clientIp;
|
private int _clientPort;
|
private string _accessCode;
|
private long _balance;
|
private int _priority;
|
private int _price;
|
private int _chargeType;
|
private int _threshold;
|
private int _maxConnCount;
|
private DateTime _createTime;
|
private DateTime _activateTime;
|
private string _remark;
|
private string _passingTime;
|
private string _cmextparams;
|
private string _ctextparams;
|
private string _cuextparams;
|
|
private int _verCodeMode;//验证码分流模式
|
private int _provincialNetworkMode;//省网分流模式
|
private int _id;
|
|
private int _RESEND_CM_GROUPID;//补发通道组
|
private int _RESEND_CU_GROUPID;
|
private int _RESEND_CT_GROUPID;
|
private int _RESEND_STATUS;
|
|
private int _TransferFlag;//携号转网设置。0启用,1停用
|
|
public string Company { get; set; } //公司名称
|
public string ProductId { get; set; } //产品ID
|
public string ProductName { get; set; } //产品名称
|
public int BasicNum { get; set; } //基本条数
|
public int GivingNum { get; set; } //赠送条数
|
public int DelFlag { get; set; } //删除标志:0-正常;2-逻辑删除
|
public int IsAutoReturn { get; set; } //是否自动返还: 0-否; 1-是.
|
public int SubPackageNum { get; set; } //分包条数: 表示后台数据分包数量,不能为0,否则没办法分包,默认4000个号码一个数据包,建议在2000至5000
|
public int SingleSubmitMinRestrict { get; set; } //短信单次提交最小限制:默认0表示不限制,启用限制后小于该提交条数的将被拒绝。
|
public int IsDispalyPrice { get; set; } //是否显示单价
|
public int DeductionMode { get; set; } //扣费方式
|
public int IsSendAudit { get; set; } //发送是否审核
|
public int BelowNumAudit { get; set; } //低于条数审核
|
public int AboveNumAudit { get; set; } //高于条数审核
|
public int IsCumulativeAudit { get; set; } //是否累计审核
|
public int CumulativeAuditNum { get; set; } //累计条数审核
|
public int CumulativeAuditTime { get; set; } //累计时间(小时)
|
public int IsSyncChildSendAudit { get; set; } //是否同步子账号(发送审核)
|
|
|
public int Id
|
{
|
get { return this._id; }
|
set { this._id = value; }
|
}
|
|
public string SpID
|
{
|
get
|
{
|
return this._spId;
|
}
|
set
|
{
|
this._spId = value;
|
}
|
}
|
|
public int ApID
|
{
|
get
|
{
|
return this._apId;
|
}
|
set
|
{
|
this._apId = value;
|
}
|
}
|
|
public string ClientID
|
{
|
get
|
{
|
return this._clientId;
|
}
|
set
|
{
|
this._clientId = value;
|
}
|
}
|
|
public int StrategyID
|
{
|
get
|
{
|
return this._strategyId;
|
}
|
set
|
{
|
this._strategyId = value;
|
}
|
}
|
|
public string ChannelType
|
{
|
get
|
{
|
return this._channelType;
|
}
|
set
|
{
|
this._channelType = value;
|
}
|
}
|
|
public string Password
|
{
|
get
|
{
|
return this._password;
|
}
|
set
|
{
|
if (value.Length >= 20)
|
{
|
throw new ArgumentOutOfRangeException("密码超过长度限制!");
|
}
|
|
this._password = value;
|
}
|
}
|
|
public string ClientIp
|
{
|
get
|
{
|
return this._clientIp;
|
}
|
set
|
{
|
this._clientIp = value;
|
}
|
}
|
|
public int ClientPort
|
{
|
get
|
{
|
return this._clientPort;
|
}
|
set
|
{
|
this._clientPort = value;
|
}
|
}
|
|
public string AccessCode
|
{
|
get
|
{
|
return this._accessCode;
|
}
|
set
|
{
|
this._accessCode = value;
|
}
|
}
|
|
public long Balance
|
{
|
get
|
{
|
return this._balance;
|
}
|
set
|
{
|
this._balance = value;
|
}
|
}
|
|
public int Priority
|
{
|
get
|
{
|
return this._priority;
|
}
|
set
|
{
|
this._priority = value;
|
}
|
}
|
|
public int Price
|
{
|
get
|
{
|
return this._price;
|
}
|
set
|
{
|
this._price = value;
|
}
|
}
|
|
public int ChargeType
|
{
|
get
|
{
|
return this._chargeType;
|
}
|
set
|
{
|
this._chargeType = value;
|
}
|
}
|
|
public int Threshold
|
{
|
get
|
{
|
return this._threshold;
|
}
|
set
|
{
|
this._threshold = value;
|
}
|
}
|
|
public int MaxConnCount
|
{
|
get
|
{
|
return this._maxConnCount;
|
}
|
set
|
{
|
this._maxConnCount = value;
|
}
|
}
|
|
public DateTime CreateTime
|
{
|
get
|
{
|
return this._createTime;
|
}
|
set
|
{
|
this._createTime = value;
|
}
|
}
|
|
public DateTime ActivateTime
|
{
|
get
|
{
|
return this._activateTime;
|
}
|
set
|
{
|
this._activateTime = value;
|
}
|
}
|
|
public string Remark
|
{
|
get
|
{
|
return this._remark;
|
}
|
set
|
{
|
this._remark = value;
|
}
|
}
|
|
public string TimePermitting
|
{
|
get
|
{
|
return this._passingTime;
|
}
|
set
|
{
|
this._passingTime = value;
|
}
|
}
|
|
public string CMextparms
|
{
|
get
|
{
|
return this._cmextparams;
|
}
|
set
|
{
|
this._cmextparams = value;
|
}
|
}
|
|
public string CTextparams
|
{
|
get
|
{
|
return this._ctextparams;
|
}
|
set
|
{
|
this._ctextparams = value;
|
}
|
}
|
|
public string CUextparams
|
{
|
get
|
{
|
return this._cuextparams;
|
}
|
set
|
{
|
this._cuextparams = value;
|
}
|
}
|
|
public int DeductPercent { get; set; }
|
|
public int AuditingMode { get; set; }
|
|
public int CMOPID { get; set; }
|
|
public int CTOPID { get; set; }
|
|
public int UNOPID { get; set; }
|
|
public int DefishingTimeout { get; set; }
|
|
public int DefishingThreshold { get; set; }
|
|
public int RejectIfForbidden { get; set; }
|
|
public int RejectIfNoSignature { get; set; }
|
|
public string Signatures { get; set; }
|
|
public int RefundIfUndelivered { get; set; }
|
|
public int RouterType { get; set; }
|
|
public int Status { get; set; }
|
|
public int AccessCodeMode { get; set; }
|
|
public int ExtnoExtensionMode { get; set; }
|
|
public DateTime ModifyTime { get; set; }
|
|
public int DefishingOPID { get; set; }
|
|
public int FeeLongLength { get; set; }
|
|
public int FeeShortLength { get; set; }
|
|
public int MCPM { get; set; }
|
|
public string McExpression { get; set; }
|
|
public int BlackMode { get; set; }
|
|
public int DiverterID { get; set; }
|
|
public string BlackModeText
|
{
|
get
|
{
|
return this.BlackMode == 1 ? "生效" : "不生效";
|
}
|
}
|
|
public string RouterTypeText
|
{
|
get
|
{
|
if (this.RouterType == 1)
|
return "通道点路由";
|
if (this.RouterType == 2)
|
return "号码段路由";
|
return this.RouterType == 3 ? "通道组路由" : "";
|
}
|
}
|
|
public string ChargerTypeText
|
{
|
get
|
{
|
return this.ChargeType == 2 ? "后付费" : "预付费";
|
}
|
}
|
|
public int SignatureMode { get; set; }
|
|
public string SignatureModeText
|
{
|
get
|
{
|
if (this.SignatureMode == 1)
|
return "后置校验";
|
return this.SignatureMode == 2 ? "前置校验" : "不校验签名";
|
}
|
}
|
|
public int CTGroupID { get; set; }
|
|
public int CUGroupID { get; set; }
|
|
public int CMGroupID { get; set; }
|
|
public string AlarmMobile { get; set; }
|
|
public int BalanceThreshold { get; set; }
|
|
public int ForceSignFlag { get; set; }
|
|
|
private string _forceSign;
|
public string ForceSign
|
{
|
get { return _forceSign; }
|
set {
|
if (value.Length >= 20)
|
{
|
throw new ArgumentOutOfRangeException("长度超出限制!");
|
}
|
_forceSign = value;
|
}
|
}
|
|
public int CombinationMode { get; set; }
|
|
|
|
//验证码、省网分流设置
|
|
public int ProvincialNetworkMode
|
{
|
get { return this._provincialNetworkMode; }
|
set { this._provincialNetworkMode = value; }
|
}
|
public int VerCodeMode
|
{
|
get { return this._verCodeMode; }
|
set { this._verCodeMode = value; }
|
}
|
|
public int RESEND_CM_GROUPID { get => _RESEND_CM_GROUPID; set => _RESEND_CM_GROUPID = value; }
|
public int RESEND_CU_GROUPID { get => _RESEND_CU_GROUPID; set => _RESEND_CU_GROUPID = value; }
|
public int RESEND_CT_GROUPID { get => _RESEND_CT_GROUPID; set => _RESEND_CT_GROUPID = value; }
|
public int RESEND_STATUS { get => _RESEND_STATUS; set => _RESEND_STATUS = value; }
|
public int TransferFlag { get => _TransferFlag; set => _TransferFlag = value; }
|
}
|
}
|