com.riversoft.weixin.mp.poi.bean.AvailableState Maven / Gradle / Ivy
package com.riversoft.weixin.mp.poi.bean;
/**
* Created by exizhai on 11/30/2015.
*/
public enum AvailableState {
ERROR(1), APPROVING(2), APPROVED(3), REJECTED(4), UNKNOWN(-1);
private int code;
AvailableState(int code) {
this.code = code;
}
public static AvailableState fromCode(int code) {
for (AvailableState state : AvailableState.values()) {
if (state.code == code) {
return state;
}
}
return AvailableState.UNKNOWN;
}
public int getCode() {
return this.code;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy