From c3de70c54da571b04cbe57867e28b18763cb43d7 Mon Sep 17 00:00:00 2001 From: Alex1304 Date: Thu, 10 May 2018 15:38:24 +0200 Subject: [PATCH] Package ID changed to com.github.alex1304 --- README.md | 8 ++-- docs/3.-The-HTTP-request-objects.md | 44 +++++++++---------- pom.xml | 8 +++- .../alex1304}/jdash/api/GDHttpClient.java | 8 ++-- .../alex1304}/jdash/api/GDHttpRequest.java | 4 +- .../jdash/api/GDHttpResponseBuilder.java | 4 +- .../jdash/api/request/GDLevelHttpRequest.java | 16 +++---- .../api/request/GDLevelSearchHttpRequest.java | 16 +++---- .../api/request/GDMessageListHttpRequest.java | 14 +++--- .../api/request/GDMessageReadHttpRequest.java | 14 +++--- .../api/request/GDMessageSendHttpRequest.java | 10 ++--- .../jdash/api/request/GDUserHttpRequest.java | 14 +++--- .../api/request/GDUserSearchHttpRequest.java | 14 +++--- .../alex1304}/jdash/component/GDBoolean.java | 2 +- .../jdash/component/GDComponent.java | 2 +- .../jdash/component/GDComponentList.java | 2 +- .../alex1304}/jdash/component/GDLevel.java | 8 ++-- .../jdash/component/GDLevelPreview.java | 8 ++-- .../alex1304}/jdash/component/GDMessage.java | 2 +- .../alex1304}/jdash/component/GDSong.java | 2 +- .../alex1304}/jdash/component/GDUser.java | 4 +- .../jdash/component/GDUserPreview.java | 2 +- .../property/GDLevelDemonDifficulty.java | 2 +- .../component/property/GDLevelDifficulty.java | 2 +- .../component/property/GDLevelLength.java | 2 +- .../jdash/component/property/GDUserRole.java | 2 +- .../jdash/exceptions/GDAPIException.java | 2 +- .../alex1304}/jdash/util/Constants.java | 8 ++-- .../alex1304}/jdash/util/Utils.java | 2 +- .../robtopsweakcrypto/RobTopsWeakCrypto.java | 2 +- .../util/robtopsweakcrypto/XORCipher.java | 2 +- .../alex1304}/jdash/api/GDHttpClientTest.java | 31 ++++++------- 32 files changed, 133 insertions(+), 128 deletions(-) rename src/main/java/com/{alex1304dev => github/alex1304}/jdash/api/GDHttpClient.java (93%) rename src/main/java/com/{alex1304dev => github/alex1304}/jdash/api/GDHttpRequest.java (94%) rename src/main/java/com/{alex1304dev => github/alex1304}/jdash/api/GDHttpResponseBuilder.java (81%) rename src/main/java/com/{alex1304dev => github/alex1304}/jdash/api/request/GDLevelHttpRequest.java (87%) rename src/main/java/com/{alex1304dev => github/alex1304}/jdash/api/request/GDLevelSearchHttpRequest.java (92%) rename src/main/java/com/{alex1304dev => github/alex1304}/jdash/api/request/GDMessageListHttpRequest.java (78%) rename src/main/java/com/{alex1304dev => github/alex1304}/jdash/api/request/GDMessageReadHttpRequest.java (73%) rename src/main/java/com/{alex1304dev => github/alex1304}/jdash/api/request/GDMessageSendHttpRequest.java (70%) rename src/main/java/com/{alex1304dev => github/alex1304}/jdash/api/request/GDUserHttpRequest.java (79%) rename src/main/java/com/{alex1304dev => github/alex1304}/jdash/api/request/GDUserSearchHttpRequest.java (79%) rename src/main/java/com/{alex1304dev => github/alex1304}/jdash/component/GDBoolean.java (90%) rename src/main/java/com/{alex1304dev => github/alex1304}/jdash/component/GDComponent.java (85%) rename src/main/java/com/{alex1304dev => github/alex1304}/jdash/component/GDComponentList.java (91%) rename src/main/java/com/{alex1304dev => github/alex1304}/jdash/component/GDLevel.java (97%) rename src/main/java/com/{alex1304dev => github/alex1304}/jdash/component/GDLevelPreview.java (95%) rename src/main/java/com/{alex1304dev => github/alex1304}/jdash/component/GDMessage.java (98%) rename src/main/java/com/{alex1304dev => github/alex1304}/jdash/component/GDSong.java (96%) rename src/main/java/com/{alex1304dev => github/alex1304}/jdash/component/GDUser.java (97%) rename src/main/java/com/{alex1304dev => github/alex1304}/jdash/component/GDUserPreview.java (98%) rename src/main/java/com/{alex1304dev => github/alex1304}/jdash/component/property/GDLevelDemonDifficulty.java (75%) rename src/main/java/com/{alex1304dev => github/alex1304}/jdash/component/property/GDLevelDifficulty.java (76%) rename src/main/java/com/{alex1304dev => github/alex1304}/jdash/component/property/GDLevelLength.java (72%) rename src/main/java/com/{alex1304dev => github/alex1304}/jdash/component/property/GDUserRole.java (70%) rename src/main/java/com/{alex1304dev => github/alex1304}/jdash/exceptions/GDAPIException.java (92%) rename src/main/java/com/{alex1304dev => github/alex1304}/jdash/util/Constants.java (96%) rename src/main/java/com/{alex1304dev => github/alex1304}/jdash/util/Utils.java (97%) rename src/main/java/com/{alex1304dev => github/alex1304}/jdash/util/robtopsweakcrypto/RobTopsWeakCrypto.java (96%) rename src/main/java/com/{alex1304dev => github/alex1304}/jdash/util/robtopsweakcrypto/XORCipher.java (97%) rename src/test/java/com/{alex1304dev => github/alex1304}/jdash/api/GDHttpClientTest.java (76%) diff --git a/README.md b/README.md index 3cd7e82..c213cb0 100644 --- a/README.md +++ b/README.md @@ -17,10 +17,10 @@ Download the latest version at the [releases](https://github.com/Alex1304/jdash/ Here is a quick example of the usage of the library: ```Java -import com.alex1304dev.jdash.api.GDHttpClient; -import com.alex1304dev.jdash.api.request.GDLevelHttpRequest; -import com.alex1304dev.jdash.component.GDLevel; -import com.alex1304dev.jdash.exceptions.GDAPIException; +import com.github.alex1304.jdash.api.GDHttpClient; +import com.github.alex1304.jdash.api.request.GDLevelHttpRequest; +import com.github.alex1304.jdash.component.GDLevel; +import com.github.alex1304.jdash.exceptions.GDAPIException; public class TestMain { diff --git a/docs/3.-The-HTTP-request-objects.md b/docs/3.-The-HTTP-request-objects.md index 51880ec..510c37f 100644 --- a/docs/3.-The-HTTP-request-objects.md +++ b/docs/3.-The-HTTP-request-objects.md @@ -40,24 +40,24 @@ GDLevelSearchHttpRequest request = new GDLevelSearchHttpRequest("sonic wave", 0) **Constructor 2 parameters:** * type (`int`), the type of search (regular search, featured section, most recent levels). It can be one of the following values: - * `com.alex1304dev.jdash.util.Constants.LEVEL_SEARCH_TYPE_REGULAR` - * `com.alex1304dev.jdash.util.Constants.LEVEL_SEARCH_TYPE_RECENT` - * `com.alex1304dev.jdash.util.Constants.LEVEL_SEARCH_TYPE_TRENDING` - * `com.alex1304dev.jdash.util.Constants.LEVEL_SEARCH_TYPE_MOST_DOWNLOADED` - * `com.alex1304dev.jdash.util.Constants.LEVEL_SEARCH_TYPE_MOST_LIKED` - * `com.alex1304dev.jdash.util.Constants.LEVEL_SEARCH_TYPE_FEATURED` - * `com.alex1304dev.jdash.util.Constants.LEVEL_SEARCH_TYPE_HALL_OF_FAME` + * `com.github.alex1304.jdash.util.Constants.LEVEL_SEARCH_TYPE_REGULAR` + * `com.github.alex1304.jdash.util.Constants.LEVEL_SEARCH_TYPE_RECENT` + * `com.github.alex1304.jdash.util.Constants.LEVEL_SEARCH_TYPE_TRENDING` + * `com.github.alex1304.jdash.util.Constants.LEVEL_SEARCH_TYPE_MOST_DOWNLOADED` + * `com.github.alex1304.jdash.util.Constants.LEVEL_SEARCH_TYPE_MOST_LIKED` + * `com.github.alex1304.jdash.util.Constants.LEVEL_SEARCH_TYPE_FEATURED` + * `com.github.alex1304.jdash.util.Constants.LEVEL_SEARCH_TYPE_HALL_OF_FAME` * keywords (`String`), the search keywords * difficulties (`Set`), the difficulty filter. Allows multi-selection of filters by giving more than one value in the set. Each item of this set can be one of the following values: - * `com.alex1304dev.jdash.util.Constants.LEVEL_SEARCH_DIFF_ALL` - * `com.alex1304dev.jdash.util.Constants.LEVEL_SEARCH_DIFF_NA` - * `com.alex1304dev.jdash.util.Constants.LEVEL_SEARCH_DIFF_EASY` - * `com.alex1304dev.jdash.util.Constants.LEVEL_SEARCH_DIFF_NORMAL` - * `com.alex1304dev.jdash.util.Constants.LEVEL_SEARCH_DIFF_HARD` - * `com.alex1304dev.jdash.util.Constants.LEVEL_SEARCH_DIFF_HARDER` - * `com.alex1304dev.jdash.util.Constants.LEVEL_SEARCH_DIFF_INSANE` - * `com.alex1304dev.jdash.util.Constants.LEVEL_SEARCH_DIFF_DEMON` -* lengths (`Set`), the length filter. Also allows multi-selection. Items can take the values of the ordinal of any item in `com.alex1304dev.jdash.component.property.GDLevelLength`: + * `com.github.alex1304.jdash.util.Constants.LEVEL_SEARCH_DIFF_ALL` + * `com.github.alex1304.jdash.util.Constants.LEVEL_SEARCH_DIFF_NA` + * `com.github.alex1304.jdash.util.Constants.LEVEL_SEARCH_DIFF_EASY` + * `com.github.alex1304.jdash.util.Constants.LEVEL_SEARCH_DIFF_NORMAL` + * `com.github.alex1304.jdash.util.Constants.LEVEL_SEARCH_DIFF_HARD` + * `com.github.alex1304.jdash.util.Constants.LEVEL_SEARCH_DIFF_HARDER` + * `com.github.alex1304.jdash.util.Constants.LEVEL_SEARCH_DIFF_INSANE` + * `com.github.alex1304.jdash.util.Constants.LEVEL_SEARCH_DIFF_DEMON` +* lengths (`Set`), the length filter. Also allows multi-selection. Items can take the values of the ordinal of any item in `com.github.alex1304.jdash.component.property.GDLevelLength`: * page (`int`), the page number of the results, starting at 0 * uncompleted (`boolean`), enables the "uncompleted" filter if set to true. Will request only uncompleted levels. For now this has no effect because this request object doesn't suppot authentication, and this filter would need the client to be authenticated for it to work. * onlyCompleted (`boolean`), enables the "only completed" filter if set to true. Will request only completed levels. Same note as for uncompleted. @@ -68,12 +68,12 @@ GDLevelSearchHttpRequest request = new GDLevelSearchHttpRequest("sonic wave", 0) * epic (`boolean`), enables the "epic" filter if set to to true. Will request only epic levels. * star (`boolean`), enables the "star" filter if set to to true. Will request only levels with a star rate. * demonFilter (`int`), sets a demon filter between the following values: - * `com.alex1304dev.jdash.util.Constants.LEVEL_SEARCH_DIFF_ALL` - * `com.alex1304dev.jdash.util.Constants.LEVEL_SEARCH_DIFF_EASY_DEMON` - * `com.alex1304dev.jdash.util.Constants.LEVEL_SEARCH_DIFF_MEDIUM_DEMON` - * `com.alex1304dev.jdash.util.Constants.LEVEL_SEARCH_DIFF_HARD_DEMON` - * `com.alex1304dev.jdash.util.Constants.LEVEL_SEARCH_DIFF_INSANE_DEMON` - * `com.alex1304dev.jdash.util.Constants.LEVEL_SEARCH_DIFF_EXTREME_DEMON` + * `com.github.alex1304.jdash.util.Constants.LEVEL_SEARCH_DIFF_ALL` + * `com.github.alex1304.jdash.util.Constants.LEVEL_SEARCH_DIFF_EASY_DEMON` + * `com.github.alex1304.jdash.util.Constants.LEVEL_SEARCH_DIFF_MEDIUM_DEMON` + * `com.github.alex1304.jdash.util.Constants.LEVEL_SEARCH_DIFF_HARD_DEMON` + * `com.github.alex1304.jdash.util.Constants.LEVEL_SEARCH_DIFF_INSANE_DEMON` + * `com.github.alex1304.jdash.util.Constants.LEVEL_SEARCH_DIFF_EXTREME_DEMON` ```Java // This will request all Easy epic levels with coins that match the keywords diff --git a/pom.xml b/pom.xml index 1b18a56..3da5d52 100644 --- a/pom.xml +++ b/pom.xml @@ -2,13 +2,17 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - com.alex1304dev + com.github.alex1304 jdash - 1.0.1 + 2.0.0 jar jdash http://maven.apache.org + + + https://github.com/Alex1304/jdash.git + UTF-8 diff --git a/src/main/java/com/alex1304dev/jdash/api/GDHttpClient.java b/src/main/java/com/github/alex1304/jdash/api/GDHttpClient.java similarity index 93% rename from src/main/java/com/alex1304dev/jdash/api/GDHttpClient.java rename to src/main/java/com/github/alex1304/jdash/api/GDHttpClient.java index 216b2d5..83d3de0 100644 --- a/src/main/java/com/alex1304dev/jdash/api/GDHttpClient.java +++ b/src/main/java/com/github/alex1304/jdash/api/GDHttpClient.java @@ -1,4 +1,4 @@ -package com.alex1304dev.jdash.api; +package com.github.alex1304.jdash.api; import java.io.BufferedReader; import java.io.DataOutputStream; @@ -8,9 +8,9 @@ import java.net.URL; import java.util.Map.Entry; -import com.alex1304dev.jdash.component.GDComponent; -import com.alex1304dev.jdash.exceptions.GDAPIException; -import com.alex1304dev.jdash.util.Constants; +import com.github.alex1304.jdash.component.GDComponent; +import com.github.alex1304.jdash.exceptions.GDAPIException; +import com.github.alex1304.jdash.util.Constants; /** * Handles HTTP requests to Geometry Dash servers diff --git a/src/main/java/com/alex1304dev/jdash/api/GDHttpRequest.java b/src/main/java/com/github/alex1304/jdash/api/GDHttpRequest.java similarity index 94% rename from src/main/java/com/alex1304dev/jdash/api/GDHttpRequest.java rename to src/main/java/com/github/alex1304/jdash/api/GDHttpRequest.java index 4d8a69e..91cb4ec 100644 --- a/src/main/java/com/alex1304dev/jdash/api/GDHttpRequest.java +++ b/src/main/java/com/github/alex1304/jdash/api/GDHttpRequest.java @@ -1,9 +1,9 @@ -package com.alex1304dev.jdash.api; +package com.github.alex1304.jdash.api; import java.util.HashMap; import java.util.Map; -import com.alex1304dev.jdash.component.GDComponent; +import com.github.alex1304.jdash.component.GDComponent; /** * Contains the parameters sent with the POST request to the Geometry Dash diff --git a/src/main/java/com/alex1304dev/jdash/api/GDHttpResponseBuilder.java b/src/main/java/com/github/alex1304/jdash/api/GDHttpResponseBuilder.java similarity index 81% rename from src/main/java/com/alex1304dev/jdash/api/GDHttpResponseBuilder.java rename to src/main/java/com/github/alex1304/jdash/api/GDHttpResponseBuilder.java index 8edd0ac..999bf3d 100644 --- a/src/main/java/com/alex1304dev/jdash/api/GDHttpResponseBuilder.java +++ b/src/main/java/com/github/alex1304/jdash/api/GDHttpResponseBuilder.java @@ -1,6 +1,6 @@ -package com.alex1304dev.jdash.api; +package com.github.alex1304.jdash.api; -import com.alex1304dev.jdash.component.GDComponent; +import com.github.alex1304.jdash.component.GDComponent; /** * Builds a GDHttpResponse object according to the string returned by the server diff --git a/src/main/java/com/alex1304dev/jdash/api/request/GDLevelHttpRequest.java b/src/main/java/com/github/alex1304/jdash/api/request/GDLevelHttpRequest.java similarity index 87% rename from src/main/java/com/alex1304dev/jdash/api/request/GDLevelHttpRequest.java rename to src/main/java/com/github/alex1304/jdash/api/request/GDLevelHttpRequest.java index d3d4343..1f3dde9 100644 --- a/src/main/java/com/alex1304dev/jdash/api/request/GDLevelHttpRequest.java +++ b/src/main/java/com/github/alex1304/jdash/api/request/GDLevelHttpRequest.java @@ -1,15 +1,15 @@ -package com.alex1304dev.jdash.api.request; +package com.github.alex1304.jdash.api.request; import java.util.Base64; import java.util.Map; -import com.alex1304dev.jdash.api.GDHttpRequest; -import com.alex1304dev.jdash.api.GDHttpResponseBuilder; -import com.alex1304dev.jdash.component.GDLevel; -import com.alex1304dev.jdash.component.property.GDLevelLength; -import com.alex1304dev.jdash.util.Constants; -import com.alex1304dev.jdash.util.Utils; -import com.alex1304dev.jdash.util.robtopsweakcrypto.RobTopsWeakCrypto; +import com.github.alex1304.jdash.api.GDHttpRequest; +import com.github.alex1304.jdash.api.GDHttpResponseBuilder; +import com.github.alex1304.jdash.component.GDLevel; +import com.github.alex1304.jdash.component.property.GDLevelLength; +import com.github.alex1304.jdash.util.Constants; +import com.github.alex1304.jdash.util.Utils; +import com.github.alex1304.jdash.util.robtopsweakcrypto.RobTopsWeakCrypto; /** * HTTP Request to fetch a GD level diff --git a/src/main/java/com/alex1304dev/jdash/api/request/GDLevelSearchHttpRequest.java b/src/main/java/com/github/alex1304/jdash/api/request/GDLevelSearchHttpRequest.java similarity index 92% rename from src/main/java/com/alex1304dev/jdash/api/request/GDLevelSearchHttpRequest.java rename to src/main/java/com/github/alex1304/jdash/api/request/GDLevelSearchHttpRequest.java index 24f3a16..2f9e9af 100644 --- a/src/main/java/com/alex1304dev/jdash/api/request/GDLevelSearchHttpRequest.java +++ b/src/main/java/com/github/alex1304/jdash/api/request/GDLevelSearchHttpRequest.java @@ -1,4 +1,4 @@ -package com.alex1304dev.jdash.api.request; +package com.github.alex1304.jdash.api.request; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; @@ -7,13 +7,13 @@ import java.util.Map; import java.util.Set; -import com.alex1304dev.jdash.api.GDHttpRequest; -import com.alex1304dev.jdash.api.GDHttpResponseBuilder; -import com.alex1304dev.jdash.component.GDComponentList; -import com.alex1304dev.jdash.component.GDLevelPreview; -import com.alex1304dev.jdash.component.property.GDLevelLength; -import com.alex1304dev.jdash.util.Constants; -import com.alex1304dev.jdash.util.Utils; +import com.github.alex1304.jdash.api.GDHttpRequest; +import com.github.alex1304.jdash.api.GDHttpResponseBuilder; +import com.github.alex1304.jdash.component.GDComponentList; +import com.github.alex1304.jdash.component.GDLevelPreview; +import com.github.alex1304.jdash.component.property.GDLevelLength; +import com.github.alex1304.jdash.util.Constants; +import com.github.alex1304.jdash.util.Utils; /** * HTTP request to search for levels diff --git a/src/main/java/com/alex1304dev/jdash/api/request/GDMessageListHttpRequest.java b/src/main/java/com/github/alex1304/jdash/api/request/GDMessageListHttpRequest.java similarity index 78% rename from src/main/java/com/alex1304dev/jdash/api/request/GDMessageListHttpRequest.java rename to src/main/java/com/github/alex1304/jdash/api/request/GDMessageListHttpRequest.java index e381a30..393727a 100644 --- a/src/main/java/com/alex1304dev/jdash/api/request/GDMessageListHttpRequest.java +++ b/src/main/java/com/github/alex1304/jdash/api/request/GDMessageListHttpRequest.java @@ -1,14 +1,14 @@ -package com.alex1304dev.jdash.api.request; +package com.github.alex1304.jdash.api.request; import java.util.Base64; import java.util.Map; -import com.alex1304dev.jdash.api.GDHttpRequest; -import com.alex1304dev.jdash.api.GDHttpResponseBuilder; -import com.alex1304dev.jdash.component.GDComponentList; -import com.alex1304dev.jdash.component.GDMessage; -import com.alex1304dev.jdash.util.Constants; -import com.alex1304dev.jdash.util.Utils; +import com.github.alex1304.jdash.api.GDHttpRequest; +import com.github.alex1304.jdash.api.GDHttpResponseBuilder; +import com.github.alex1304.jdash.component.GDComponentList; +import com.github.alex1304.jdash.component.GDMessage; +import com.github.alex1304.jdash.util.Constants; +import com.github.alex1304.jdash.util.Utils; /** * HTTP request to fetch the list of messages in the authenticated user's inbox diff --git a/src/main/java/com/alex1304dev/jdash/api/request/GDMessageReadHttpRequest.java b/src/main/java/com/github/alex1304/jdash/api/request/GDMessageReadHttpRequest.java similarity index 73% rename from src/main/java/com/alex1304dev/jdash/api/request/GDMessageReadHttpRequest.java rename to src/main/java/com/github/alex1304/jdash/api/request/GDMessageReadHttpRequest.java index 0e929ab..f329566 100644 --- a/src/main/java/com/alex1304dev/jdash/api/request/GDMessageReadHttpRequest.java +++ b/src/main/java/com/github/alex1304/jdash/api/request/GDMessageReadHttpRequest.java @@ -1,14 +1,14 @@ -package com.alex1304dev.jdash.api.request; +package com.github.alex1304.jdash.api.request; import java.util.Base64; import java.util.Map; -import com.alex1304dev.jdash.api.GDHttpRequest; -import com.alex1304dev.jdash.api.GDHttpResponseBuilder; -import com.alex1304dev.jdash.component.GDMessage; -import com.alex1304dev.jdash.util.Constants; -import com.alex1304dev.jdash.util.Utils; -import com.alex1304dev.jdash.util.robtopsweakcrypto.RobTopsWeakCrypto; +import com.github.alex1304.jdash.api.GDHttpRequest; +import com.github.alex1304.jdash.api.GDHttpResponseBuilder; +import com.github.alex1304.jdash.component.GDMessage; +import com.github.alex1304.jdash.util.Constants; +import com.github.alex1304.jdash.util.Utils; +import com.github.alex1304.jdash.util.robtopsweakcrypto.RobTopsWeakCrypto; /** * HTTP request to fetch private message contents diff --git a/src/main/java/com/alex1304dev/jdash/api/request/GDMessageSendHttpRequest.java b/src/main/java/com/github/alex1304/jdash/api/request/GDMessageSendHttpRequest.java similarity index 70% rename from src/main/java/com/alex1304dev/jdash/api/request/GDMessageSendHttpRequest.java rename to src/main/java/com/github/alex1304/jdash/api/request/GDMessageSendHttpRequest.java index 19b8924..5dcb50c 100644 --- a/src/main/java/com/alex1304dev/jdash/api/request/GDMessageSendHttpRequest.java +++ b/src/main/java/com/github/alex1304/jdash/api/request/GDMessageSendHttpRequest.java @@ -1,11 +1,11 @@ -package com.alex1304dev.jdash.api.request; +package com.github.alex1304.jdash.api.request; import java.util.Base64; -import com.alex1304dev.jdash.api.GDHttpRequest; -import com.alex1304dev.jdash.api.GDHttpResponseBuilder; -import com.alex1304dev.jdash.component.GDBoolean; -import com.alex1304dev.jdash.util.robtopsweakcrypto.RobTopsWeakCrypto; +import com.github.alex1304.jdash.api.GDHttpRequest; +import com.github.alex1304.jdash.api.GDHttpResponseBuilder; +import com.github.alex1304.jdash.component.GDBoolean; +import com.github.alex1304.jdash.util.robtopsweakcrypto.RobTopsWeakCrypto; /** * HTTP request to send a message in Geometry Dash diff --git a/src/main/java/com/alex1304dev/jdash/api/request/GDUserHttpRequest.java b/src/main/java/com/github/alex1304/jdash/api/request/GDUserHttpRequest.java similarity index 79% rename from src/main/java/com/alex1304dev/jdash/api/request/GDUserHttpRequest.java rename to src/main/java/com/github/alex1304/jdash/api/request/GDUserHttpRequest.java index 4671067..a94dad4 100644 --- a/src/main/java/com/alex1304dev/jdash/api/request/GDUserHttpRequest.java +++ b/src/main/java/com/github/alex1304/jdash/api/request/GDUserHttpRequest.java @@ -1,13 +1,13 @@ -package com.alex1304dev.jdash.api.request; +package com.github.alex1304.jdash.api.request; import java.util.Map; -import com.alex1304dev.jdash.api.GDHttpRequest; -import com.alex1304dev.jdash.api.GDHttpResponseBuilder; -import com.alex1304dev.jdash.component.GDUser; -import com.alex1304dev.jdash.component.property.GDUserRole; -import com.alex1304dev.jdash.util.Constants; -import com.alex1304dev.jdash.util.Utils; +import com.github.alex1304.jdash.api.GDHttpRequest; +import com.github.alex1304.jdash.api.GDHttpResponseBuilder; +import com.github.alex1304.jdash.component.GDUser; +import com.github.alex1304.jdash.component.property.GDUserRole; +import com.github.alex1304.jdash.util.Constants; +import com.github.alex1304.jdash.util.Utils; /** * HTTP request to fetch a GD user. diff --git a/src/main/java/com/alex1304dev/jdash/api/request/GDUserSearchHttpRequest.java b/src/main/java/com/github/alex1304/jdash/api/request/GDUserSearchHttpRequest.java similarity index 79% rename from src/main/java/com/alex1304dev/jdash/api/request/GDUserSearchHttpRequest.java rename to src/main/java/com/github/alex1304/jdash/api/request/GDUserSearchHttpRequest.java index 61416eb..eedd7cd 100644 --- a/src/main/java/com/alex1304dev/jdash/api/request/GDUserSearchHttpRequest.java +++ b/src/main/java/com/github/alex1304/jdash/api/request/GDUserSearchHttpRequest.java @@ -1,13 +1,13 @@ -package com.alex1304dev.jdash.api.request; +package com.github.alex1304.jdash.api.request; import java.util.Map; -import com.alex1304dev.jdash.api.GDHttpRequest; -import com.alex1304dev.jdash.api.GDHttpResponseBuilder; -import com.alex1304dev.jdash.component.GDComponentList; -import com.alex1304dev.jdash.component.GDUserPreview; -import com.alex1304dev.jdash.util.Constants; -import com.alex1304dev.jdash.util.Utils; +import com.github.alex1304.jdash.api.GDHttpRequest; +import com.github.alex1304.jdash.api.GDHttpResponseBuilder; +import com.github.alex1304.jdash.component.GDComponentList; +import com.github.alex1304.jdash.component.GDUserPreview; +import com.github.alex1304.jdash.util.Constants; +import com.github.alex1304.jdash.util.Utils; /** * HTTP request to search for users diff --git a/src/main/java/com/alex1304dev/jdash/component/GDBoolean.java b/src/main/java/com/github/alex1304/jdash/component/GDBoolean.java similarity index 90% rename from src/main/java/com/alex1304dev/jdash/component/GDBoolean.java rename to src/main/java/com/github/alex1304/jdash/component/GDBoolean.java index 4be8668..00551cc 100644 --- a/src/main/java/com/alex1304dev/jdash/component/GDBoolean.java +++ b/src/main/java/com/github/alex1304/jdash/component/GDBoolean.java @@ -1,4 +1,4 @@ -package com.alex1304dev.jdash.component; +package com.github.alex1304.jdash.component; /** * GD component that encapsulates a boolean diff --git a/src/main/java/com/alex1304dev/jdash/component/GDComponent.java b/src/main/java/com/github/alex1304/jdash/component/GDComponent.java similarity index 85% rename from src/main/java/com/alex1304dev/jdash/component/GDComponent.java rename to src/main/java/com/github/alex1304/jdash/component/GDComponent.java index 1f4eb90..fac1c68 100644 --- a/src/main/java/com/alex1304dev/jdash/component/GDComponent.java +++ b/src/main/java/com/github/alex1304/jdash/component/GDComponent.java @@ -1,4 +1,4 @@ -package com.alex1304dev.jdash.component; +package com.github.alex1304.jdash.component; /** * A Geometry Dash component is any entity that can be found in the game. diff --git a/src/main/java/com/alex1304dev/jdash/component/GDComponentList.java b/src/main/java/com/github/alex1304/jdash/component/GDComponentList.java similarity index 91% rename from src/main/java/com/alex1304dev/jdash/component/GDComponentList.java rename to src/main/java/com/github/alex1304/jdash/component/GDComponentList.java index e8a68c9..0e3508e 100644 --- a/src/main/java/com/alex1304dev/jdash/component/GDComponentList.java +++ b/src/main/java/com/github/alex1304/jdash/component/GDComponentList.java @@ -1,4 +1,4 @@ -package com.alex1304dev.jdash.component; +package com.github.alex1304.jdash.component; import java.util.ArrayList; import java.util.Collection; diff --git a/src/main/java/com/alex1304dev/jdash/component/GDLevel.java b/src/main/java/com/github/alex1304/jdash/component/GDLevel.java similarity index 97% rename from src/main/java/com/alex1304dev/jdash/component/GDLevel.java rename to src/main/java/com/github/alex1304/jdash/component/GDLevel.java index 0ca2bb5..647a80a 100644 --- a/src/main/java/com/alex1304dev/jdash/component/GDLevel.java +++ b/src/main/java/com/github/alex1304/jdash/component/GDLevel.java @@ -1,8 +1,8 @@ -package com.alex1304dev.jdash.component; +package com.github.alex1304.jdash.component; -import com.alex1304dev.jdash.component.property.GDLevelDemonDifficulty; -import com.alex1304dev.jdash.component.property.GDLevelDifficulty; -import com.alex1304dev.jdash.component.property.GDLevelLength; +import com.github.alex1304.jdash.component.property.GDLevelDemonDifficulty; +import com.github.alex1304.jdash.component.property.GDLevelDifficulty; +import com.github.alex1304.jdash.component.property.GDLevelLength; /** * Represents a level in the game. diff --git a/src/main/java/com/alex1304dev/jdash/component/GDLevelPreview.java b/src/main/java/com/github/alex1304/jdash/component/GDLevelPreview.java similarity index 95% rename from src/main/java/com/alex1304dev/jdash/component/GDLevelPreview.java rename to src/main/java/com/github/alex1304/jdash/component/GDLevelPreview.java index d2b623e..d5fb986 100644 --- a/src/main/java/com/alex1304dev/jdash/component/GDLevelPreview.java +++ b/src/main/java/com/github/alex1304/jdash/component/GDLevelPreview.java @@ -1,8 +1,8 @@ -package com.alex1304dev.jdash.component; +package com.github.alex1304.jdash.component; -import com.alex1304dev.jdash.component.property.GDLevelDemonDifficulty; -import com.alex1304dev.jdash.component.property.GDLevelDifficulty; -import com.alex1304dev.jdash.component.property.GDLevelLength; +import com.github.alex1304.jdash.component.property.GDLevelDemonDifficulty; +import com.github.alex1304.jdash.component.property.GDLevelDifficulty; +import com.github.alex1304.jdash.component.property.GDLevelLength; /** * Basic info on a GD level diff --git a/src/main/java/com/alex1304dev/jdash/component/GDMessage.java b/src/main/java/com/github/alex1304/jdash/component/GDMessage.java similarity index 98% rename from src/main/java/com/alex1304dev/jdash/component/GDMessage.java rename to src/main/java/com/github/alex1304/jdash/component/GDMessage.java index 2452579..5f23a6c 100644 --- a/src/main/java/com/alex1304dev/jdash/component/GDMessage.java +++ b/src/main/java/com/github/alex1304/jdash/component/GDMessage.java @@ -1,4 +1,4 @@ -package com.alex1304dev.jdash.component; +package com.github.alex1304.jdash.component; /** * Represents a private message in Geometry Dash diff --git a/src/main/java/com/alex1304dev/jdash/component/GDSong.java b/src/main/java/com/github/alex1304/jdash/component/GDSong.java similarity index 96% rename from src/main/java/com/alex1304dev/jdash/component/GDSong.java rename to src/main/java/com/github/alex1304/jdash/component/GDSong.java index 1df1597..3f352c6 100644 --- a/src/main/java/com/alex1304dev/jdash/component/GDSong.java +++ b/src/main/java/com/github/alex1304/jdash/component/GDSong.java @@ -1,4 +1,4 @@ -package com.alex1304dev.jdash.component; +package com.github.alex1304.jdash.component; /** * Represents a song used in GD levels diff --git a/src/main/java/com/alex1304dev/jdash/component/GDUser.java b/src/main/java/com/github/alex1304/jdash/component/GDUser.java similarity index 97% rename from src/main/java/com/alex1304dev/jdash/component/GDUser.java rename to src/main/java/com/github/alex1304/jdash/component/GDUser.java index e4be4c2..f9f9a10 100644 --- a/src/main/java/com/alex1304dev/jdash/component/GDUser.java +++ b/src/main/java/com/github/alex1304/jdash/component/GDUser.java @@ -1,6 +1,6 @@ -package com.alex1304dev.jdash.component; +package com.github.alex1304.jdash.component; -import com.alex1304dev.jdash.component.property.GDUserRole; +import com.github.alex1304.jdash.component.property.GDUserRole; /** * Represents a user in Geometry Dash. diff --git a/src/main/java/com/alex1304dev/jdash/component/GDUserPreview.java b/src/main/java/com/github/alex1304/jdash/component/GDUserPreview.java similarity index 98% rename from src/main/java/com/alex1304dev/jdash/component/GDUserPreview.java rename to src/main/java/com/github/alex1304/jdash/component/GDUserPreview.java index 1907c55..02d4354 100644 --- a/src/main/java/com/alex1304dev/jdash/component/GDUserPreview.java +++ b/src/main/java/com/github/alex1304/jdash/component/GDUserPreview.java @@ -1,4 +1,4 @@ -package com.alex1304dev.jdash.component; +package com.github.alex1304.jdash.component; /** * Represents a user preview when searching for them in Geometry Dash. diff --git a/src/main/java/com/alex1304dev/jdash/component/property/GDLevelDemonDifficulty.java b/src/main/java/com/github/alex1304/jdash/component/property/GDLevelDemonDifficulty.java similarity index 75% rename from src/main/java/com/alex1304dev/jdash/component/property/GDLevelDemonDifficulty.java rename to src/main/java/com/github/alex1304/jdash/component/property/GDLevelDemonDifficulty.java index d7f62ca..ed62ffb 100644 --- a/src/main/java/com/alex1304dev/jdash/component/property/GDLevelDemonDifficulty.java +++ b/src/main/java/com/github/alex1304/jdash/component/property/GDLevelDemonDifficulty.java @@ -1,4 +1,4 @@ -package com.alex1304dev.jdash.component.property; +package com.github.alex1304.jdash.component.property; /** * Represents the Demon difficulty of a GD level. diff --git a/src/main/java/com/alex1304dev/jdash/component/property/GDLevelDifficulty.java b/src/main/java/com/github/alex1304/jdash/component/property/GDLevelDifficulty.java similarity index 76% rename from src/main/java/com/alex1304dev/jdash/component/property/GDLevelDifficulty.java rename to src/main/java/com/github/alex1304/jdash/component/property/GDLevelDifficulty.java index 53cc5ee..bc8a2d8 100644 --- a/src/main/java/com/alex1304dev/jdash/component/property/GDLevelDifficulty.java +++ b/src/main/java/com/github/alex1304/jdash/component/property/GDLevelDifficulty.java @@ -1,4 +1,4 @@ -package com.alex1304dev.jdash.component.property; +package com.github.alex1304.jdash.component.property; /** * Represents the difficulty of a GD level diff --git a/src/main/java/com/alex1304dev/jdash/component/property/GDLevelLength.java b/src/main/java/com/github/alex1304/jdash/component/property/GDLevelLength.java similarity index 72% rename from src/main/java/com/alex1304dev/jdash/component/property/GDLevelLength.java rename to src/main/java/com/github/alex1304/jdash/component/property/GDLevelLength.java index e69f2d4..c31eced 100644 --- a/src/main/java/com/alex1304dev/jdash/component/property/GDLevelLength.java +++ b/src/main/java/com/github/alex1304/jdash/component/property/GDLevelLength.java @@ -1,4 +1,4 @@ -package com.alex1304dev.jdash.component.property; +package com.github.alex1304.jdash.component.property; /** * Represents the length of a GD level diff --git a/src/main/java/com/alex1304dev/jdash/component/property/GDUserRole.java b/src/main/java/com/github/alex1304/jdash/component/property/GDUserRole.java similarity index 70% rename from src/main/java/com/alex1304dev/jdash/component/property/GDUserRole.java rename to src/main/java/com/github/alex1304/jdash/component/property/GDUserRole.java index a9be5dc..6bf4475 100644 --- a/src/main/java/com/alex1304dev/jdash/component/property/GDUserRole.java +++ b/src/main/java/com/github/alex1304/jdash/component/property/GDUserRole.java @@ -1,4 +1,4 @@ -package com.alex1304dev.jdash.component.property; +package com.github.alex1304.jdash.component.property; /** * User's role in Geometry Dash diff --git a/src/main/java/com/alex1304dev/jdash/exceptions/GDAPIException.java b/src/main/java/com/github/alex1304/jdash/exceptions/GDAPIException.java similarity index 92% rename from src/main/java/com/alex1304dev/jdash/exceptions/GDAPIException.java rename to src/main/java/com/github/alex1304/jdash/exceptions/GDAPIException.java index 068153a..cfc3629 100644 --- a/src/main/java/com/alex1304dev/jdash/exceptions/GDAPIException.java +++ b/src/main/java/com/github/alex1304/jdash/exceptions/GDAPIException.java @@ -1,4 +1,4 @@ -package com.alex1304dev.jdash.exceptions; +package com.github.alex1304.jdash.exceptions; /** * Thrown when a GD API call fails diff --git a/src/main/java/com/alex1304dev/jdash/util/Constants.java b/src/main/java/com/github/alex1304/jdash/util/Constants.java similarity index 96% rename from src/main/java/com/alex1304dev/jdash/util/Constants.java rename to src/main/java/com/github/alex1304/jdash/util/Constants.java index c48b58c..d749cfe 100644 --- a/src/main/java/com/alex1304dev/jdash/util/Constants.java +++ b/src/main/java/com/github/alex1304/jdash/util/Constants.java @@ -1,12 +1,12 @@ -package com.alex1304dev.jdash.util; +package com.github.alex1304.jdash.util; import java.util.HashMap; import java.util.Map; import java.util.function.Function; -import com.alex1304dev.jdash.component.property.GDLevelDemonDifficulty; -import com.alex1304dev.jdash.component.property.GDLevelDifficulty; -import com.alex1304dev.jdash.util.robtopsweakcrypto.RobTopsWeakCrypto; +import com.github.alex1304.jdash.component.property.GDLevelDemonDifficulty; +import com.github.alex1304.jdash.component.property.GDLevelDifficulty; +import com.github.alex1304.jdash.util.robtopsweakcrypto.RobTopsWeakCrypto; /** * Useful constants to be uses anywhere in the project. diff --git a/src/main/java/com/alex1304dev/jdash/util/Utils.java b/src/main/java/com/github/alex1304/jdash/util/Utils.java similarity index 97% rename from src/main/java/com/alex1304dev/jdash/util/Utils.java rename to src/main/java/com/github/alex1304/jdash/util/Utils.java index 59d9aa5..5a04b6a 100644 --- a/src/main/java/com/alex1304dev/jdash/util/Utils.java +++ b/src/main/java/com/github/alex1304/jdash/util/Utils.java @@ -1,4 +1,4 @@ -package com.alex1304dev.jdash.util; +package com.github.alex1304.jdash.util; import java.util.HashMap; import java.util.Map; diff --git a/src/main/java/com/alex1304dev/jdash/util/robtopsweakcrypto/RobTopsWeakCrypto.java b/src/main/java/com/github/alex1304/jdash/util/robtopsweakcrypto/RobTopsWeakCrypto.java similarity index 96% rename from src/main/java/com/alex1304dev/jdash/util/robtopsweakcrypto/RobTopsWeakCrypto.java rename to src/main/java/com/github/alex1304/jdash/util/robtopsweakcrypto/RobTopsWeakCrypto.java index b51eb5c..415b955 100644 --- a/src/main/java/com/alex1304dev/jdash/util/robtopsweakcrypto/RobTopsWeakCrypto.java +++ b/src/main/java/com/github/alex1304/jdash/util/robtopsweakcrypto/RobTopsWeakCrypto.java @@ -1,4 +1,4 @@ -package com.alex1304dev.jdash.util.robtopsweakcrypto; +package com.github.alex1304.jdash.util.robtopsweakcrypto; import java.util.Base64; diff --git a/src/main/java/com/alex1304dev/jdash/util/robtopsweakcrypto/XORCipher.java b/src/main/java/com/github/alex1304/jdash/util/robtopsweakcrypto/XORCipher.java similarity index 97% rename from src/main/java/com/alex1304dev/jdash/util/robtopsweakcrypto/XORCipher.java rename to src/main/java/com/github/alex1304/jdash/util/robtopsweakcrypto/XORCipher.java index 6e3056d..49a8d54 100644 --- a/src/main/java/com/alex1304dev/jdash/util/robtopsweakcrypto/XORCipher.java +++ b/src/main/java/com/github/alex1304/jdash/util/robtopsweakcrypto/XORCipher.java @@ -1,4 +1,4 @@ -package com.alex1304dev.jdash.util.robtopsweakcrypto; +package com.github.alex1304.jdash.util.robtopsweakcrypto; /** * Implementation of the XOR Cipher algorithm. diff --git a/src/test/java/com/alex1304dev/jdash/api/GDHttpClientTest.java b/src/test/java/com/github/alex1304/jdash/api/GDHttpClientTest.java similarity index 76% rename from src/test/java/com/alex1304dev/jdash/api/GDHttpClientTest.java rename to src/test/java/com/github/alex1304/jdash/api/GDHttpClientTest.java index 20d4939..af7b091 100644 --- a/src/test/java/com/alex1304dev/jdash/api/GDHttpClientTest.java +++ b/src/test/java/com/github/alex1304/jdash/api/GDHttpClientTest.java @@ -1,4 +1,4 @@ -package com.alex1304dev.jdash.api; +package com.github.alex1304.jdash.api; import static org.junit.Assert.*; @@ -6,20 +6,21 @@ import org.junit.BeforeClass; import org.junit.Test; -import com.alex1304dev.jdash.api.request.GDLevelHttpRequest; -import com.alex1304dev.jdash.api.request.GDLevelSearchHttpRequest; -import com.alex1304dev.jdash.api.request.GDMessageListHttpRequest; -import com.alex1304dev.jdash.api.request.GDMessageReadHttpRequest; -import com.alex1304dev.jdash.api.request.GDMessageSendHttpRequest; -import com.alex1304dev.jdash.api.request.GDUserHttpRequest; -import com.alex1304dev.jdash.api.request.GDUserSearchHttpRequest; -import com.alex1304dev.jdash.component.GDBoolean; -import com.alex1304dev.jdash.component.GDComponentList; -import com.alex1304dev.jdash.component.GDLevel; -import com.alex1304dev.jdash.component.GDLevelPreview; -import com.alex1304dev.jdash.component.GDMessage; -import com.alex1304dev.jdash.component.GDUser; -import com.alex1304dev.jdash.component.GDUserPreview; +import com.github.alex1304.jdash.api.GDHttpClient; +import com.github.alex1304.jdash.api.request.GDLevelHttpRequest; +import com.github.alex1304.jdash.api.request.GDLevelSearchHttpRequest; +import com.github.alex1304.jdash.api.request.GDMessageListHttpRequest; +import com.github.alex1304.jdash.api.request.GDMessageReadHttpRequest; +import com.github.alex1304.jdash.api.request.GDMessageSendHttpRequest; +import com.github.alex1304.jdash.api.request.GDUserHttpRequest; +import com.github.alex1304.jdash.api.request.GDUserSearchHttpRequest; +import com.github.alex1304.jdash.component.GDBoolean; +import com.github.alex1304.jdash.component.GDComponentList; +import com.github.alex1304.jdash.component.GDLevel; +import com.github.alex1304.jdash.component.GDLevelPreview; +import com.github.alex1304.jdash.component.GDMessage; +import com.github.alex1304.jdash.component.GDUser; +import com.github.alex1304.jdash.component.GDUserPreview; public class GDHttpClientTest {