
it.auties.whatsapp.model.signal.auth.WebFeaturesWebFeaturesFlagSpec Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cobalt Show documentation
Show all versions of cobalt Show documentation
Standalone fully-featured Whatsapp Web API for Java and Kotlin
package it.auties.whatsapp.model.signal.auth;
import it.auties.whatsapp.model.signal.auth.WebFeatures.WebFeaturesFlag;
import java.util.Arrays;
import java.util.Optional;
public class WebFeaturesWebFeaturesFlagSpec {
public static Integer encode(WebFeaturesFlag protoInputObject) {
if(protoInputObject == null) {
return null;
}
return protoInputObject.index;
}
public static Optional decode(int index) {
return Arrays.stream(WebFeaturesFlag.values())
.filter(entry -> entry.index == index)
.findFirst();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy