Skip to content

Commit 9d0e9f8

Browse files
Run tests
1 parent 4268ecc commit 9d0e9f8

File tree

2 files changed

+60
-60
lines changed

2 files changed

+60
-60
lines changed

src/structures/Reddit.ts

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,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-
}
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+
}

src/structures/Screenshot.ts

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,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-
}
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+
}

0 commit comments

Comments
 (0)