src/main/java/org/edgegallery/appstore/interfaces/message/facade/dto/MessageReqDto.java
public Message toMessage(EnumMessageType type) {
        Message message = new Message();
        message.setMessageId(UUID.randomUUID().toString());
        message.setReaded(false);
        message.setBasicInfo(basicInfo);
        message.setMessageType(type);
        message.setSourceAppStore(sourceAppStore);
        message.setTargetAppStore(targetAppStore);
        message.setTime(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()));
        message.setDescription(generateDescription(type));
        message.setAtpTestStatus(atpTestStatus);
        message.setAtpTestTaskId(atpTestTaskId);
        message.setAtpTestReportUrl(atpTestReportUrl);
        message.setPackageDownloadUrl(packageDownloadUrl);
        message.setIconDownloadUrl(iconDownloadUrl);
        return message;
    }
/**
     * transform the dto to message obj.
     *
     * @return message obj
     */
transform the dto to message obj.
@return message obj
transform the dto to message obj . @return message obj
public Message toMessage(EnumMessageType type) {
        Message message = new Message();
        message.setMessageId(UUID.randomUUID().toString());
        message.setReaded(false);
        message.setBasicInfo(basicInfo);
        message.setMessageType(type);
        message.setSourceAppStore(sourceAppStore);
        message.setTargetAppStore(targetAppStore);
        message.setTime(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()));
        message.setDescription(generateDescription(type));
        message.setAtpTestStatus(atpTestStatus);
        message.setAtpTestTaskId(atpTestTaskId);
        message.setAtpTestReportUrl(atpTestReportUrl);
        message.setPackageDownloadUrl(packageDownloadUrl);
        message.setIconDownloadUrl(iconDownloadUrl);
        return message;
    }
public Message toMessage ( EnumMessageType type ) { Message message = new Message ( ) ; message . setMessageId ( UUID . randomUUID ( ) . toString ( ) ) ; message . setReaded ( false ) ; message . setBasicInfo ( basicInfo ) ; message . setMessageType ( type ) ; message . setSourceAppStore ( sourceAppStore ) ; message . setTargetAppStore ( targetAppStore ) ; message . setTime ( new SimpleDateFormat ( "yyyy-MM-dd HH:mm:ss" ) . format ( new Date ( ) ) ) ; message . setDescription ( generateDescription ( type ) ) ; message . setAtpTestStatus ( atpTestStatus ) ; message . setAtpTestTaskId ( atpTestTaskId ) ; message . setAtpTestReportUrl ( atpTestReportUrl ) ; message . setPackageDownloadUrl ( packageDownloadUrl ) ; message . setIconDownloadUrl ( iconDownloadUrl ) ; return message ; }
transform the dto to message obj.
transform the dto to message obj .