Exemplo n.º 1
0
        public AutoDownloadPreferences UpdateAnimationsMode(AutoDownloadMode mode)
        {
            var preferences = new AutoDownloadPreferences();

            preferences._photos              = _photos;
            preferences._videos              = _videos;
            preferences._maximumVideoSize    = _maximumVideoSize;
            preferences._documents           = _documents;
            preferences._maximumDocumentSize = _maximumDocumentSize;
            preferences._voiceNotes          = _voiceNotes;
            preferences._videoNotes          = _videoNotes;
            preferences._animations          = mode;
            return(preferences);
        }
Exemplo n.º 2
0
        public AutoDownloadPreferences UpdateDisabled(bool disabled)
        {
            var preferences = new AutoDownloadPreferences();

            preferences._disabled            = disabled;
            preferences._photos              = _photos;
            preferences._videos              = _videos;
            preferences._maximumVideoSize    = _maximumVideoSize;
            preferences._documents           = _documents;
            preferences._maximumDocumentSize = _maximumDocumentSize;
            preferences._voiceNotes          = _voiceNotes;
            preferences._videoNotes          = _videoNotes;
            preferences._animations          = _animations;
            return(preferences);
        }