Skip to content

Commit

Permalink
renamed thumb into thumbnail
Browse files Browse the repository at this point in the history
  • Loading branch information
DinoLeung committed Aug 27, 2023
1 parent 4e01eb3 commit 1fb6822
Show file tree
Hide file tree
Showing 13 changed files with 95 additions and 96 deletions.
58 changes: 29 additions & 29 deletions lib/src/telegram/model.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions lib/src/telegram/models/animation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Animation {
int width;
int height;
int duration;
PhotoSize? thumb;
PhotoSize? thumbnail;
String? fileName;
String? mimeType;
int? fileSize;
Expand All @@ -39,7 +39,7 @@ class Animation {
required this.width,
required this.height,
required this.duration,
this.thumb,
this.thumbnail,
this.fileName,
this.mimeType,
this.fileSize,
Expand Down
4 changes: 2 additions & 2 deletions lib/src/telegram/models/audio.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Audio {
String? fileName;
String? mimeType;
int? fileSize;
PhotoSize? thumb;
PhotoSize? thumbnail;

Audio({
required this.fileId,
Expand All @@ -42,7 +42,7 @@ class Audio {
this.fileName,
this.mimeType,
this.fileSize,
this.thumb,
this.thumbnail,
});

@JsonKey(includeFromJson: false, includeToJson: false)
Expand Down
4 changes: 2 additions & 2 deletions lib/src/telegram/models/document.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ part of '../model.dart';
class Document {
String fileId;
String fileUniqueId;
PhotoSize? thumb;
PhotoSize? thumbnail;
String? fileName;
String? mimeType;
int? fileSize;
Document({
required this.fileId,
required this.fileUniqueId,
this.thumb,
this.thumbnail,
this.fileName,
this.mimeType,
this.fileSize,
Expand Down
4 changes: 2 additions & 2 deletions lib/src/telegram/models/input_media_animation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class InputMediaAnimation implements InputMedia {
String? parseMode;
@override
List<MessageEntity>? captionEntities;
dynamic thumb; // InputFile or String
dynamic thumbnail; // InputFile or String
int? width;
int? height;
int? duration;
Expand All @@ -42,7 +42,7 @@ class InputMediaAnimation implements InputMedia {
InputMediaAnimation(
{this.type = InputMedia.typeAnimation,
required this.media,
this.thumb,
this.thumbnail,
this.caption,
this.parseMode,
this.captionEntities,
Expand Down
4 changes: 2 additions & 2 deletions lib/src/telegram/models/input_media_audio.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ class InputMediaAudio implements InputMedia {
String? parseMode;
@override
List<MessageEntity>? captionEntities;
dynamic thumb; // InputFile or String
dynamic thumbnail; // InputFile or String
int? duration;
String? performer;
String? title;

InputMediaAudio({
this.type = InputMedia.typeAudio,
required this.media,
this.thumb,
this.thumbnail,
this.caption,
this.parseMode,
this.captionEntities,
Expand Down
4 changes: 2 additions & 2 deletions lib/src/telegram/models/input_media_document.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ class InputMediaDocument implements InputMedia {
String? parseMode;
@override
List<MessageEntity>? captionEntities;
dynamic thumb; // InputFile or String
dynamic thumbnail; // InputFile or String
bool? disableContentTypeDetection;
InputMediaDocument({
this.type = InputMedia.typeDocument,
required this.media,
this.thumb,
this.thumbnail,
this.caption,
this.parseMode,
this.captionEntities,
Expand Down
4 changes: 2 additions & 2 deletions lib/src/telegram/models/input_media_video.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class InputMediaVideo implements InputMedia {
String? parseMode;
@override
List<MessageEntity>? captionEntities;
dynamic thumb; // InputFile or String
dynamic thumbnail; // InputFile or String
int? width;
int? height;
int? duration;
Expand All @@ -46,7 +46,7 @@ class InputMediaVideo implements InputMedia {
this.caption,
this.parseMode,
this.captionEntities,
this.thumb,
this.thumbnail,
this.width,
this.height,
this.duration,
Expand Down
4 changes: 2 additions & 2 deletions lib/src/telegram/models/sticker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Sticker {
int height;
bool isAnimated;
bool isVideo;
PhotoSize? thumb;
PhotoSize? thumbnail;
String? emoji;
String? setName;
File? premiumAnimation;
Expand All @@ -44,7 +44,7 @@ class Sticker {
required this.height,
required this.isAnimated,
required this.isVideo,
this.thumb,
this.thumbnail,
this.emoji,
this.setName,
this.premiumAnimation,
Expand Down
4 changes: 2 additions & 2 deletions lib/src/telegram/models/sticker_set.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ class StickerSet {
bool isAnimated;
bool isVideo;
List<Sticker> stickers;
PhotoSize? thumb;
PhotoSize? thumbnail;
StickerSet({
required this.name,
required this.title,
required this.stickerType,
required this.isAnimated,
required this.isVideo,
required this.stickers,
this.thumb,
this.thumbnail,
});
factory StickerSet.fromJson(Map<String, dynamic> json) =>
_$StickerSetFromJson(json);
Expand Down
4 changes: 2 additions & 2 deletions lib/src/telegram/models/video.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Video {
int width;
int height;
int duration;
PhotoSize? thumb;
PhotoSize? thumbnail;
String? fileName;
String? mimeType;
int? fileSize;
Expand All @@ -39,7 +39,7 @@ class Video {
required this.width,
required this.height,
required this.duration,
this.thumb,
this.thumbnail,
this.fileName,
this.mimeType,
this.fileSize,
Expand Down
Loading

0 comments on commit 1fb6822

Please sign in to comment.