TrakHound_Server.Plugins.SnapshotData.Snapshot.ProcessCollected C# (CSharp) Méthode

ProcessCollected() private static méthode

private static ProcessCollected ( Snapshot snapshot, ReturnData currentData ) : bool
snapshot Snapshot
currentData ReturnData
Résultat bool
        private static bool ProcessCollected(Snapshot snapshot, ReturnData currentData)
        {
            bool result = false;

            if (currentData.DeviceStreams != null)
            {
                var dataItems = currentData.DeviceStreams[0].GetAllDataItems();

                bool found = false;

                // Seach Conditions
                found = ProcessCollectedCondtion(snapshot, dataItems);

                // Search Events
                if (!found) found = ProcessCollectedEvent(snapshot, dataItems);

                // Search Samples
                if (!found) found = ProcessCollectedSample(snapshot, dataItems);

                result = found;
            }

            return result;
        }