![JAR search and dependency download from the Maven repository](/logo.png)
com.avos.avoscloud.im.v2.AVIMMessageQueryDirection Maven / Gradle / Ivy
The newest version!
package com.avos.avoscloud.im.v2;
/**
* Created by fengjunwen on 2017/9/5.
*/
public enum AVIMMessageQueryDirection {
AVIMMessageQueryDirectionUnknown(-1),
AVIMMessageQueryDirectionFromNewToOld(0),
AVIMMessageQueryDirectionFromOldToNew(1);
private static String descriptions[] = new String[]{"Unknown", "Old", "New"};
private int code = -1;
private AVIMMessageQueryDirection(int code) {
this.code = code;
}
public int getCode() {
return this.code;
}
public String getDescription() {
return descriptions[code + 1];
}
public static AVIMMessageQueryDirection parseFromCode(int code) {
switch (code) {
case 0:
return AVIMMessageQueryDirectionFromNewToOld;
case 1:
return AVIMMessageQueryDirectionFromOldToNew;
default:
return AVIMMessageQueryDirectionUnknown;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy