2023-02-17 14:27:33 -06:00
|
|
|
export class CreatedWithIdResponse<T> {
|
2023-02-03 16:01:20 -06:00
|
|
|
/**
|
2023-02-17 14:27:33 -06:00
|
|
|
* @property {T} id - The id of the created object.
|
2023-02-03 16:01:20 -06:00
|
|
|
*/
|
2023-02-17 14:27:33 -06:00
|
|
|
public id: T;
|
2023-02-03 16:01:20 -06:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @constructor - Creates a new instance of the CreatedWithIdResponse class.
|
|
|
|
|
* @param id - The id of the created object.
|
2023-02-17 14:27:33 -06:00
|
|
|
* @returns {CreatedWithIdResponse<T>} - A new instance of the CreatedWithIdResponse class.
|
2023-02-03 16:01:20 -06:00
|
|
|
*/
|
2023-02-17 14:27:33 -06:00
|
|
|
constructor(id: T) {
|
2023-02-03 16:01:20 -06:00
|
|
|
this.id = id;
|
|
|
|
|
}
|
|
|
|
|
}
|