Ejemplo n.º 1
0
        public static ResponseData BuildResponseData(ActivityPackage activityPackage)
        {
            ActivityKind activityKind = activityPackage.ActivityKind;
            ResponseData responseData;

            switch (activityKind)
            {
            case ActivityKind.Session:
                responseData = new SessionResponseData();
                break;

            case ActivityKind.Attribution:
                responseData = new AttributionResponseData();
                break;

            case ActivityKind.Event:
                responseData = new EventResponseData(activityPackage);
                break;

            case ActivityKind.Click:
                responseData = new SdkClickResponseData();
                break;

            default:
                responseData = new UnknowResponseData();
                break;
            }

            responseData.ActivityKind = activityKind;

            return(responseData);
        }
Ejemplo n.º 2
0
 public void CheckSdkClickResponse(SdkClickResponseData sdkClickResponseData)
 {
     _actionQueue.Enqueue(() => CheckSdkClickResponseI(sdkClickResponseData));
 }
Ejemplo n.º 3
0
        private void CheckSdkClickResponseI(SdkClickResponseData sdkClickResponseData)
        {
            CheckAttributionI(sdkClickResponseData);

            _activityHandler.LaunchSdkClickResponseTasks(sdkClickResponseData);
        }