Package it.tdlight.jni
Class TdApi.AutoDownloadSettings
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.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 int
CONSTRUCTOR
boolean
isAutoDownloadEnabled
True, if the auto-download is enabled.int
maxOtherFileSize
The maximum size of other file types to be auto-downloaded.int
maxPhotoFileSize
The maximum size of a photo file to be auto-downloaded.int
maxVideoFileSize
The maximum size of a video file to be auto-downloaded.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. -
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.AutoDownloadSettings(DataInput input)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutputStream output)
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. -
maxVideoFileSize
public int maxVideoFileSizeThe maximum size of a video file to be auto-downloaded. -
maxOtherFileSize
public int maxOtherFileSizeThe maximum size of other file types to be auto-downloaded. -
videoUploadBitrate
public int videoUploadBitrateThe maximum suggested bitrate for uploaded videos. -
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:
- Constant Field Values
-
-
Constructor Details
-
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
- boolean True, if the auto-download is enabled.maxPhotoFileSize
- int The maximum size of a photo file to be auto-downloaded.maxVideoFileSize
- int The maximum size of a video file to be auto-downloaded.maxOtherFileSize
- int The maximum size of other file types to be auto-downloaded.videoUploadBitrate
- int The maximum suggested bitrate for uploaded videos.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
- 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()
-