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); }
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); }