public static class TdApi.AutoDownloadSettings extends TdApi.Object
Modifier and Type | Field and Description |
---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
isAutoDownloadEnabled
True, if the auto-download is enabled.
|
int |
maxOtherFileSize
The maximum size of other file types to be auto-downloaded, in bytes.
|
int |
maxPhotoFileSize
The maximum size of a photo file to be auto-downloaded, in bytes.
|
int |
maxVideoFileSize
The maximum size of a video file to be auto-downloaded, in bytes.
|
boolean |
preloadLargeVideos
True, if the beginning of video files needs to be preloaded for instant playback.
|
boolean |
preloadNextAudio
True, if the next audio track needs to be preloaded while the user is listening to an audio file.
|
boolean |
useLessDataForCalls
True, if "use less data for calls" option needs to be enabled.
|
int |
videoUploadBitrate
The maximum suggested bitrate for uploaded videos, in kbit/s.
|
Constructor and Description |
---|
AutoDownloadSettings()
Contains auto-download settings.
|
AutoDownloadSettings(boolean isAutoDownloadEnabled,
int maxPhotoFileSize,
int maxVideoFileSize,
int maxOtherFileSize,
int videoUploadBitrate,
boolean preloadLargeVideos,
boolean preloadNextAudio,
boolean useLessDataForCalls)
Contains auto-download settings.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public boolean isAutoDownloadEnabled
public int maxPhotoFileSize
public int maxVideoFileSize
public int maxOtherFileSize
public int videoUploadBitrate
public boolean preloadLargeVideos
public boolean preloadNextAudio
public boolean useLessDataForCalls
public static final int CONSTRUCTOR
public AutoDownloadSettings()
public AutoDownloadSettings(boolean isAutoDownloadEnabled, int maxPhotoFileSize, int maxVideoFileSize, int maxOtherFileSize, int videoUploadBitrate, boolean preloadLargeVideos, boolean preloadNextAudio, boolean useLessDataForCalls)
isAutoDownloadEnabled
- True, if the auto-download is enabled.maxPhotoFileSize
- The maximum size of a photo file to be auto-downloaded, in bytes.maxVideoFileSize
- The maximum size of a video file to be auto-downloaded, in bytes.maxOtherFileSize
- The maximum size of other file types to be auto-downloaded, in bytes.videoUploadBitrate
- The maximum suggested bitrate for uploaded videos, in kbit/s.preloadLargeVideos
- True, if the beginning of video files needs to be preloaded for instant playback.preloadNextAudio
- True, if the next audio track needs to be preloaded while the user is listening to an audio file.useLessDataForCalls
- True, if "use less data for calls" option needs to be enabled.public int getConstructor()
getConstructor
in class TdApi.Object