@@ 5-62 (lines=58) @@ | ||
2 | ||
3 | namespace Teebot\Api\Entity; |
|
4 | ||
5 | class Document extends AbstractEntity |
|
6 | { |
|
7 | const ENTITY_TYPE = 'Document'; |
|
8 | ||
9 | protected $file_id; |
|
10 | ||
11 | protected $thumb; |
|
12 | ||
13 | protected $file_name; |
|
14 | ||
15 | protected $mime_type; |
|
16 | ||
17 | protected $file_size; |
|
18 | ||
19 | protected $builtInEntities = [ |
|
20 | 'thumb' => PhotoSize::class |
|
21 | ]; |
|
22 | ||
23 | /** |
|
24 | * @return mixed |
|
25 | */ |
|
26 | public function getFileId() |
|
27 | { |
|
28 | return $this->file_id; |
|
29 | } |
|
30 | ||
31 | /** |
|
32 | * @return mixed |
|
33 | */ |
|
34 | public function getThumb() |
|
35 | { |
|
36 | return $this->thumb; |
|
37 | } |
|
38 | ||
39 | /** |
|
40 | * @return mixed |
|
41 | */ |
|
42 | public function getFileName() |
|
43 | { |
|
44 | return $this->file_name; |
|
45 | } |
|
46 | ||
47 | /** |
|
48 | * @return mixed |
|
49 | */ |
|
50 | public function getMimeType() |
|
51 | { |
|
52 | return $this->mime_type; |
|
53 | } |
|
54 | ||
55 | /** |
|
56 | * @return mixed |
|
57 | */ |
|
58 | public function getFileSize() |
|
59 | { |
|
60 | return $this->file_size; |
|
61 | } |
|
62 | } |
|
63 |
@@ 5-62 (lines=58) @@ | ||
2 | ||
3 | namespace Teebot\Api\Entity; |
|
4 | ||
5 | class Sticker extends AbstractEntity |
|
6 | { |
|
7 | const ENTITY_TYPE = 'Sticker'; |
|
8 | ||
9 | protected $file_id; |
|
10 | ||
11 | protected $width; |
|
12 | ||
13 | protected $height; |
|
14 | ||
15 | protected $thumb; |
|
16 | ||
17 | protected $file_size; |
|
18 | ||
19 | protected $builtInEntities = [ |
|
20 | 'thumb' => PhotoSize::class |
|
21 | ]; |
|
22 | ||
23 | /** |
|
24 | * @return mixed |
|
25 | */ |
|
26 | public function getFileId() |
|
27 | { |
|
28 | return $this->file_id; |
|
29 | } |
|
30 | ||
31 | /** |
|
32 | * @return mixed |
|
33 | */ |
|
34 | public function getWidth() |
|
35 | { |
|
36 | return $this->width; |
|
37 | } |
|
38 | ||
39 | /** |
|
40 | * @return mixed |
|
41 | */ |
|
42 | public function getHeight() |
|
43 | { |
|
44 | return $this->height; |
|
45 | } |
|
46 | ||
47 | /** |
|
48 | * @return mixed |
|
49 | */ |
|
50 | public function getThumb() |
|
51 | { |
|
52 | return $this->thumb; |
|
53 | } |
|
54 | ||
55 | /** |
|
56 | * @return mixed |
|
57 | */ |
|
58 | public function getFileSize() |
|
59 | { |
|
60 | return $this->file_size; |
|
61 | } |
|
62 | } |
|
63 |