Добавить кошелек блокчейна и озвучивание агента

This commit is contained in:
AidarKC
2026-05-29 23:48:44 +04:00
parent 775b655aac
commit 3a5856c7f0
19 changed files with 1301 additions and 28 deletions
@@ -89,6 +89,9 @@ public class Net_GetUser_Handler implements JsonMessageHandler {
}
resp.setServerLastGlobalNumber(lastNum);
resp.setServerLastGlobalHash(toHex32(lastHash));
resp.setServerBlockchainSizeBytes(st.getFileSizeBytes());
resp.setServerBlockchainSizeLimitBytes(st.getSizeLimit());
resp.setServerBlocksCount(Math.max(0, lastNum + 1));
log.info("✅ GetUser: found login={}, blockchainName={}", u.getLogin(), u.getBlockchainName());
return resp;
@@ -41,6 +41,9 @@ public class Net_GetUser_Response extends Net_Response {
private String deviceKey;
private Integer serverLastGlobalNumber;
private String serverLastGlobalHash;
private Long serverBlockchainSizeBytes;
private Long serverBlockchainSizeLimitBytes;
private Integer serverBlocksCount;
public Boolean getExists() { return exists; }
public void setExists(Boolean exists) { this.exists = exists; }
@@ -65,4 +68,13 @@ public class Net_GetUser_Response extends Net_Response {
public String getServerLastGlobalHash() { return serverLastGlobalHash; }
public void setServerLastGlobalHash(String serverLastGlobalHash) { this.serverLastGlobalHash = serverLastGlobalHash; }
public Long getServerBlockchainSizeBytes() { return serverBlockchainSizeBytes; }
public void setServerBlockchainSizeBytes(Long serverBlockchainSizeBytes) { this.serverBlockchainSizeBytes = serverBlockchainSizeBytes; }
public Long getServerBlockchainSizeLimitBytes() { return serverBlockchainSizeLimitBytes; }
public void setServerBlockchainSizeLimitBytes(Long serverBlockchainSizeLimitBytes) { this.serverBlockchainSizeLimitBytes = serverBlockchainSizeLimitBytes; }
public Integer getServerBlocksCount() { return serverBlocksCount; }
public void setServerBlocksCount(Integer serverBlocksCount) { this.serverBlocksCount = serverBlocksCount; }
}