Include owner snowflake & name in LicenseDTO
This commit is contained in:
parent
cce6197e7a
commit
1591ef77d6
@ -72,6 +72,8 @@ public final class LicenseController {
|
|||||||
// Return OK with the license DTO
|
// Return OK with the license DTO
|
||||||
return ResponseEntity.ok(new LicenseDTO(
|
return ResponseEntity.ok(new LicenseDTO(
|
||||||
license.getDescription(),
|
license.getDescription(),
|
||||||
|
license.getOwnerSnowflake(),
|
||||||
|
license.getOwnerName(),
|
||||||
license.getDuration()
|
license.getDuration()
|
||||||
));
|
));
|
||||||
} catch (APIException ex) { // Handle the exception
|
} catch (APIException ex) { // Handle the exception
|
||||||
|
@ -17,6 +17,22 @@ public class LicenseDTO {
|
|||||||
*/
|
*/
|
||||||
private String description;
|
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.
|
* The duration that this licensee is valid for.
|
||||||
* <p>
|
* <p>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user