- 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 recordAn erroneous gdpr requeststatic final recordA pending gdpr requeststatic final recordA successful gdpr requeststatic enumThe constants of this enumerated type describe the status of a gdpr request -
Method Summary
Modifier and TypeMethodDescriptionstatic GdprAccountReport.ErrorofError()Constructs an erroneous gdpr reportstatic GdprAccountReport.PendingofPending(long timestamp) Constructs a pending gdpr report from a timestampSecondsstatic GdprAccountReport.ReadyofReady()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
-