Files
kami_itunes_june/AppleBatch_June.Utils/ProxyAccountModel.cs
2024-07-22 00:43:14 +08:00

47 lines
882 B
C#

using System;
using System.Linq;
using AppleBatch_June.ExecuteTasks;
using AppleBatch_June.Model;
namespace AppleBatch_June.Utils
{
public class ProxyAccountModel
{
public string _ProxyIp = "";
public string ProxyIp
{
get
{
return _ProxyIp;
}
set
{
if (!string.IsNullOrEmpty(value))
{
ProxyIpModel proxyIpModel = (from c in ProxyRunService.incProxyExpirationTimeModels.ToArray()
where c.prixyIp == value
select c).FirstOrDefault();
if (proxyIpModel != null)
{
expirationTime = proxyIpModel.expirationTime;
}
getIpCount = 0L;
AddTime = DateTime.Now;
_ProxyIp = value;
}
}
}
public DateTime AddTime { get; set; } = DateTime.Now;
public DateTime? expirationTime { get; set; }
public long getIpCount { get; set; }
public string accountWebUserAgent { get; set; } = "";
}
}