private void TransferSessionPackage() { // build Session Package var sessionBuilder = new PackageBuilder(AdjustConfig, DeviceInfo, ActivityState, DateTime.Now); var sessionPackage = sessionBuilder.BuildSessionPackage(); // send Session Package PackageHandler.AddPackage(sessionPackage); PackageHandler.SendFirstPackage(); }
public ActivityPackage GetDeeplinkClickPackage(Dictionary<string, string> extraParameters, AdjustAttribution attribution) { var now = DateTime.Now; var packageBuilder = new PackageBuilder(AdjustConfig, DeviceInfo, ActivityState, now); packageBuilder.ExtraParameters = extraParameters; return packageBuilder.BuildClickPackage("deeplink", now, attribution); }
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(); }
public ActivityPackage GetAttributionPackage() { var now = DateTime.Now; var packageBuilder = new PackageBuilder(AdjustConfig, DeviceInfo, now); return packageBuilder.BuildAttributionPackage(); }