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;
}