All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.datahub.model.serialize.DeleteTopicResultJsonDeser Maven / Gradle / Ivy

There is a newer version: 2.25.6
Show newest version
package com.aliyun.datahub.model.serialize;

import com.aliyun.datahub.common.transport.Response;
import com.aliyun.datahub.exception.DatahubServiceException;
import com.aliyun.datahub.model.DeleteTopicRequest;
import com.aliyun.datahub.model.DeleteTopicResult;

public class DeleteTopicResultJsonDeser implements Deserializer {

    @Override
    public DeleteTopicResult deserialize(DeleteTopicRequest request, Response response) throws DatahubServiceException {
        if (!response.isOK()) {
            throw JsonErrorParser.getInstance().parse(response);
        }
        return new DeleteTopicResult();
    }

    private static DeleteTopicResultJsonDeser instance;

    private DeleteTopicResultJsonDeser() {

    }

    public static DeleteTopicResultJsonDeser getInstance() {
        if (instance == null)
            instance = new DeleteTopicResultJsonDeser();
        return instance;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy