io.getstream.core.options.KeepHistory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stream-java Show documentation
Show all versions of stream-java Show documentation
Stream Feeds Java Client for backend and android integrations
package io.getstream.core.options;
import io.getstream.core.http.Request;
public final class KeepHistory implements RequestOption {
private final boolean keepHistory;
public KeepHistory(io.getstream.core.KeepHistory keepHistory) {
this.keepHistory = keepHistory.getFlag();
}
public boolean getFlag() {
return keepHistory;
}
@Override
public void apply(Request.Builder builder) {
builder.addQueryParameter("keep_history", Boolean.toString(keepHistory));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy