예제 #1
0
        /// <summary>
        /// Whether an Initial has been received for the specified subscription.
        /// Returns true if initial has been received.
        /// </summary>
        /// <returns>
        /// True if an initial has been received for this subscription.
        /// </returns>
        public bool getReceivedInitial()
        {
            // Returns
            bool ret = false;

            // Verify that the native subscription has been allocated
            EnsurePeerCreated();

            // Call the native layer
            int receivedInitial = 0;

            CheckResultCode(SubscriptionNativeMethods.mamaSubscription_getReceivedInitial(NativeHandle, ref receivedInitial));

            // Convert the integer returned from the native call into a boolean
            if (receivedInitial == 1)
            {
                ret = true;
            }

            return(ret);
        }