Interface GdprAccountReport

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()
  • Method Details

    • ofPending

      static GdprAccountReport.Pending ofPending(long timestamp)
      Constructs a pending gdpr report from a timestampSeconds
      Parameters:
      timestamp - the timestampSeconds in seconds
      Returns:
      a non-null gdpr request
    • ofReady

      static GdprAccountReport.Ready ofReady()
      Constructs a successful gdpr report
      Returns:
      a non-null gdpr request
    • ofError

      static GdprAccountReport.Error ofError()
      Constructs an erroneous gdpr report
      Returns:
      a non-null gdpr request
    • type

      Returns the type of this report
      Returns:
      a non-null type