Class L2P_JSONUtil
java.lang.Object
i5.las2peer.connectors.webConnector.util.L2P_JSONUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic net.minidev.json.JSONObject
addAgentDetailsToJson
(i5.las2peer.p2p.EthereumNode ethereumNode, i5.las2peer.security.AgentImpl agent, net.minidev.json.JSONObject json, Boolean addMnemonic, Boolean addTxLog) static void
addTXLogInfo
(i5.las2peer.p2p.EthereumNode ethereumNode, net.minidev.json.JSONObject json, String ethAddress) static net.minidev.json.JSONObject
genericTransactionDataToJSON
(i5.las2peer.registry.data.GenericTransactionData genericTransactionData, ConcurrentMap<String, String> addressToUsername) static net.minidev.json.JSONObject
nodeInformationToJSON
(i5.las2peer.p2p.NodeInformation nodeInfo) parseContactGroupsResponse
(String input) parseMobSOSGroupURLs
(String input) parseMobSOSModels
(String input) static float
parseMobSOSSuccessResponse
(String input) static String
timestampToString
(BigInteger timestamp) static net.minidev.json.JSONObject
transactionToJSON
(i5.las2peer.registry.data.BlockchainTransactionData btd)
-
Constructor Details
-
L2P_JSONUtil
public L2P_JSONUtil()
-
-
Method Details
-
parseContactGroupsResponse
public static List<String> parseContactGroupsResponse(String input) throws net.minidev.json.parser.ParseException - Throws:
net.minidev.json.parser.ParseException
-
parseMobSOSSuccessResponse
public static float parseMobSOSSuccessResponse(String input) throws net.minidev.json.parser.ParseException - Throws:
net.minidev.json.parser.ParseException
-
parseMobSOSGroupURLs
public static List<String> parseMobSOSGroupURLs(String input) throws net.minidev.json.parser.ParseException - Throws:
net.minidev.json.parser.ParseException
-
parseMobSOSGroupServiceNames
public static List<String> parseMobSOSGroupServiceNames(String input) throws net.minidev.json.parser.ParseException - Throws:
net.minidev.json.parser.ParseException
-
parseMobSOSModels
public static List<String> parseMobSOSModels(String input) throws net.minidev.json.parser.ParseException - Throws:
net.minidev.json.parser.ParseException
-
genericTransactionDataToJSON
public static net.minidev.json.JSONObject genericTransactionDataToJSON(i5.las2peer.registry.data.GenericTransactionData genericTransactionData, ConcurrentMap<String, String> addressToUsername) -
nodeInformationToJSON
public static net.minidev.json.JSONObject nodeInformationToJSON(i5.las2peer.p2p.NodeInformation nodeInfo) -
addAgentDetailsToJson
public static net.minidev.json.JSONObject addAgentDetailsToJson(i5.las2peer.p2p.EthereumNode ethereumNode, i5.las2peer.security.AgentImpl agent, net.minidev.json.JSONObject json, Boolean addMnemonic, Boolean addTxLog) throws i5.las2peer.registry.exceptions.EthereumException, i5.las2peer.registry.exceptions.NotFoundException - Throws:
i5.las2peer.registry.exceptions.EthereumException
i5.las2peer.registry.exceptions.NotFoundException
-
timestampToString
-
transactionToJSON
public static net.minidev.json.JSONObject transactionToJSON(i5.las2peer.registry.data.BlockchainTransactionData btd) -
addTXLogInfo
public static void addTXLogInfo(i5.las2peer.p2p.EthereumNode ethereumNode, net.minidev.json.JSONObject json, String ethAddress)
-