mirror of
https://git.oceanpay.cc/danial/kami_itunes_june.git
synced 2025-12-18 21:21:34 +00:00
- Removed DotRas library dependency in RasTools.cs, providing empty implementations for Connect and Disconnect methods. - Updated context menu implementation in ReddemHelp.cs to use ToolStripMenuItem and ContextMenuStrip. - Replaced caching mechanism in SiteHelper.cs with a custom dictionary-based implementation, removing reliance on HttpRuntime.Cache. - Switched from JavaScriptSerializer to Newtonsoft.Json for JSON serialization/deserialization in multiple files (Tools.cs, addMaterial.cs). - Added WebHeaderCollection property to HttpItem.cs for better header management. - Deleted obsolete AssemblyInfo.cs file. - Introduced apple_balance_query.py for querying Apple ID balance via Privacy Center, implementing authentication and balance retrieval logic.
104 lines
1.7 KiB
C#
104 lines
1.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Net;
|
|
|
|
namespace AppleBatch_June.Model
|
|
{
|
|
public class AppleItunesLogin
|
|
{
|
|
public string timeCheck = DateTime.Now.ToString("yyMMddHHmm");
|
|
|
|
public int timeCheckCount;
|
|
|
|
private string areaName;
|
|
|
|
private string kbsync;
|
|
|
|
public string reddemQts { get; set; } = "";
|
|
|
|
|
|
public string account { get; set; }
|
|
|
|
public string pwd { get; set; }
|
|
|
|
public string msg { get; set; }
|
|
|
|
public string StdndbyKeyGuid { get; set; } = "";
|
|
|
|
|
|
public DateTime LoginTime { get; set; } = DateTime.Now;
|
|
|
|
|
|
public string Balance { get; set; }
|
|
|
|
public string UserAgent { get; set; }
|
|
|
|
public string Area
|
|
{
|
|
get
|
|
{
|
|
return areaName;
|
|
}
|
|
set
|
|
{
|
|
areaName = AppleUtlis.GetAreaByArea(value);
|
|
AreaCode = AppleUtlis.GetCountryCodeByArea(value);
|
|
}
|
|
}
|
|
|
|
public string AreaCode { get; private set; }
|
|
|
|
public Dictionary<string, string> cookis { get; set; }
|
|
|
|
public string xtoken { get; set; }
|
|
|
|
public string dsis { get; set; }
|
|
|
|
public string ServerId { get; set; }
|
|
|
|
public string software { get; set; }
|
|
|
|
public string isDisabledAccount { get; set; }
|
|
|
|
public string extension { get; set; } = "";
|
|
|
|
|
|
public string oldUserAgent { get; set; } = "";
|
|
|
|
|
|
public string Guid { get; set; }
|
|
|
|
public int serverIndex { get; set; } = -1;
|
|
|
|
|
|
public string nextServerId { get; set; } = "0";
|
|
|
|
|
|
public string proxyIp { get; set; } = "";
|
|
|
|
|
|
public string Kbsync
|
|
{
|
|
get
|
|
{
|
|
string text = "";
|
|
for (int i = 0; i < kbsync.Length; i++)
|
|
{
|
|
if (i % 68 == 0)
|
|
{
|
|
text += "\n";
|
|
}
|
|
text += kbsync[i];
|
|
}
|
|
return kbsync;
|
|
}
|
|
set
|
|
{
|
|
kbsync = value;
|
|
}
|
|
}
|
|
|
|
public WebHeaderCollection Headers { get; set; } = new WebHeaderCollection();
|
|
}
|
|
}
|