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.
|
long |
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.
|
long |
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 |
preloadStories
True, if stories needs to be preloaded.
|
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,
long maxVideoFileSize,
long maxOtherFileSize,
int videoUploadBitrate,
boolean preloadLargeVideos,
boolean preloadNextAudio,
boolean preloadStories,
boolean useLessDataForCalls)
Contains auto-download settings.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic boolean isAutoDownloadEnabled
public int maxPhotoFileSize
public long maxVideoFileSize
public long maxOtherFileSize
public int videoUploadBitrate
public boolean preloadLargeVideos
public boolean preloadNextAudio
public boolean preloadStories
public boolean useLessDataForCalls
public static final int CONSTRUCTOR
public AutoDownloadSettings()
public AutoDownloadSettings(boolean isAutoDownloadEnabled,
int maxPhotoFileSize,
long maxVideoFileSize,
long maxOtherFileSize,
int videoUploadBitrate,
boolean preloadLargeVideos,
boolean preloadNextAudio,
boolean preloadStories,
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.preloadStories - True, if stories needs to be preloaded.useLessDataForCalls - True, if "use less data for calls" option needs to be enabled.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object