- All Known Implementing Classes:
GdprAccountReport.Error
,GdprAccountReport.Pending
,GdprAccountReport.Ready
public sealed interface GdprAccountReport
permits GdprAccountReport.Pending, GdprAccountReport.Ready, GdprAccountReport.Error
A model interface that represents a gdpr account report. This can be queried using
Whatsapp.getGdprAccountInfoStatus()
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final record
An erroneous gdpr requeststatic final record
A pending gdpr requeststatic final record
A successful gdpr requeststatic enum
The constants of this enumerated type describe the status of a gdpr request -
Method Summary
Modifier and TypeMethodDescriptionstatic GdprAccountReport.Error
ofError()
Constructs an erroneous gdpr reportstatic GdprAccountReport.Pending
ofPending
(long timestamp) Constructs a pending gdpr report from a timestampSecondsstatic GdprAccountReport.Ready
ofReady()
Constructs a successful gdpr reporttype()
Returns the type of this report
-
Method Details
-
ofPending
Constructs a pending gdpr report from a timestampSeconds- Parameters:
timestamp
- the timestampSeconds in seconds- Returns:
- a non-null gdpr request
-
ofReady
Constructs a successful gdpr report- Returns:
- a non-null gdpr request
-
ofError
Constructs an erroneous gdpr report- Returns:
- a non-null gdpr request
-
type
GdprAccountReport.Type type()Returns the type of this report- Returns:
- a non-null type
-