Package org.drinkless.tdlib
Class TdApi.AutoDownloadSettings
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.AutoDownloadSettings
-
- Enclosing class:
- TdApi
public static class TdApi.AutoDownloadSettings extends TdApi.Object
Contains auto-download settings.
-
-
Field Summary
Fields Modifier and Type Field Description static intCONSTRUCTORIdentifier uniquely determining type of the object.booleanisAutoDownloadEnabledTrue, if the auto-download is enabled.intmaxOtherFileSizeThe maximum size of other file types to be auto-downloaded, in bytes.intmaxPhotoFileSizeThe maximum size of a photo file to be auto-downloaded, in bytes.intmaxVideoFileSizeThe maximum size of a video file to be auto-downloaded, in bytes.booleanpreloadLargeVideosTrue, if the beginning of video files needs to be preloaded for instant playback.booleanpreloadNextAudioTrue, if the next audio track needs to be preloaded while the user is listening to an audio file.booleanuseLessDataForCallsTrue, if "use less data for calls" option needs to be enabled.intvideoUploadBitrateThe maximum suggested bitrate for uploaded videos, in kbit/s.
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
-
-
-
Field Detail
-
isAutoDownloadEnabled
public boolean isAutoDownloadEnabled
True, if the auto-download is enabled.
-
maxPhotoFileSize
public int maxPhotoFileSize
The maximum size of a photo file to be auto-downloaded, in bytes.
-
maxVideoFileSize
public int maxVideoFileSize
The maximum size of a video file to be auto-downloaded, in bytes.
-
maxOtherFileSize
public int maxOtherFileSize
The maximum size of other file types to be auto-downloaded, in bytes.
-
videoUploadBitrate
public int videoUploadBitrate
The maximum suggested bitrate for uploaded videos, in kbit/s.
-
preloadLargeVideos
public boolean preloadLargeVideos
True, if the beginning of video files needs to be preloaded for instant playback.
-
preloadNextAudio
public boolean preloadNextAudio
True, if the next audio track needs to be preloaded while the user is listening to an audio file.
-
useLessDataForCalls
public boolean useLessDataForCalls
True, if "use less data for calls" option needs to be enabled.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AutoDownloadSettings
public AutoDownloadSettings()
Contains auto-download settings.
-
AutoDownloadSettings
public AutoDownloadSettings(boolean isAutoDownloadEnabled, int maxPhotoFileSize, int maxVideoFileSize, int maxOtherFileSize, int videoUploadBitrate, boolean preloadLargeVideos, boolean preloadNextAudio, boolean useLessDataForCalls)Contains auto-download settings.- Parameters:
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.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-