private BuildEventPackage ( AdjustEvent adjustEvent ) : |
||
adjustEvent | AdjustEvent | |
Результат |
private void TrackEventInternal(AdjustEvent adjustEvent) { if (!IsEnabled()) { return; } if (!CheckEvent(adjustEvent)) { return; } var now = DateTime.Now; ActivityState.EventCount++; UpdateActivityState(now); var packageBuilder = new PackageBuilder(AdjustConfig, DeviceInfo, ActivityState, now); ActivityPackage eventPackage = packageBuilder.BuildEventPackage(adjustEvent); PackageHandler.AddPackage(eventPackage); if (AdjustConfig.EventBufferingEnabled) { Logger.Info("Buffered event {0}", eventPackage.Suffix); } else { PackageHandler.SendFirstPackage(); } WriteActivityStateInternal(); }
private void TrackEventInternal(AdjustEvent adjustEvent) { if (!IsEnabled()) { return; } if (!CheckEvent(adjustEvent)) { return; } var now = DateTime.Now; ActivityState.EventCount++; UpdateActivityState(now); var packageBuilder = new PackageBuilder(AdjustConfig, DeviceInfo, ActivityState, now); ActivityPackage eventPackage = packageBuilder.BuildEventPackage(adjustEvent); PackageHandler.AddPackage(eventPackage); if (AdjustConfig.EventBufferingEnabled) { Logger.Info("Buffered event {0}", eventPackage.Suffix); } else { PackageHandler.SendFirstPackage(); } WriteActivityStateInternal(); }