/// <summary> Wrapper method of RequestMultiSlotDecisionDetailed </summary>
        public override MultiSlotResponseDetailedWrapper RequestMultiSlotDecisionDetailed(string eventId, string contextJson, ActionFlags flags, int[] baselineActions)
        {
            MultiSlotResponseDetailed        multiSlotResponse = liveModel.RequestMultiSlotDecisionDetailed(eventId, contextJson, flags, baselineActions);
            MultiSlotResponseDetailedWrapper multiSlotResponseDetailedWrapper = multiSlotResponse == null ? null : new MultiSlotResponseDetailedWrapper(multiSlotResponse);

            return(multiSlotResponseDetailedWrapper);
        }
Exemple #2
0
        private void Run_LiveModelRequestMultiSlotDetailedWithFlags_Test(LiveModel liveModel, string contextJson, string eventId)
        {
            NativeMethods.LiveModelRequestMultiSlotDecisionDetailedWithFlagsOverride =
                (IntPtr liveModelPtr, IntPtr eventIdPtr, IntPtr contextJsonPtr, uint flags, IntPtr rankingResponse, IntPtr ApiStatus) =>
            {
                string contextJsonMarshalledBack = NativeMethods.StringMarshallingFunc(contextJsonPtr);
                Assert.AreEqual(contextJson, contextJsonMarshalledBack, "Marshalling contextJson does not work properly in LiveModelRequestDecisionDetailedWithFlags");

                return(NativeMethods.SuccessStatus);
            };

            liveModel.RequestMultiSlotDecisionDetailed(eventId, contextJson, ActionFlags.Deferred);
        }