diff --git a/src/main/java/me/braydon/license/controller/LicenseController.java b/src/main/java/me/braydon/license/controller/LicenseController.java index b684cb3..300224b 100644 --- a/src/main/java/me/braydon/license/controller/LicenseController.java +++ b/src/main/java/me/braydon/license/controller/LicenseController.java @@ -72,6 +72,8 @@ public final class LicenseController { // Return OK with the license DTO return ResponseEntity.ok(new LicenseDTO( license.getDescription(), + license.getOwnerSnowflake(), + license.getOwnerName(), license.getDuration() )); } catch (APIException ex) { // Handle the exception diff --git a/src/main/java/me/braydon/license/dto/LicenseDTO.java b/src/main/java/me/braydon/license/dto/LicenseDTO.java index 06f13bc..08ab0cc 100644 --- a/src/main/java/me/braydon/license/dto/LicenseDTO.java +++ b/src/main/java/me/braydon/license/dto/LicenseDTO.java @@ -17,6 +17,22 @@ public class LicenseDTO { */ private String description; + /** + * The Discord snowflake of the owner of this license. + *
+ * If this is -1, the license is not owned by anyone. + *
+ */ + private long ownerSnowflake; + + /** + * The Discord name of the owner of this license. + *+ * If this is null, the license is not owned by anyone. + *
+ */ + private String ownerName; + /** * The duration that this licensee is valid for. *