mirror of
https://git.oceanpay.cc/danial/kami_itunes_june.git
synced 2025-12-18 22:31:24 +00:00
47 lines
882 B
C#
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; } = "";
|
|
|
|
}
|
|
}
|