Subversion Repositories SmartDukaan

Rev

Rev 6176 | 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.user;


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

/**
 * Form types for Contact Us form
 */
public enum UserCommunicationType implements org.apache.thrift.TEnum {
  RETURN_FORM(1),
  ORDER_CANCELLATION(2),
  DELIVERY_PROBLEM(3),
  PAYMENT_STATUS(4),
  ORDER_STATUS(5),
  PRODUCT_REQUEST(6),
  RECHARGE_RELATED(7),
  OTHER(8),
  Bulk_Order_ENQUIRY(21);

  private final int value;

  private UserCommunicationType(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 UserCommunicationType findByValue(int value) { 
    switch (value) {
      case 1:
        return RETURN_FORM;
      case 2:
        return ORDER_CANCELLATION;
      case 3:
        return DELIVERY_PROBLEM;
      case 4:
        return PAYMENT_STATUS;
      case 5:
        return ORDER_STATUS;
      case 6:
        return PRODUCT_REQUEST;
      case 7:
        return RECHARGE_RELATED;
      case 8:
        return OTHER;
      case 21:
        return Bulk_Order_ENQUIRY;
      default:
        return null;
    }
  }
}