public override void Parse() { EWBFData ewbfData = GetResultsSection(LastLog); if (ewbfData.Parse(new EWBFReaderResultParser(LastLog, ReReadGpuNames))) { MinerResult = ewbfData.MinerDataResult; } ReReadGpuNames = false; }
EWBFData GetResultsSection(string innerText) { try { EWBFData minerResult = (EWBFData) new JavaScriptSerializer().Deserialize(innerText, typeof(EWBFData)); return(minerResult); } catch (Exception e) { } return(null); }
public bool Parse(object obj) { Succeeded = false; m_EwbfData = obj as EWBFData; try { if (m_EwbfData == null) { return(false); } ComputeGPUData(); return(true); } catch (Exception e) { Succeeded = false; } return(false); }