com.dahuatech.h8900.oauth.unmarshaller.Unmarshaller Maven / Gradle / Ivy
package com.dahuatech.h8900.oauth.unmarshaller;
import com.dahuatech.icc.exception.ClientException;
import com.dahuatech.h8900.oauth.http.H8900Response;
/**
* 协议转换接口
*
* @author 232676
* @since 1.0.0 2020-10-24 20:59:11
*/
public interface Unmarshaller {
/**
* 字符串转换对象
*
* @param clas 对象
* @param content 字符串JSON
* @param 对象类
* @return 返回转换对象
* @throws ClientException 异常信息
*/
T unmarshal(Class clas, String content) throws ClientException;
}