Search in sources :

Example 1 with PublishStatusDTO

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;
}
Also used : PublishStatusDTO(org.wso2.carbon.apimgt.rest.api.admin.v1.dto.PublishStatusDTO)

Aggregations

PublishStatusDTO (org.wso2.carbon.apimgt.rest.api.admin.v1.dto.PublishStatusDTO)1