Include owner snowflake & name in LicenseDTO

This commit is contained in:
Braydon 2023-05-31 23:12:39 -04:00
parent cce6197e7a
commit 1591ef77d6
2 changed files with 18 additions and 0 deletions

View File

@ -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

View File

@ -17,6 +17,22 @@ public class LicenseDTO {
*/
private String description;
/**
* The Discord snowflake of the owner of this license.
* <p>
* If this is -1, the license is not owned by anyone.
* </p>
*/
private long ownerSnowflake;
/**
* The Discord name of the owner of this license.
* <p>
* If this is null, the license is not owned by anyone.
* </p>
*/
private String ownerName;
/**
* The duration that this licensee is valid for.
* <p>