private static New <RankingResponseEnumerator> BindConstructorArguments(RankingResponse rankingResponse)
            {
                return(new New <RankingResponseEnumerator>(() =>
                {
                    IntPtr result = CreateRankingEnumeratorAdapter(rankingResponse.DangerousGetHandle());

                    GC.KeepAlive(rankingResponse); // Extend the lifetime of this handle because the delegate (and its data) is not stored on the heap.
                    return result;
                }));
            }
        public bool TryChooseRank(string eventId, string contextJson, ActionFlags flags, RankingResponse response, ApiStatus apiStatus = null)
        {
            int result = LiveModelChooseRankWithFlags(this.DangerousGetHandle(), eventId, contextJson, (uint)flags, response.DangerousGetHandle(), apiStatus.ToNativeHandleOrNullptrDangerous());

            GC.KeepAlive(this);
            return(result == NativeMethods.SuccessStatus);
        }