All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.belerweb.social.qq.connect.bean.AlbumPrivilege Maven / Gradle / Ivy

There is a newer version: 0.0.5
Show newest version
package com.belerweb.social.qq.connect.bean;

public enum AlbumPrivilege {
  PUBLIC(1), PRIVATE(3), FRIEND(4), QUESTION(5);

  private Integer value;

  private AlbumPrivilege(Integer value) {
    this.value = value;
  }

  public Integer value() {
    return value;
  }

  @Override
  public String toString() {
    return value.toString();
  }

  public static AlbumPrivilege parse(Integer value) {
    if (value == null) {
      return null;
    }
    if (value == 1) {
      return PUBLIC;
    }
    if (value == 3) {
      return PRIVATE;
    }
    if (value == 4) {
      return FRIEND;
    }
    if (value == 5) {
      return QUESTION;
    }
    return null;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy