com.github.jamesnetherton.zulip.client.api.message.Anchor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zulip-java-client Show documentation
Show all versions of zulip-java-client Show documentation
Java client for the Zulip REST API
The newest version!
package com.github.jamesnetherton.zulip.client.api.message;
/**
* Defines anchor options for matching messages.
*/
public enum Anchor {
/**
* The oldest unread message matching the query, if any; otherwise, the most recent message.
*/
FIRST_UNREAD,
/**
* The most recent message.
*/
NEWEST,
/**
* The oldest message.
*/
OLDEST;
@Override
public String toString() {
return this.name().toLowerCase();
}
}