From 7d63227ce5883bc1f0dde9df7faaa0f2fb495661 Mon Sep 17 00:00:00 2001 From: Artem Los Date: Fri, 1 Feb 2019 14:00:27 +0100 Subject: [PATCH] Add more docs and refactor --- .idea/misc.xml | 1 + .idea/workspace.xml | 331 +++++++++++------- .../java/io/cryptolens/ResponseParser.java | 26 -- .../{models => internal}/ActivateResult.java | 2 +- .../{models => internal}/BasicResult.java | 2 +- .../io/cryptolens/internal/HelperMethods.java | 7 +- .../{ => legacy}/Base64Response.java | 4 +- .../cryptolens/{ => legacy}/Cryptolens.java | 21 +- .../{ => legacy}/GsonResponseParser.java | 18 +- .../HttpsURLConnectionRequestHandler.java | 18 +- .../JavaSecuritySignatureVerifier.java | 4 +- .../cryptolens/{ => legacy}/LicenseKey.java | 24 +- .../{ => legacy}/MachineCodeComputer.java | 4 +- .../{ => legacy}/RequestHandler.java | 4 +- .../io/cryptolens/legacy/ResponseParser.java | 6 + .../java/io/cryptolens/methods/Helpers.java | 3 + src/main/java/io/cryptolens/methods/Key.java | 12 +- .../io/cryptolens/models/ActivateModel.java | 59 ++-- .../java/io/cryptolens/models/LicenseKey.java | 6 +- src/test/java/io/cryptolens/KeyTest.java | 2 - 20 files changed, 269 insertions(+), 285 deletions(-) delete mode 100644 src/main/java/io/cryptolens/ResponseParser.java rename src/main/java/io/cryptolens/{models => internal}/ActivateResult.java (77%) rename src/main/java/io/cryptolens/{models => internal}/BasicResult.java (77%) rename src/main/java/io/cryptolens/{ => legacy}/Base64Response.java (94%) rename src/main/java/io/cryptolens/{ => legacy}/Cryptolens.java (92%) rename src/main/java/io/cryptolens/{ => legacy}/GsonResponseParser.java (89%) rename src/main/java/io/cryptolens/{ => legacy}/HttpsURLConnectionRequestHandler.java (79%) rename src/main/java/io/cryptolens/{ => legacy}/JavaSecuritySignatureVerifier.java (96%) rename src/main/java/io/cryptolens/{ => legacy}/LicenseKey.java (90%) rename src/main/java/io/cryptolens/{ => legacy}/MachineCodeComputer.java (92%) rename src/main/java/io/cryptolens/{ => legacy}/RequestHandler.java (92%) create mode 100644 src/main/java/io/cryptolens/legacy/ResponseParser.java diff --git a/.idea/misc.xml b/.idea/misc.xml index 844be5f..0d260bf 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -3,6 +3,7 @@