public Function()
        {
            twilioApi = new TwilioApi();

            if (TwilioValid)
            {
                getPhoneNumberType = new LookupWorkflow(twilioApi);
                sendSms            = new SmsWorkflow(twilioApi);
            }
            if (ChoiceViewValid)
            {
                createSession       = new CreateSessionWorkflow(choiceview.ApiClient);
                getSession          = new GetSessionWorkflow(choiceview.ApiClient);
                transferSession     = new TransferSessionWorkflow(choiceview.ApiClient);
                querySession        = new QuerySessionWorkflow(choiceview.ApiClient);
                endSession          = new EndSessionWorkflow(choiceview.ApiClient);
                sendUrl             = new SendUrlWorkflow(choiceview.ApiClient);
                getControlMessage   = new GetControlMessageWorkflow(choiceview.ApiClient);
                clearControlMessage = new ClearControlMessageWorkflow(choiceview.ApiClient);
                addProperty         = new AddPropertyWorkflow(choiceview.ApiClient);
                getProperties       = new GetPropertiesWorkflow(choiceview.ApiClient);
            }
            if (TwilioValid && ChoiceViewValid)
            {
                createSessionWithSms = new CreateSessionWorkflow(choiceview.ApiClient, sendSms);
            }
        }
예제 #2
0
 public CreateSessionWorkflow(HttpClient apiClient,
                              SmsWorkflow smsWorkflow = null) : base(apiClient)
 {
     this.smsWorkflow = smsWorkflow;
 }