com.aliyun.datahub.model.serialize.AppendFieldResultJsonDeser Maven / Gradle / Ivy
package com.aliyun.datahub.model.serialize;
import com.aliyun.datahub.common.transport.Response;
import com.aliyun.datahub.exception.DatahubServiceException;
import com.aliyun.datahub.model.AppendFieldRequest;
import com.aliyun.datahub.model.AppendFieldResult;
public class AppendFieldResultJsonDeser implements Deserializer {
@Override
public AppendFieldResult deserialize(AppendFieldRequest request, Response response) throws DatahubServiceException {
if (!response.isOK()) {
throw JsonErrorParser.getInstance().parse(response);
}
return new AppendFieldResult();
}
private AppendFieldResultJsonDeser() {
}
private static AppendFieldResultJsonDeser instance;
public static AppendFieldResultJsonDeser getInstance() {
if (instance == null)
instance = new AppendFieldResultJsonDeser();
return instance;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy