Ejemplo n.º 1
0
        /**********************************************************/

        public CreateOpt createOptSchedule(string requestID, OptSchedule optSchedule)
        {
            CreateOpt request = new CreateOpt();

            string requestBody = request.createOptSchedule(requestID, VENID, optSchedule);

            if ((request.response = (oadrCreatedOptType)postRequest(requestBody, "/EiOpt", request)) != null)
            {
                request.setEiResponse(request.response.eiResponse);
            }

            return(request);
        }
Ejemplo n.º 2
0
        /**********************************************************/

        public CreateOpt createOptEvent(string requestID, string optID, oadrDistributeEventTypeOadrEvent evt, OptTypeType optType, OptReasonEnumeratedType optReason, string resourceID = null)
        {
            CreateOpt request = new CreateOpt();

            string requestBody = request.createOptEvent(requestID, optID, evt, optType, optReason, VENID, resourceID);

            if ((request.response = (oadrCreatedOptType)postRequest(requestBody, "/EiOpt", request)) != null)
            {
                request.setEiResponse(request.response.eiResponse);
            }

            return(request);
        }