Package com.twilio.sdk.resource.factory

Examples of com.twilio.sdk.resource.factory.FeedbackFactory


   *
   * @param params the feedback parameters
   * @throws TwilioRestException
   */
  public void setFeedback(List<NameValuePair> params) throws TwilioRestException {
    FeedbackFactory factory = getFeedbackFactory();
    factory.create(params);
  }
View Full Code Here


    @Before
    public void setup() throws Exception {
        when(call.getFeedbackFactory()).thenReturn(new FeedbackFactoryImpl(client, getResourceLocation()));

        FeedbackFactory factory = call.getFeedbackFactory();

        List<NameValuePair> params = new ArrayList<NameValuePair>();
        params.add(new BasicNameValuePair("QualityScore", String.valueOf(3)));
        params.add(new BasicNameValuePair("Issue", "post-dial-delay"));
        params.add(new BasicNameValuePair("Issue", "digits-not-captured"));

        setExpectedServerContentType("application/json");
        setExpectedServerAnswer("callfeedback.json");
        setExpectedServerReturnCode(201);

        feedback = factory.create(params);
    }
View Full Code Here

TOP

Related Classes of com.twilio.sdk.resource.factory.FeedbackFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.