StructList.cs 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710
  1. using System;
  2. using System.Collections.Generic;
  3. namespace MOKA_Factory_Tools
  4. {
  5. class StructList
  6. {
  7. public static string CheckServerConnectionUrl = "https://cn.uc.qhmoka.com/scbc-server";//检查网络是否通顺对应URL
  8. }
  9. public class LocalPath
  10. {
  11. public static string localpath { get; set; }= AppDomain.CurrentDomain.BaseDirectory;
  12. }
  13. public class MidList
  14. {
  15. public string message { get; set; }
  16. public string code { get; set; }
  17. public string factoryname { get; set; }
  18. public string factoryip { get; set; }
  19. public string factoryNum { get; set; }
  20. public string version { get; set; }
  21. public string projectid { get; set; }
  22. public string clienttype { get; set; }
  23. public string host { get; set; }
  24. public string quantity { get; set; }
  25. public string whiteType { get; set; }
  26. public RokuCustomer rokuCustomer { get; set; }
  27. public Dictionary <string,string> keytype { get; set; }
  28. public bool aesEncrypt { get; set; } = false;
  29. }
  30. public class RokuData
  31. {
  32. public string region { get; set; }
  33. public string supporturl { get; set; }
  34. public string supportphone { get; set; }
  35. }
  36. public class RokuCustomer
  37. {
  38. public string id { get; set; }
  39. public string ordernum { get; set; }
  40. public string brand { get; set; }
  41. public string oemmodel { get; set; }
  42. public string productiondate { get; set; }
  43. public string remotetype { get; set; }
  44. public string updatetime { get; set; }
  45. public string createtime { get; set; }
  46. public string isdelete { get; set; }
  47. public List<RokuData> data { get; set; }
  48. }
  49. public class WhiteBalanceInput
  50. {
  51. public string bid { get; set; }
  52. public string mac { get; set; }
  53. }
  54. public class WhiteBalanceList
  55. {
  56. public string message { get; set; }
  57. public string code { get; set; }
  58. public WhiteBalanceInfo whiteBalanceInfo { get; set; }
  59. }
  60. public class WhiteBalanceInfo
  61. {
  62. public string id { get; set; }
  63. public string ordernum { get; set; }
  64. public string hdmirgain { get; set; }
  65. public string hdmiggain { get; set; }
  66. public string hdmibgain { get; set; }
  67. public string nrgain { get; set; }
  68. public string nggain { get; set; }
  69. public string nbgain { get; set; }
  70. public string lrgain { get; set; }
  71. public string lggain { get; set; }
  72. public string lbgain { get; set; }
  73. public string updatetime { get; set; }
  74. public string createtime { get; set; }
  75. public string isdelete { get; set; }
  76. public string isExemption { get; set; }
  77. }
  78. public class MidAddress
  79. {
  80. public string host { get; set; }
  81. public string order { get; set; }
  82. public string number { get; set; }
  83. public string pid { get; set; }
  84. public string ctype { get; set; }
  85. public string version { get; set; }
  86. public string purl { get; set; }
  87. public string psize { get; set; }
  88. public string pmd5 { get; set; }
  89. public string status { get; set; }
  90. public string start_date { get; set; }
  91. public string finish_date { get; set; }
  92. public string des { get; set; }
  93. public string code { get; set; }
  94. }
  95. public class OrderInput
  96. {
  97. public string clientType { get; set; }
  98. public string version { get; set; }
  99. public string bid { get; set; }
  100. public string mac { get; set; }
  101. }
  102. public class DBKeysStringFormat
  103. {
  104. public string cikey { get; set; }
  105. public string esn { get; set; }
  106. public string hdcp { get; set; }
  107. public string widevine { get; set; }
  108. public string hdcp22 { get; set; }
  109. public string did { get; set; }
  110. public string mac { get; set; }
  111. //public string widi { get; set; }
  112. public string mgk { get; set; }
  113. public string attestation { get; set; }
  114. }
  115. public class FunctionSetting
  116. {
  117. public string TVCOM { get; set; }
  118. public string TVBaud { get; set; }
  119. public int TVParity { get; set; } = 0; // 校验位默认为None
  120. public string ChannelList { get; set; }
  121. public bool WriteChannel { get; set; }
  122. public bool WriteOSD { get; set; }
  123. public string OSDList { get; set; }
  124. public bool WriteSHOP { get; set; }
  125. public string SHOPList { get; set; }
  126. public bool WriteWB { get; set; }
  127. public bool WBInit { get; set; }
  128. public string WBPath { get; set; }
  129. public string WBFileName { get; set; }
  130. public byte[] ChannelCode { get; set; }
  131. public byte[] OSDLCode { get; set; }
  132. public byte[] ShopLCode { get; set; }
  133. public byte[] NormalRGB { get; set; }
  134. public byte[] CoolRGB { get; set; }
  135. public byte[] WarmRGB { get; set; }
  136. public int EnterFactoryRetry { get; set; }
  137. /// <summary>
  138. /// 全部Key抄写成功后,且上报成功后等待多久控件可用;
  139. /// </summary>
  140. public int Wait_after_completion { get; set; }
  141. public int LocalDidSize { get; set; }
  142. public int LocalMacSize { get; set; }
  143. public int LocalHdcpSize { get; set; }
  144. public int LocalWidiSize { get; set; }
  145. public int LocalHdcp22Size { get; set; }
  146. public int LocalEsnSize { get; set; }
  147. public int LocalMGKSize { get; set; }
  148. public int LocalCiSize { get; set; }
  149. public int LocalWidevineSize { get; set; }
  150. public int LocalFairplaySize { get; set; }
  151. public int LocalECPSize { get; set; }
  152. public int LocalWifiMacSize { get; set; }
  153. public int LocalBTMacSize { get; set; }
  154. public int localACASKeySize { get; set; }
  155. public bool NoDoublewrite { get; set; }//Local DB模式下不允许扫描已经抄写过的SN
  156. public string BarcodeKeyword { get; set; }
  157. public int BarcodeLength { get; set; }
  158. public bool BarcodeLimit { get; set; }
  159. public bool BarcodeWrite { get; set; }
  160. public int SerailDelay { get; set; }
  161. public bool UsingLocalServer { get; set; }
  162. public Dictionary<string, string> CustomCMD { get; set; }
  163. /// <summary>
  164. /// 允许不用扫条码抄写(单击按钮);
  165. /// </summary>
  166. public bool AllowNoScanning { get; set; }
  167. public int ReportTimeOut { get; set; }
  168. /// <summary>
  169. /// 是否启用G客户防呆措施;
  170. /// </summary>
  171. public bool UsingGFoolProofing { get; set; } = false;
  172. /// <summary>
  173. /// G客户防呆抄写次数限制,默认2次;
  174. /// </summary>
  175. public int GFoolProofingCount { get; set; } = 2;
  176. /// <summary>
  177. /// 是否导出日本板卡的ACAS ID与SN号;
  178. /// </summary>
  179. public bool ExportSNACASID { get; set; } = false;
  180. /// <summary>
  181. /// 串口指令读超时值,单位毫秒;
  182. /// </summary>
  183. public int ReadTimeout { get; set; } = 3000;
  184. /// <summary>
  185. /// 串口完成一次指令的Write、Read后,下一条指令等待多久开始执行;
  186. /// 单位:毫秒
  187. /// </summary>
  188. public int NextCommandWaitTime { get; set; } = 100;
  189. /// <summary>
  190. /// G客户NTF功能是否开启;
  191. /// </summary>
  192. public bool NTF { get; set; } = false;
  193. /// <summary>
  194. /// 产线线体;
  195. /// </summary>
  196. public string Line { get; set; }
  197. /// <summary>
  198. /// 产线工站,抄写工具默认为DataBurning
  199. /// </summary>
  200. public readonly string Station = "DataBurning";
  201. #region 波兰工厂DHA解决方案;
  202. /// <summary>
  203. /// DHA抄写完后等待完成时间;
  204. /// </summary>
  205. public int CheckDHAWaitTime { get; set; } = 8000;
  206. /// <summary>
  207. /// 是否开启DHA功能,默认关闭;
  208. /// </summary>
  209. public bool DHA { get; set; } = false;
  210. #endregion
  211. #region 小米FireTV功能模块启用;
  212. /// <summary>
  213. /// 是否启用小米FireTV功能模块 ;
  214. /// </summary>
  215. public bool MITVEnable { get; set; } = false;
  216. public string MIKeyUrl { get; set; } = "http://smes-app-prod.tclking.com:9006/api/SMESCustomer/GetXMCard";
  217. public string MIKeyReportUrl { get; set; } = "http://smes-app-prod.tclking.com:9006/api/SMESCustomer/UploadXMDataControl";
  218. /// <summary>
  219. /// 印度小米功能启用;
  220. /// </summary>
  221. public bool IndiaMITVEnable { get; set; } = false;
  222. #endregion
  223. #region 离线EDID
  224. public bool edid_offline { get; set; } = false;
  225. public string edid_pid { get; set; } = "";
  226. public string edid_model_name { get; set; } = "";
  227. #endregion
  228. #region 串口重试机制
  229. public bool EnableRetry { get; set; } = false;
  230. public int RetryCount { get;set; } = 3;
  231. #endregion
  232. // 抄写结束时,是否触发离开工厂模式指令;
  233. public bool LeaveFactory { get; set; } = false;
  234. // 当SN连接2次抄写时提示,主要防止一个SN被扫描在2台机器上;
  235. public bool SNDoubleTips { get; set; } = false;
  236. /// <summary>
  237. /// 是否使用墨西哥NTF功能;
  238. /// </summary>
  239. public bool Mexican_NTF { get; set; } = false;
  240. /// <summary>
  241. /// 是否启用墨西哥IDM局域网接口;
  242. /// </summary>
  243. public bool Mexican_IDM { get; set; } = false;
  244. /// <summary>
  245. /// 是否使用三华MES对接;
  246. /// </summary>
  247. public bool EnableSanhuaMES { get; set; } = false;
  248. /// <summary>
  249. /// 后台上传IDM的在线数据;
  250. /// </summary>
  251. public bool BackgroudReportData { get; set; } = false;
  252. }
  253. public enum KEY_FROM
  254. {
  255. FROM_IDM = 0,
  256. FROM_MES = 1,
  257. }
  258. public class KeyData
  259. {
  260. public KeyData(string n="") {
  261. name = n;
  262. }
  263. // 要抄写的Key的名称;
  264. public string name { get; set; }
  265. // 是否要抄写该Key;
  266. public bool enable { get; set; } = false;
  267. // 要抄写的Key数据;
  268. public string data { get; set; }
  269. // 要抄写的Key数据md5值;
  270. public string md5 { get;set; }
  271. // 抄写结果;
  272. public bool result { get; set; } = false;
  273. // 抄写结果描述;
  274. public string msg { get; set; }
  275. // key的来源;
  276. public KEY_FROM keyfrom { get; set; } = KEY_FROM.FROM_IDM;
  277. // 要抄写的Key数据长度;
  278. public int Length
  279. {
  280. get { return data == null ? 0 : data.Length; }
  281. }
  282. /// <summary>
  283. /// KeyData kd; string data; data = kd;
  284. /// </summary>
  285. /// <param name="v"></param>
  286. public static implicit operator string(KeyData v)
  287. {
  288. return v.data;
  289. }
  290. }
  291. public class KeyInfo
  292. {
  293. public KeyData DID = new KeyData("deviceid");
  294. public KeyData Mac = new KeyData("mac");
  295. public KeyData HDCP = new KeyData("hdcp");
  296. public KeyData HDCP22 = new KeyData("hdcp2");
  297. public KeyData ESN = new KeyData("netfilx");
  298. //public KeyData WiDi = new KeyData();
  299. public KeyData Widevine = new KeyData("widevine");
  300. public KeyData CI_plus = new KeyData("ci");
  301. public KeyData Attestation = new KeyData("attention");
  302. // public KeyData AttestationMD5 = new KeyData();
  303. public KeyData MGK = new KeyData("mgk");
  304. public KeyData Fairplay = new KeyData("fairplay");
  305. public KeyData DSN = new KeyData("dsn");
  306. public KeyData WiFi_MAC = new KeyData("wifiMac");
  307. public KeyData BT_MAC = new KeyData("btMac");
  308. public KeyData LEK = new KeyData("lek");
  309. public KeyData PEK = new KeyData("pek");
  310. public KeyData Playready = new KeyData("playready");
  311. public KeyData Hashkey = new KeyData("hash");
  312. public KeyData ECP = new KeyData("ecp");
  313. public KeyData YouTube_KEY = new KeyData("youtube");
  314. public KeyData EDIDPid = new KeyData();
  315. public KeyData EDIDModelName = new KeyData();
  316. public KeyData ACASKey_Data = new KeyData("acas");
  317. //public KeyData ACASKey_Tool = new KeyData();
  318. //public KeyData ACASKey_DataMd5 = new KeyData();
  319. //public KeyData ACASKey_ToolMd5 = new KeyData();
  320. public KeyData DAK = new KeyData("dak");
  321. public KeyData FVP = new KeyData();
  322. public KeyData KFP = new KeyData("kfp");
  323. #region Kayla所需数据;
  324. public KeyData _PSN = new KeyData();
  325. #endregion
  326. }
  327. public class FireTVKey
  328. {
  329. public bool LEK { get; set; }
  330. public bool PEK { get; set; }
  331. public bool Playready { get; set; }
  332. public bool Hashkey { get; set; }
  333. }
  334. public class FireTVDsnInput
  335. {
  336. public string ordernum { get; set; }
  337. public string fsn { get; set; }
  338. public string psn { get; set; }
  339. public string deviceCode { get; set; }
  340. public string mac { get; set; }
  341. }
  342. public class Config_ReadCheck
  343. {
  344. public bool PIDReadcheck { get; set; }
  345. public bool OSDReadcheck { get; set; }
  346. public bool SHOPReadcheck { get; set; }
  347. public bool DIDReadcheck { get; set; }
  348. public bool MacReadcheck { get; set; }
  349. public bool HDCPReadcheck { get; set; }
  350. public bool HDCP22Readcheck { get; set; }
  351. public bool ESNReadcheck { get; set; }
  352. public bool WidevineReadcheck { get; set; }
  353. public bool CI_plusReadcheck { get; set; }
  354. public bool AttestationReadcheck { get; set; }
  355. public bool MGKReadcheck { get; set; }
  356. public bool FairplayReadcheck { get; set; }
  357. public bool ECPReadcheck { get; set; }
  358. public bool WifiMacReadcheck { get; set; }
  359. public bool BTMacReadcheck { get; set; }
  360. public bool LEKReadcheck { get; set; }
  361. public bool PEKReadcheck { get; set; }
  362. public bool PlayreadyReadcheck { get; set; }
  363. public bool HashReadcheck { get; set; }
  364. public bool DSNReadcheck { get; set; }
  365. public bool YouTubeReadcheck { get; set; }
  366. public bool EDIDPIDReadcheck { get; set; }
  367. public bool EDIDModeNameReadcheck { get; set; }
  368. public bool ACASKeyReadcheck { get; set; }
  369. public bool ACASIDReadcheck { get; set; }
  370. public bool FVPReadcheck { get; set; }
  371. public bool DAKReadcheck { get; set; }
  372. public bool DolbyReadcheck { get; set; }
  373. public bool KFPReadcheck { get; set; }
  374. }
  375. public class Config_WriteCheck
  376. {
  377. public bool DIDCheckcheck { get; set; }
  378. public bool MacCheckcheck { get; set; }
  379. public bool HDCPCheckcheck { get; set; }
  380. public bool HDCP22Checkcheck { get; set; }
  381. public bool ESNCheckcheck { get; set; }
  382. public bool WidevineCheckcheck { get; set; }
  383. public bool CI_plusCheckcheck { get; set; }
  384. public bool AttestationCheckcheck { get; set; }
  385. public bool MGKCheckcheck { get; set; }
  386. public bool FairplayCheckcheck { get; set; }
  387. public bool ECPCheckcheck { get; set; }
  388. public bool WifiMacCheckcheck { get; set; }
  389. public bool BTMacCheckcheck { get; set; }
  390. public bool LEKCheckcheck { get; set; }
  391. public bool PEKCheckcheck { get; set; }
  392. public bool PlayreadyCheckcheck { get; set; }
  393. public bool HashCheckcheck { get; set; }
  394. public bool DSNCheckcheck { get; set; }
  395. public bool YouTubeCheckcheck { get; set; }
  396. public bool ACASKeyCheckcheck { get; set; }
  397. public bool FVPCheckcheck { get; set; }
  398. public bool DAKCheckcheck { get; set; }
  399. public bool DolbyCheckcheck { get; set; }
  400. public bool KFPCheckcheck { get; set; }
  401. }
  402. public class Config_WriteDone
  403. {
  404. public bool PIDWrite_YesNo { get; set; }
  405. public int PIDWriteDelay { get; set; }
  406. public bool AutoWhiteBalance { get; set; }
  407. public bool ChannelWrite_YesNo { get; set; }
  408. public bool OSDWrite_YesNo { get; set; }
  409. public bool SHOPWrite_YesNo { get; set; }
  410. public bool ClientTypeCheck_YesNo { get; set; }
  411. public bool SoftwareVersionCheck_YesNo { get; set; }
  412. public bool EDIDPIDWrite_YesNo { get; set; }
  413. public bool EDIDModeNameWrite_YesNo { get; set; }
  414. public bool FVPWrite_YesNo { get; set; }
  415. public bool DolbyWrite_YesNo { get;set; }
  416. #region getmessage接口对应需要在线获取的key类型;
  417. public bool DIDWrite_YesNo { get; set; }
  418. public bool MacWrite_YesNo { get; set; }
  419. public bool HDCPWrite_YesNo { get; set; }
  420. public bool HDCP22Write_YesNo { get; set; }
  421. public bool ESNWrite_YesNo { get; set; }
  422. public bool WidevineWrite_YesNo { get; set; }
  423. public bool CI_plusWrite_YesNo { get; set; }
  424. public bool AttestationWrite_YesNo { get; set; }
  425. public bool MGKWrite_YesNo { get; set; }
  426. public bool FairplayWrite_YesNo { get; set; }
  427. public bool ECPWrite_YesNo { get; set; }
  428. public bool WifiMacWrite_YesNo { get; set; }
  429. public bool BTMacWrite_YesNo { get; set; }
  430. public bool LEKWrite_YesNo { get; set; }
  431. public bool PEKWrite_YesNo { get; set; }
  432. public bool PlayreadyWrite_YesNo { get; set; }
  433. public bool HashWrite_YesNo { get; set; }
  434. public bool DSNWrite_YesNo { get; set; }
  435. public bool YouTubeWrite_YesNo { get; set; }
  436. public bool ACASKeyWrite_YesNo { get; set; }
  437. public bool DAKWrite_YesNo { get; set; }
  438. public bool KFPWrite_YesNo { get; set; }
  439. #endregion
  440. }
  441. public class ErrorInfo
  442. {
  443. public string reportType { get; set; }
  444. public string reportData { get; set; }
  445. public string version { get; set; }
  446. public string factory { get; set; }
  447. public string mac { get; set; }
  448. public string reportTime { get; set; }
  449. }
  450. public class UpgradeCheckInput
  451. {
  452. public string appid { get; set; }
  453. public string devicemodel { get; set; }
  454. public string dnum { get; set; }
  455. public string ver { get; set; }
  456. public string type { get; set; }
  457. }
  458. public class UpgradeMsgList
  459. {
  460. public string servertime { get; set; }
  461. public string callid { get; set; }
  462. public string state { get; set; }
  463. public string note { get; set; }
  464. public string language { get; set; }
  465. public UpgradeMsgList2 upgrade { get; set; }
  466. public string apiversion { get; set; }
  467. }
  468. public class UpgradeReportInput
  469. {
  470. public string appid { get; set; }
  471. public string devmodel { get; set; }
  472. public string dnum { get; set; }
  473. public string ver { get; set; }
  474. public string result { get; set; }
  475. public string type { get; set; }
  476. }
  477. public class UpgradeMsgList2
  478. {
  479. public string type { get; set; }
  480. public string appid { get; set; }
  481. public string apptype { get; set; }
  482. public string version { get; set; }
  483. public string verid { get; set; }
  484. public object md5 { get; set; }
  485. public string size { get; set; }
  486. public string minicon { get; set; }
  487. public object midicon { get; set; }
  488. public string fileurl { get; set; }
  489. public string increment { get; set; }
  490. public object appendver { get; set; }
  491. public string updatetime { get; set; }
  492. }
  493. public static class Serverurl
  494. {
  495. public static string Testurl = "http://test.scbc.qhmoka.com/scbc-server/clientType/getMessage.do";//测试用服务器
  496. public static string Officialurl = "https://cn.uc.qhmoka.com/scbc-server/clientType/getMessage.do";//生产用服务器
  497. }
  498. public static class UpgradeUrl
  499. {
  500. public static string Officialurl = "https://cn.ota.qhmoka.com/ota-services/upmp/upgradeIncrForTool";//生产用升级检查接口
  501. public static string Testurl = "https://test.uc.qhmoka.com/ota-services/upmp/upgradeIncrForTool";//测试用升级检查接口
  502. }
  503. public static class UpgradeReportUrl
  504. {
  505. public static string Officialurl = "https://cn.ota.qhmoka.com/ota-services/upmp/operateInterfaceForPC";//生产用升级上报接口
  506. //public static string Testurl = "https://test.uc.qhmoka.com/ota-services/upmp/operateInterfaceForPC";//测试用升级上报接口
  507. }
  508. public static class ErrorreportServerurl
  509. {
  510. public static string Testurl = "http://test.micro.server.qhmoka.com/report/reportToolsLog";//异常上报测试服务器
  511. public static string Officialurl = "https://ap.micro.server.qhmoka.com/report/reportToolsLog";//异常上报正式服务器
  512. }
  513. public static class GetWhiteBalanceInfoUrl
  514. {
  515. public static string Testurl = "http://test.scbc.qhmoka.com/scbc-server/clientType/getBalanceMessage.do";//获取订单白平衡配置测试接口
  516. public static string Officialurl = "https://cn.uc.qhmoka.com/scbc-server/clientType/getBalanceMessage.do";//获取订单白平衡配置正式接口
  517. }
  518. public static class FireTVDsnUrl
  519. {
  520. public static string Testurl = "http://test.scbc.qhmoka.com/scbc-server/dsn/";//获取FireTV DSN相关测试接口
  521. public static string Officialurl = "https://cn.uc.qhmoka.com/scbc-server/dsn/";//获取FireTV DSN相关正式接口
  522. }
  523. public static class Loginurl
  524. {
  525. public static string Testurl = "http://test.scbc.qhmoka.com/scbc-server/login.do";//测试用登录接口
  526. public static string Officialurl = "https://cn.uc.qhmoka.com/scbc-server/login.do";//生产用登录接口
  527. }
  528. public class LoginInput
  529. {
  530. public string account { get; set; }
  531. public string password { get; set; }
  532. public string mac { get; set; }
  533. }
  534. public class LoginOutput
  535. {
  536. public string msg { get; set; }
  537. public string code { get; set; }
  538. public string factoryname { get; set; }
  539. public string factorynum { get; set; }
  540. }
  541. public static class TestMode
  542. {
  543. // 默认为正式服务器;
  544. public static bool testMode = false;
  545. public static string MAC = CommonMethod.GetMacAddress();
  546. public static string loginUrl = Loginurl.Officialurl;
  547. public static string fireTVDsnUrl = FireTVDsnUrl.Officialurl;
  548. public static string getWhiteBalanceInfoUrl = GetWhiteBalanceInfoUrl.Officialurl;
  549. public static string errorreportServerurl = ErrorreportServerurl.Officialurl;
  550. public static string upgradeReportUrl = UpgradeReportUrl.Officialurl;
  551. public static string upgradeUrl = UpgradeUrl.Officialurl;
  552. public static string serverurl = Serverurl.Officialurl;
  553. public static void SetTestMode(bool simulation = false)
  554. {
  555. if (simulation)
  556. {// 模拟测试时使用测试服务器;
  557. loginUrl = Loginurl.Testurl;
  558. fireTVDsnUrl = FireTVDsnUrl.Testurl;
  559. getWhiteBalanceInfoUrl = GetWhiteBalanceInfoUrl.Testurl;
  560. errorreportServerurl = ErrorreportServerurl.Testurl;
  561. upgradeReportUrl = UpgradeReportUrl.Officialurl;
  562. upgradeUrl = UpgradeUrl.Testurl;
  563. serverurl = Serverurl.Testurl;
  564. }
  565. else
  566. {
  567. loginUrl = Loginurl.Officialurl;
  568. fireTVDsnUrl = FireTVDsnUrl.Officialurl;
  569. getWhiteBalanceInfoUrl = GetWhiteBalanceInfoUrl.Officialurl;
  570. errorreportServerurl = ErrorreportServerurl.Officialurl;
  571. upgradeReportUrl = UpgradeReportUrl.Officialurl;
  572. upgradeUrl = UpgradeUrl.Officialurl;
  573. serverurl = Serverurl.Officialurl;
  574. }
  575. }
  576. }
  577. #region G客户NTF统计功能
  578. public class MaInfo
  579. {
  580. public string ODF;
  581. public string BOM;
  582. public string SCREEN;
  583. public string SHIPPING;
  584. public string SIZE;
  585. public string Model;
  586. #region Kayla返回所需;
  587. public string project_name_I { get; set; } = "";
  588. public string build_I { get; set; } = "";
  589. public string build_config_I { get; set; } = "";
  590. public string diag_ver_I { get; set; } = "";
  591. public string image_name_ver_I { get; set; } = "";
  592. public string soc_type { get; set; } = "";
  593. public string speaker_vender { get; set; } = "";
  594. public string mic_vender { get; set; } = "";
  595. #endregion
  596. }
  597. #endregion
  598. #region 小米FireTVKey;
  599. public class MIKey
  600. {
  601. public string TVSN = "";
  602. public string Batchnum = "";
  603. public string UpdateUser = "";
  604. public string UpdateTime = "";
  605. public string FWVersion = "";
  606. public string Model = "";
  607. public string IsPrint = "";
  608. public string FWVersion_2 = "";
  609. public string OPName = "";
  610. public string TVMN = "";
  611. public string EAN = "";
  612. public string SKU = "";
  613. public string DeviceID = "";
  614. public string OPSN = "";
  615. // 实际只抄写以下4项;
  616. public string EthernetMac = "";
  617. public string BTMac = "";
  618. public string WIFIMAC = "";
  619. public string DSN = "";
  620. // 内置值;
  621. public string _PSN = "";
  622. public int _HDCP14 = 0;
  623. public int _HDCP22 = 0;
  624. }
  625. public class ReportMIKey
  626. {
  627. public string DSN { set; get; } = "";
  628. public string TVSN { set; get; } = "";
  629. public string TVMN { set; get; } = "";
  630. public string ChipSN { set; get; } = "";
  631. public string ChipMN { set; get; } = "";
  632. public string EthernetMAC { set; get; } = "";
  633. public string BTMAC { set; get; } = "";
  634. public string WIFIMAC { set; get; } = "";
  635. public string HDCP14 { set; get; } = "";
  636. public string HDCP22 { set; get; } = "";
  637. }
  638. #endregion
  639. public class KeyType
  640. {
  641. public string name { get; set; } = "";
  642. public string type { get; set; } = "";
  643. }
  644. public class SanhuaMESLoginInfo
  645. {
  646. public string url { get; set; }
  647. public string staffCode { get; set; }
  648. public string password { get; set; }
  649. public string resourceCode { get; set; }
  650. public string jigEdtion { get; set; }
  651. }
  652. }