// Path: src/main/java/cc/bitbank/entity/enums/OrderSide.java
// @JsonDeserialize(using = OrderSideDeserializer.class)
// public enum OrderSide {
//     BUY("buy"),
//     SELL("sell");
// 
//     private final String side;
// 
//     OrderSide(final String side) {
//         this.side = side;
//     }
// 
//     public String getCode() {
//         return this.side;
//     }
// }


import cc.bitbank.entity.enums.OrderSide;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonDeserializer;
import java.io.IOException;
package cc.bitbank.deserializer;



/**
 * Created by tanaka on 2017/04/12.
 */
public class OrderSideDeserializer extends JsonDeserializer<Object> {
    @Override
// Path: src/main/java/cc/bitbank/entity/enums/OrderSide.java
// @JsonDeserialize(using = OrderSideDeserializer.class)
// public enum OrderSide {
//     BUY("buy"),
//     SELL("sell");
// 
//     private final String side;
// 
//     OrderSide(final String side) {
//         this.side = side;
//     }
// 
//     public String getCode() {
//         return this.side;
//     }
// }


// Path: src/main/java/cc/bitbank/deserializer/OrderSideDeserializer.java
import cc.bitbank.entity.enums.OrderSide;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonDeserializer;
import java.io.IOException;

package cc.bitbank.deserializer;



/**
 * Created by tanaka on 2017/04/12.
 */
public class OrderSideDeserializer extends JsonDeserializer<Object> {
    @Override
    public OrderSide deserialize(JsonParser jp, DeserializationContext dc) throws IOException {