deployRequest 디바이스 타입 삭제, 파일명 추가
This commit is contained in:
parent
b410e107e9
commit
8f906b5fb4
|
@ -50,9 +50,9 @@ class DefaultTubeService implements TubeService {
|
|||
|
||||
DeployRequest deployRequest = DeployRequest.builder()
|
||||
.assetCode(request.getAssetCode())
|
||||
.deviceType("nodeq")
|
||||
.appName(request.getSlotNumber())
|
||||
.commandType(CommandType.JSON)
|
||||
.name("") // TODO
|
||||
.parameters(tubeMap)
|
||||
.build();
|
||||
|
||||
|
@ -83,9 +83,9 @@ class DefaultTubeService implements TubeService {
|
|||
resultMap.forEach((assetCode, slot) -> slot.forEach((slotNumber, tube) -> {
|
||||
DeployRequest deployRequest = DeployRequest.builder()
|
||||
.assetCode(assetCode)
|
||||
.deviceType("nodeq")
|
||||
.appName(slotNumber)
|
||||
.commandType(CommandType.JSON)
|
||||
.name("") // TODO
|
||||
.parameters(tube)
|
||||
.build();
|
||||
|
||||
|
|
|
@ -7,17 +7,16 @@ import java.util.Map;
|
|||
*/
|
||||
public class DeployRequest {
|
||||
private String assetCode;
|
||||
private String deviceType;
|
||||
private String appName;
|
||||
private String commandType;
|
||||
// private String fileName; // TODO: deployer에 추가되면 추가
|
||||
private String name;
|
||||
private Map<String, String> parameters;
|
||||
|
||||
public DeployRequest(String assetCode, String deviceType, String appName, String commandType, Map<String, String> parameters) {
|
||||
public DeployRequest(String assetCode, String appName, String commandType, String name, Map<String, String> parameters) {
|
||||
this.assetCode = assetCode;
|
||||
this.deviceType = deviceType;
|
||||
this.appName = appName;
|
||||
this.commandType = commandType;
|
||||
this.name = name;
|
||||
this.parameters = parameters;
|
||||
}
|
||||
|
||||
|
@ -29,9 +28,6 @@ public class DeployRequest {
|
|||
return assetCode;
|
||||
}
|
||||
|
||||
public String getDeviceType() {
|
||||
return deviceType;
|
||||
}
|
||||
|
||||
public String getAppName() {
|
||||
return appName;
|
||||
|
@ -41,6 +37,10 @@ public class DeployRequest {
|
|||
return commandType;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public Map<String, String> getParameters() {
|
||||
return parameters;
|
||||
}
|
||||
|
@ -49,18 +49,18 @@ public class DeployRequest {
|
|||
public String toString() {
|
||||
return "DeployRequest{" +
|
||||
"assetCode='" + assetCode + '\'' +
|
||||
", deviceType='" + deviceType + '\'' +
|
||||
", appName='" + appName + '\'' +
|
||||
", commandType=" + commandType +
|
||||
", commandType='" + commandType + '\'' +
|
||||
", name='" + name + '\'' +
|
||||
", parameters=" + parameters +
|
||||
'}';
|
||||
}
|
||||
|
||||
public static final class Builder {
|
||||
private String assetCode;
|
||||
private String deviceType;
|
||||
private String appName;
|
||||
private String commandType;
|
||||
private String name;
|
||||
private Map<String, String> parameters;
|
||||
|
||||
private Builder() {
|
||||
|
@ -71,11 +71,6 @@ public class DeployRequest {
|
|||
return this;
|
||||
}
|
||||
|
||||
public Builder deviceType(String deviceType) {
|
||||
this.deviceType = deviceType;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder appName(String appName) {
|
||||
this.appName = appName;
|
||||
return this;
|
||||
|
@ -86,13 +81,18 @@ public class DeployRequest {
|
|||
return this;
|
||||
}
|
||||
|
||||
public Builder name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder parameters(Map<String, String> parameters) {
|
||||
this.parameters = parameters;
|
||||
return this;
|
||||
}
|
||||
|
||||
public DeployRequest build() {
|
||||
return new DeployRequest(assetCode, deviceType, appName, commandType, parameters);
|
||||
return new DeployRequest(assetCode, appName, commandType, name, parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue