/**********************************************************/ 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); }
/**********************************************************/ 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); }