File tree Expand file tree Collapse file tree 2 files changed +60
-60
lines changed
Expand file tree Collapse file tree 2 files changed +60
-60
lines changed Original file line number Diff line number Diff line change 1- import type { RedditEndpointResponse } from ".." ;
2-
3- /**
4- * A class representing the response from the reddit endpoint
5- */
6- export class Reddit {
7- /**
8- * The status of the request
9- */
10- status : number | string ;
11-
12- /**
13- * The result of the request
14- */
15- result : string ;
16-
17- /**
18- * The image of the post
19- */
20- image : string ;
21-
22- /**
23- * The title of the post
24- */
25- title : string ;
26-
27- /**
28- * @param data - The data received in the request
29- */
30- constructor ( data : RedditEndpointResponse ) {
31- this . status = data . status ;
32- this . result = data . url ;
33- this . image = data . image ;
34- this . title = data . title ;
35- }
36- }
1+ import type { RedditEndpointResponse } from ".." ;
2+
3+ /**
4+ * A class representing the response from the reddit endpoint
5+ */
6+ export class Reddit {
7+ /**
8+ * The status of the request
9+ */
10+ status : number | string ;
11+
12+ /**
13+ * The result of the request
14+ */
15+ result : string ;
16+
17+ /**
18+ * The image of the post
19+ */
20+ image : string ;
21+
22+ /**
23+ * The title of the post
24+ */
25+ title : string ;
26+
27+ /**
28+ * @param data - The data received in the request
29+ */
30+ constructor ( data : RedditEndpointResponse ) {
31+ this . status = data . status ;
32+ this . result = data . url ;
33+ this . image = data . image ;
34+ this . title = data . title ;
35+ }
36+ }
Original file line number Diff line number Diff line change 1- import type { EndpointResponse } from ".." ;
2-
3- /**
4- * A class representing the response from the screenshot endpoint
5- */
6- export class Screenshot {
7- /**
8- * The status of the request
9- */
10- status : number | string ;
11-
12- /**
13- * The url of the screenshot
14- */
15- url : string ;
16-
17- /**
18- * @param data - The data received in the request
19- */
20- constructor ( data : EndpointResponse ) {
21- this . status = data . status ;
22- this . url = data . url ;
23- }
24- }
1+ import type { EndpointResponse } from ".." ;
2+
3+ /**
4+ * A class representing the response from the screenshot endpoint
5+ */
6+ export class Screenshot {
7+ /**
8+ * The status of the request
9+ */
10+ status : number | string ;
11+
12+ /**
13+ * The url of the screenshot
14+ */
15+ url : string ;
16+
17+ /**
18+ * @param data - The data received in the request
19+ */
20+ constructor ( data : EndpointResponse ) {
21+ this . status = data . status ;
22+ this . url = data . url ;
23+ }
24+ }
You can’t perform that action at this time.
0 commit comments