com.twilio.sdk.resource.instance.taskrouter
Class ActivityDuration

java.lang.Object
  extended by com.twilio.sdk.resource.instance.taskrouter.ActivityDuration

public class ActivityDuration
extends Object

Represents an activity duration.


Field Summary
static String AVERAGE_PROPERTY
           
static String FRIENDLY_NAME_PROPERTY
           
static String MAXIMUM_PROPERTY
           
static String MINIMUM_PROPERTY
           
 
Constructor Summary
ActivityDuration(String sid, String friendlyName, Double average, Integer maximum, Integer minimum)
          Instantiates an ActivityDuration.
 
Method Summary
 Double getAverage()
          Get the average duration in seconds.
 String getFriendlyName()
          Get the activity's friendly name.
 Integer getMaximum()
          Get the maximum duration in seconds.
 Integer getMinimum()
          Get the minimum duration in seconds.
 String getSid()
          Get the activity's sid.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AVERAGE_PROPERTY

public static final String AVERAGE_PROPERTY
See Also:
Constant Field Values

FRIENDLY_NAME_PROPERTY

public static final String FRIENDLY_NAME_PROPERTY
See Also:
Constant Field Values

MAXIMUM_PROPERTY

public static final String MAXIMUM_PROPERTY
See Also:
Constant Field Values

MINIMUM_PROPERTY

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

ActivityDuration

public ActivityDuration(String sid,
                        String friendlyName,
                        Double average,
                        Integer maximum,
                        Integer minimum)
Instantiates an ActivityDuration.

Parameters:
sid -
friendlyName -
average -
maximum -
minimum -
Method Detail

getAverage

public Double getAverage()
Get the average duration in seconds.

Returns:
the average duration in seconds

getFriendlyName

public String getFriendlyName()
Get the activity's friendly name.

Returns:
the activity's friendly name

getMaximum

public Integer getMaximum()
Get the maximum duration in seconds.

Returns:
the maximum duration in seconds

getMinimum

public Integer getMinimum()
Get the minimum duration in seconds.

Returns:
the minimum duration in seconds

getSid

public String getSid()
Get the activity's sid.

Returns:
the activity's sid


Copyright © 2011 Twilio, Inc. All Rights Reserved.