SknCodeRequestResponse.java 619 Bytes
package com.yoho.search.models.recall;

import com.yoho.search.base.utils.Transfer;
import com.yoho.search.cache.model.AbstractCacheRequestResponse;

public class SknCodeRequestResponse extends AbstractCacheRequestResponse<SknCodeRequest, Integer> {

    public SknCodeRequestResponse(SknCodeRequest request) {
        super(request);
    }

    @Override
    public Transfer<String, Integer> getToResponseTransfer() {
        return (v) -> Integer.valueOf(v);
    }

    @Override
    public Transfer<Integer, String> getFromResponseTransfer() {
        return (v) -> String.valueOf(v);
    }

}