use of org.wso2.carbon.apimgt.rest.api.admin.v1.dto.PublishStatusDTO in project carbon-apimgt by wso2.
the class MonetizationAPIMappinUtil method fromStatusToDTO.
/**
* Set value to DTO of the monetization usage publisher
*
* @param status status of the request
* @param msg description of the the status
* @return the DTO for monetization usage publish API
*/
public static PublishStatusDTO fromStatusToDTO(String status, String msg) {
PublishStatusDTO publishStatusDTO = new PublishStatusDTO();
publishStatusDTO.setStatus(status);
publishStatusDTO.setMessage(msg);
return publishStatusDTO;
}
Aggregations