Package org.drinkless.tdlib
Class TdApi.AutoDownloadSettings
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.AutoDownloadSettings
- Enclosing class:
- TdApi
Contains auto-download settings.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.booleanTrue, if the auto-download is enabled.longThe maximum size of other file types to be auto-downloaded, in bytes.intThe maximum size of a photo file to be auto-downloaded, in bytes.longThe maximum size of a video file to be auto-downloaded, in bytes.booleanTrue, if the beginning of video files needs to be preloaded for instant playback.booleanTrue, if the next audio track needs to be preloaded while the user is listening to an audio file.booleanTrue, if stories needs to be preloaded.booleanTrue, if "use less data for calls" option needs to be enabled.intThe maximum suggested bitrate for uploaded videos, in kbit/s. -
Constructor Summary
ConstructorsConstructorDescriptionContains 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. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
isAutoDownloadEnabled
public boolean isAutoDownloadEnabledTrue, if the auto-download is enabled. -
maxPhotoFileSize
public int maxPhotoFileSizeThe maximum size of a photo file to be auto-downloaded, in bytes. -
maxVideoFileSize
public long maxVideoFileSizeThe maximum size of a video file to be auto-downloaded, in bytes. -
maxOtherFileSize
public long maxOtherFileSizeThe maximum size of other file types to be auto-downloaded, in bytes. -
videoUploadBitrate
public int videoUploadBitrateThe maximum suggested bitrate for uploaded videos, in kbit/s. -
preloadLargeVideos
public boolean preloadLargeVideosTrue, if the beginning of video files needs to be preloaded for instant playback. -
preloadNextAudio
public boolean preloadNextAudioTrue, if the next audio track needs to be preloaded while the user is listening to an audio file. -
preloadStories
public boolean preloadStoriesTrue, if stories needs to be preloaded. -
useLessDataForCalls
public boolean useLessDataForCallsTrue, if "use less data for calls" option needs to be enabled. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
AutoDownloadSettings
public AutoDownloadSettings()Contains auto-download settings. -
AutoDownloadSettings
public AutoDownloadSettings(boolean isAutoDownloadEnabled, int maxPhotoFileSize, long maxVideoFileSize, long maxOtherFileSize, int videoUploadBitrate, boolean preloadLargeVideos, boolean preloadNextAudio, boolean preloadStories, 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.preloadStories- True, if stories needs to be preloaded.useLessDataForCalls- True, if "use less data for calls" option needs to be enabled.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-