当前位置: 首页>>代码示例>>C#>>正文


C# Form1.GetNextRequestId方法代码示例

本文整理汇总了C#中Form1.GetNextRequestId方法的典型用法代码示例。如果您正苦于以下问题:C# Form1.GetNextRequestId方法的具体用法?C# Form1.GetNextRequestId怎么用?C# Form1.GetNextRequestId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Form1的用法示例。


在下文中一共展示了Form1.GetNextRequestId方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: CreateSetValueRequest_020110

        private scormenginewsproto.ws020110.SetValueRequestType CreateSetValueRequest_020110(ItemChoiceType dataModelElement, object value, Form1 frm)
        {
            SetValueRequestType setRequest1 = new SetValueRequestType();
            setRequest1.RequestID = frm.GetNextRequestId();

            setRequest1.cmiDataModelElement = new cmiDataModelElement();

            setRequest1.cmiDataModelElement.ItemElementName = dataModelElement;
            setRequest1.cmiDataModelElement.Item = value;

            return setRequest1;
        }
开发者ID:RusticiSoftware,项目名称:LETSI_RTWS_Client,代码行数:12,代码来源:DoRequests.cs

示例2: DoTerminate_020110

        public void DoTerminate_020110(Form1 frm)
        {
            LETSIRTE_Service_020110 ws = new LETSIRTE_Service_020110(frm.GetSessionId(),frm.Secret);

            frm.Log("Making Terminate Request");

            TerminateRequestType terminateRequest = new TerminateRequestType();
            terminateRequest.RequestID = frm.GetNextRequestId();
            terminateRequest.SessionID = frm.GetSessionId();

            TerminateResponseType terminateResponse = ws.Terminate(terminateRequest);

            string responseText = "";
            responseText += "\tErrorCode=" + terminateResponse.ErrorCode + "\r\n";
            responseText += "\tErrorString=" + terminateResponse.ErrorString + "\r\n";
            responseText += "\tErrorDiagnostic=" + terminateResponse.ErrorDiagnostic + "\r\n";
            responseText += "\tRequestID=" + terminateResponse.RequestID + "\r\n";
            responseText += "\tSessionID=" + terminateResponse.SessionID + "\r\n";
            responseText += "\tSuccessIndicator=" + terminateResponse.SuccessIndicator + "\r\n";

            frm.Log("Server responded with:\r\n" + responseText);
        }
开发者ID:RusticiSoftware,项目名称:LETSI_RTWS_Client,代码行数:22,代码来源:DoRequests.cs

示例3: CreateGetValueRequest_020110

        private scormenginewsproto.ws020110.GetValueRequestType CreateGetValueRequest_020110(string xPath, Form1 frm)
        {
            GetValueRequestType getRequest1 = new GetValueRequestType();
            getRequest1.RequestID = frm.GetNextRequestId();
            DataModelElementRefType element = new DataModelElementRefType();
            element.expressionLanguage = EXPRESSION_LANGUAGE;
            element.Value = xPath;
            getRequest1.DataModelElementRef = element;

            return getRequest1;
        }
开发者ID:RusticiSoftware,项目名称:LETSI_RTWS_Client,代码行数:11,代码来源:DoRequests.cs

