AdjustSdk.Pcl.PackageBuilder.BuildSessionPackage C# (CSharp) Method

BuildSessionPackage() private method

private BuildSessionPackage ( ) : ActivityPackage
return ActivityPackage
        internal ActivityPackage BuildSessionPackage()
        {
            var parameters = GetDefaultParameters();

            AddTimeSpan(parameters, "last_interval", ActivityState.LastInterval);
            AddString(parameters, "default_tracker", AdjustConfig.DefaultTracker);

            return new ActivityPackage(ActivityKind.Session, DeviceInfo.ClientSdk, parameters);
        }

Usage Example

示例#1
0
        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();
        }
All Usage Examples Of AdjustSdk.Pcl.PackageBuilder::BuildSessionPackage