private void RecovertListOfWorkers(EthMineRequest_Workers received) { if (!received.HasError()) { WorkerLinkedData <EtherMineOrgWorkerFrame>[] m_workersLoadedDebug = received.GetAllWorkersLastReceivedInformation(); for (int i = 0; i < m_workersLoadedDebug.Length; i++) { WorkerAddress worker = m_workersLoadedDebug[i].GetWorker(); CheckThatWorkerToExist(worker); m_register.GetWorkerInformation(worker, out bool found, out EthermineOrgWorkerFullInformation info); if (found) { info.SetWorkerRef(worker); info.SetCurrentFrame(m_workersLoadedDebug[i].GetLinkedData()); } } } }
//public EthMineRequest_WorkersMonitors m_workerMonitors; private void Awake() { m_workers = new EthMineRequest_Workers(m_addressObserved); m_minerCurrentStats = new EthMineRequest_MinerCurrentStats(m_addressObserved); m_workerStats = new EthMineRequest_WorkersStatistics(m_addressObserved, m_workerName); m_workerHisory = new EthMineRequest_WorkersHistory(m_addressObserved, m_workerName); m_webstats = new EthMineRequest_WebsitePoolStatistics(); m_webServersHistory = new EthMineRequest_WebsiteServersHistory(); m_webNetwork = new EthMineRequest_WebsiteNetworkStatistics(); m_webBlocks = new EthMineRequest_WebsiteBlocksStatistics(); //Don't know why I can't access those information onthey website //m_workerMonitors = new EthMineRequest_WorkersMonitors(m_addressObserved, m_workerName); // AddListenToAndPush(m_workerMonitors); AddListenToAndPush(m_workers); AddListenToAndPush(m_minerCurrentStats); AddListenToAndPush(m_workerStats); AddListenToAndPush(m_workerHisory); AddListenToAndPush(m_webstats); AddListenToAndPush(m_webServersHistory); AddListenToAndPush(m_webNetwork); AddListenToAndPush(m_webBlocks); }
private void WorkerRequestCastedCallback(EthMineRequest_Workers requestReceived) { Debug.Log(">" + requestReceived.ToString()); }
private void Awake() { m_workersInfo = new EthMineRequest_Workers(""); m_workersInfo.AddListener(CheckForChange); InvokeRepeating("Ping", 1, m_pingTimeInSeconds); }