com.twilio.sdk.resource.instance
Class Feedback

java.lang.Object
  extended by com.twilio.sdk.resource.Resource<C>
      extended by com.twilio.sdk.resource.InstanceResource<TwilioRestClient>
          extended by com.twilio.sdk.resource.instance.Feedback

public class Feedback
extends InstanceResource<TwilioRestClient>

A Feedback class. Used to submit feedback for a resource.


Field Summary
static String DATE_CREATED_PROP
           
static String DATE_UPDATED_PROP
           
static String ISSUE_PARAM
           
static String ISSUES_PROP
           
static String QUALITY_SCORE_PARAM
           
static String QUALITY_SCORE_PROP
           
 
Constructor Summary
Feedback(TwilioRestClient client, Map<String,Object> properties, String parentLocation)
          Instantiates a new feedback.
Feedback(TwilioRestClient client, String parentLocation)
          Instantiates a new feedback.
 
Method Summary
 boolean delete()
          Delete the call feedback.
 Date getDateCreated()
          Gets the date created.
 Date getDateUpdated()
          Gets the date updated.
 Set<String> getIssues()
          Gets the issues.
 int getQualityScore()
          Gets the quality score.
 
Methods inherited from class com.twilio.sdk.resource.InstanceResource
getObject, getProperty, update, update
 
Methods inherited from class com.twilio.sdk.resource.Resource
setRequestAccountSid
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

QUALITY_SCORE_PROP

public static final String QUALITY_SCORE_PROP
See Also:
Constant Field Values

ISSUES_PROP

public static final String ISSUES_PROP
See Also:
Constant Field Values

DATE_CREATED_PROP

public static final String DATE_CREATED_PROP
See Also:
Constant Field Values

DATE_UPDATED_PROP

public static final String DATE_UPDATED_PROP
See Also:
Constant Field Values

QUALITY_SCORE_PARAM

public static final String QUALITY_SCORE_PARAM
See Also:
Constant Field Values

ISSUE_PARAM

public static final String ISSUE_PARAM
See Also:
Constant Field Values
Constructor Detail

Feedback

public Feedback(TwilioRestClient client,
                Map<String,Object> properties,
                String parentLocation)
Instantiates a new feedback.

Parameters:
client - the client
properties - the properties
parentLocation - the parent location

Feedback

public Feedback(TwilioRestClient client,
                String parentLocation)
Instantiates a new feedback.

Parameters:
client - the client
parentLocation - the parent location
Method Detail

delete

public boolean delete()
               throws TwilioRestException
Delete the call feedback.

Returns:
true, if successful
Throws:
TwilioRestException - if there is an error in the request

getQualityScore

public int getQualityScore()
Gets the quality score.

Returns:
the quality score

getIssues

public Set<String> getIssues()
Gets the issues.

Returns:
the issues

getDateCreated

public Date getDateCreated()
Gets the date created.

Returns:
the date created

getDateUpdated

public Date getDateUpdated()
Gets the date updated.

Returns:
the date updated


Copyright © 2011 Twilio, Inc. All Rights Reserved.