Newer
Older
huludao / src / main / java / com / newfiber / modules / inspection / response / AndroidUpdateResponse.java
@新烽开发者 新烽开发者 on 22 Jul 715 bytes init
package com.newfiber.modules.inspection.response;

import com.newfiber.modules.inspection.enums.EAndroidConfig;
import java.util.HashMap;
import lombok.Data;

@Data
public class AndroidUpdateResponse {

    private String updateFlag;

    private String version;

    private String updateNote;

    private String downloadUrl;

    public AndroidUpdateResponse(String updateFlag, HashMap<String, String> config) {
        this.updateFlag = updateFlag;
        this.setVersion(config.get(EAndroidConfig.APP_VERSION_ANDROID.getKey()));
        this.setUpdateNote(config.get(EAndroidConfig.UPDATE_NOTE_ANDROID.getKey()));
        this.setDownloadUrl(config.get(EAndroidConfig.DOWNLOAD_URL_ANDROID.getKey()));
    }
}