java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.AutoDownloadSettings
- Enclosing class:
- TdApi
Contains auto-download settings.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
boolean
True, if the auto-download is enabled.long
The maximum size of other file types to be auto-downloaded, in bytes.int
The maximum size of a photo file to be auto-downloaded, in bytes.long
The maximum size of a video file to be auto-downloaded, in bytes.boolean
True, if the beginning of video files needs to be preloaded for instant playback.boolean
True, if the next audio track needs to be preloaded while the user is listening to an audio file.boolean
True, if "use less data for calls" option needs to be enabled.int
The maximum suggested bitrate for uploaded videos, in kbit/s. -
Constructor Summary
ConstructorDescriptionContains auto-download settings.AutoDownloadSettings
(boolean isAutoDownloadEnabled, int maxPhotoFileSize, long maxVideoFileSize, long maxOtherFileSize, int videoUploadBitrate, boolean preloadLargeVideos, boolean preloadNextAudio, boolean useLessDataForCalls) Contains auto-download settings.AutoDownloadSettings
(DataInput input) Contains auto-download settings. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize, 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. -
useLessDataForCalls
public boolean useLessDataForCallsTrue, if "use less data for calls" option needs to be enabled. -
CONSTRUCTOR
public static final int CONSTRUCTOR- 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 useLessDataForCalls) Contains auto-download settings.- Parameters:
isAutoDownloadEnabled
- boolean True, if the auto-download is enabled.maxPhotoFileSize
- int The maximum size of a photo file to be auto-downloaded, in bytes.maxVideoFileSize
- long The maximum size of a video file to be auto-downloaded, in bytes.maxOtherFileSize
- long The maximum size of other file types to be auto-downloaded, in bytes.videoUploadBitrate
- int The maximum suggested bitrate for uploaded videos, in kbit/s.preloadLargeVideos
- boolean True, if the beginning of video files needs to be preloaded for instant playback.preloadNextAudio
- boolean True, if the next audio track needs to be preloaded while the user is listening to an audio file.useLessDataForCalls
- boolean True, if "use less data for calls" option needs to be enabled.
-
AutoDownloadSettings
Contains auto-download settings.- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-