示例4: DoDataExchange_020110

        public void DoDataExchange_020110(Form1 frm)
        {
            frm.Log("Making Data Exchange Request");

            LETSIRTE_Service_020110 ws = new LETSIRTE_Service_020110(frm.GetSessionId(),frm.Secret);

            RTERequestType dataExchangeRequest = new RTERequestType();

            dataExchangeRequest.SessionID = frm.GetSessionId();
            dataExchangeRequest.RequestID = frm.GetNextRequestId();

            ArrayList requests = new ArrayList();

            //requests.Add(CreateGetValueRequest_020110("/cocd/completionStatus", frm));
            requests.Add(CreateSetValueRequest_020110(ItemChoiceType.completionStatus, completionStatusType.incomplete, frm));
            //requests.Add(CreateGetValueRequest_020110("/cocd/completionStatus", frm));
            //requests.Add(CreateSetValueRequest_020110(ItemChoiceType.completionStatus, completionStatusType.completed, frm));
            //requests.Add(CreateSetValueRequest_020110(ItemChoiceType.completionStatus, completionStatusType.unknown, frm));

            //requests.Add(CreateGetValueRequest_020110("/cocd/completionStatus", frm));

            //requests.Add(CreateGetValueRequest_020110("/cocd/location", frm));

            ////literalString1000Type location = new literalString1000Type();
            ////location.Value = "this is location";
            ////requests.Add(CreateSetValueRequest_020110(ItemChoiceType.location, location, frm));

            //requests.Add(CreateGetValueRequest_020110("/cocd/location", frm));

            //requests.Add(CreateGetValueRequest_020110("/cocd/completionStatus", frm));
            //requests.Add(CreateGetValueRequest_020110("/cocd/completionThreshold", frm));
            //requests.Add(CreateGetValueRequest_020110("/cocd/credit", frm));
            //requests.Add(CreateGetValueRequest_020110("/cocd/entry", frm));
            //requests.Add(CreateGetValueRequest_020110("/cocd/launchData", frm));

            //requests.Add(CreateGetValueRequest_020110("/cocd/learnerId", frm));

            //requests.Add(CreateGetValueRequest_020110("/cocd/learnerName", frm));
            //requests.Add(CreateGetValueRequest_020110("/cocd/learnerPreferenceData", frm));
            ////getValueRequests.Add(CreateGetValueRequest("/cocd/learnerPreferenceData/audioLevel", frm));
            ////getValueRequests.Add(CreateGetValueRequest("/cocd/learnerPreferenceData/deliverySpeed", frm));
            ////getValueRequests.Add(CreateGetValueRequest("/cocd/learnerPreferenceData/audioCaptioning", frm));
            ////getValueRequests.Add(CreateGetValueRequest("/cocd/learnerPreferenceData/language", frm));
            //requests.Add(CreateGetValueRequest_020110("/cocd/lessonStatus", frm));
            //requests.Add(CreateGetValueRequest_020110("/cocd/location", frm));
            //requests.Add(CreateGetValueRequest_020110("/cocd/maxTimeAllowed", frm));
            //requests.Add(CreateGetValueRequest_020110("/cocd/mode", frm));
            //requests.Add(CreateGetValueRequest_020110("/cocd/progressMeasure", frm));
            //requests.Add(CreateGetValueRequest_020110("/cocd/rawPassingScore", frm));
            //requests.Add(CreateGetValueRequest_020110("/cocd/scaledPassingScore", frm));
            //requests.Add(CreateGetValueRequest_020110("/cocd/score", frm));
            ////getValueRequests.Add(CreateGetValueRequest("/cocd/score/scaled", frm));
            ////getValueRequests.Add(CreateGetValueRequest("/cocd/score/raw", frm));
            ////getValueRequests.Add(CreateGetValueRequest("/cocd/score/min", frm));
            ////getValueRequests.Add(CreateGetValueRequest("/cocd/score/max", frm));
            //requests.Add(CreateGetValueRequest_020110("/cocd/sessionTime", frm));
            //requests.Add(CreateGetValueRequest_020110("/cocd/successStatus", frm));
            //requests.Add(CreateGetValueRequest_020110("/cocd/suspendData", frm));
            //requests.Add(CreateGetValueRequest_020110("/cocd/totalTime", frm));

            //requests.Add(CreateGetValueRequest_020110("/cocd/objectives", frm));

            //////test set and then get
            ////requests.Add(CreateSetValueRequest_020110(ItemChoiceType.completionStatus, completionStatusType.incomplete, frm));
            ////requests.Add(CreateGetValueRequest_020110("/cocd/completionStatus", frm));

            //////test set values

            ////comments from learner
            ////commentsFromLearner comments = new commentsFromLearner();
            ////comments.commentFromLearner = new commentType[2];

            ////comments.commentFromLearner[0] = new commentType();
            ////comments.commentFromLearner[0].comment = new localizedString4000Type();
            ////comments.commentFromLearner[0].comment.Value = "first comment";
            ////comments.commentFromLearner[0].comment.lang = "es";
            ////comments.commentFromLearner[0].location = new literalString1000Type();
            ////comments.commentFromLearner[0].location.Value = "1st comment location";
            ////comments.commentFromLearner[0].timeStampSpecified = true;
            ////comments.commentFromLearner[0].timeStamp = new DateTime(2009, 9, 1, 15, 23, 5);

            ////comments.commentFromLearner[1] = new commentType();
            ////comments.commentFromLearner[1].comment = new localizedString4000Type();
            ////comments.commentFromLearner[1].comment.Value = "2nd comment";

            ////requests.Add(CreateSetValueRequest_020110(ItemChoiceType.commentsFromLearner, comments, frm));

            //////completion status
            ////requests.Add(CreateSetValueRequest_020110(ItemChoiceType.completionStatus, completionStatusType.unknown, frm));

            //////exit
            ////requests.Add(CreateSetValueRequest_020110(ItemChoiceType.exit, exit.suspend, frm));

            //interactions
            interactions interactions = new interactions();
            interactions.interaction = new interactionType[2];

            interactions.interaction[0] = new interactionType();
            interactions.interaction[0].identifier = "int1";
            interactions.interaction[0].type = interactionTypeType.true_false;
//.........这里部分代码省略.........
开发者ID:RusticiSoftware,项目名称:LETSI_RTWS_Client,代码行数:101,代码来源:DoRequests.cs


注:本文中的Form1.GetNextRequestId方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。