++
Оптимизация рассылки при публикации.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
package _VisualDVM.ComponentsServer.Component.Json;
|
||||
import Common.CommonConstants;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.ComponentsServer.Component.Component;
|
||||
import _VisualDVM.ComponentsServer.Component.ComponentType;
|
||||
@@ -13,15 +14,22 @@ public class ComponentPublicationInfoJson implements Serializable {
|
||||
@Expose
|
||||
public byte[] packedFile = null;
|
||||
@Expose
|
||||
public long versionNumber = CommonConstants.Nan;
|
||||
@Expose
|
||||
public String versionText = "";
|
||||
@Expose
|
||||
public String changeRecord = "";
|
||||
@Expose
|
||||
public boolean needsUpdateMinimalVersion = false;
|
||||
@Expose
|
||||
public boolean needsEmail = false;
|
||||
@Expose
|
||||
public boolean needsSendFile = false;
|
||||
public ComponentPublicationInfoJson(Component component) throws Exception{
|
||||
componentType = component.getComponentType();
|
||||
fileName = component.getFileName();
|
||||
packedFile = Utils_.fileToBytes(component.getFile());
|
||||
versionNumber = component.version;
|
||||
versionText = component.getVersionText();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user