コード例 #1
0
        /// <summary>
        /// Retrieves a single statement from the configured LRS.
        ///
        /// As you can't overload a function with identical argument types, this is private with
        /// a slightly different name.
        /// </summary>
        /// <param name="url"></param>
        /// <param name="callback"></param>
        private static void GetStatement(StatementQuery query, Action <Statement, UnityWebRequest> callback)
        {
            // Make sure we have a messenger
            XAPIWrapper.CheckMessenger();

            // Build the fully qualified URL
            string url = XAPIMessenger.Config.StatementEndpoint + query.BuildQueryString();;

            XAPIMessenger.GetStatement(url, callback);
        }
コード例 #2
0
        /// <summary>
        /// Retrieves statements according to the StatementQuery values.
        ///
        /// The StatementResult object in the callback may contain a `MoreIRL` value.  If that is the case,
        /// then more statements matching your query can be returned using that endpoints with your LRS.
        /// </summary>
        /// <param name="result"></param>
        /// <param name="callback"></param>
        public static void GetStatements(StatementQuery query, Action <StatementResult, UnityWebRequest> callback)
        {
            string url = XAPIMessenger.Config.StatementEndpoint + query.BuildQueryString();

            XAPIMessenger.GetStatements(url, callback);
        }