Subversion Repositories SmartDukaan

Rev

Rev 8982 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

/**
 * Autogenerated by Thrift Compiler (0.7.0)
 *
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
 */
package in.shop2020.model.v1.order;


import java.util.Map;
import java.util.HashMap;
import org.apache.thrift.TEnum;

public enum OrderSource implements org.apache.thrift.TEnum {
  WEBSITE(1),
  STORE(2),
  AMAZON(3),
  HOMESHOP18(4),
  NAAPTOL(5),
  EBAY(6),
  SNAPDEAL(7),
  FLIPKART(8),
  MOBILESITE(9);

  private final int value;

  private OrderSource(int value) {
    this.value = value;
  }

  /**
   * Get the integer value of this enum value, as defined in the Thrift IDL.
   */
  public int getValue() {
    return value;
  }

  /**
   * Find a the enum type by its integer value, as defined in the Thrift IDL.
   * @return null if the value is not found.
   */
  public static OrderSource findByValue(int value) { 
    switch (value) {
      case 1:
        return WEBSITE;
      case 2:
        return STORE;
      case 3:
        return AMAZON;
      case 4:
        return HOMESHOP18;
      case 5:
        return NAAPTOL;
      case 6:
        return EBAY;
      case 7:
        return SNAPDEAL;
      case 8:
        return FLIPKART;
      case 9:
        return MOBILESITE;
      default:
        return null;
    }
  }
}