it.auties.whatsapp.model.jid.JidProvider Maven / Gradle / Ivy
package it.auties.whatsapp.model.jid;
import it.auties.whatsapp.model.chat.Chat;
import it.auties.whatsapp.model.contact.Contact;
import it.auties.whatsapp.model.newsletter.Newsletter;
/**
* Utility interface to make providing a jid easier
*/
public sealed interface JidProvider permits Chat, Newsletter, Contact, Jid {
/**
* Returns this object as a jid
*
* @return a non-null jid
*/
Jid toJid();
}