Package com.restfb.types.whatsapp
Class WABAAnalytics
- java.lang.Object
-
- com.restfb.types.AbstractFacebookType
-
- com.restfb.types.whatsapp.WABAAnalytics
-
- All Implemented Interfaces:
Serializable
public class WABAAnalytics extends AbstractFacebookType
Represents the WABA (WhatsApp Business Account) Analytics type- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WABAAnalytics()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addCountryCode(String countryCode)
boolean
addDataPoint(WABAAnalyticsDataPoint dataPoint)
boolean
addPhoneNumber(String phoneNumber)
List<String>
getCountryCodes()
List of ISO 3166 country codes (e.g.List<WABAAnalyticsDataPoint>
getDataPoints()
List of analytics data points (e.g.String
getGranularity()
List<String>
getPhoneNumbers()
List of WhatsApp normalized phone numbers (e.g. [16315551000])boolean
removeCountryCode(String countryCode)
boolean
removeDataPoint(WABAAnalyticsDataPoint dataPoint)
boolean
removePhoneNumber(String phoneNumber)
void
setGranularity(String granularity)
-
Methods inherited from class com.restfb.types.AbstractFacebookType
equals, hashCode, toString
-
-
-
-
Constructor Detail
-
WABAAnalytics
public WABAAnalytics()
-
-
Method Detail
-
getCountryCodes
public List<String> getCountryCodes()
List of ISO 3166 country codes (e.g. US, IN)
-
addCountryCode
public boolean addCountryCode(String countryCode)
-
removeCountryCode
public boolean removeCountryCode(String countryCode)
-
getDataPoints
public List<WABAAnalyticsDataPoint> getDataPoints()
List of analytics data points (e.g. {start: 0, end: 10000, sent: 10, delivered: 9})
-
addDataPoint
public boolean addDataPoint(WABAAnalyticsDataPoint dataPoint)
-
removeDataPoint
public boolean removeDataPoint(WABAAnalyticsDataPoint dataPoint)
-
getPhoneNumbers
public List<String> getPhoneNumbers()
List of WhatsApp normalized phone numbers (e.g. [16315551000])
-
addPhoneNumber
public boolean addPhoneNumber(String phoneNumber)
-
removePhoneNumber
public boolean removePhoneNumber(String phoneNumber)
-
getGranularity
public String getGranularity()
-
setGranularity
public void setGranularity(String granularity)
-
-