@@ -29,9 +29,8 @@ public final class TDLibSettings {
29
29
private String deviceModel ;
30
30
private String systemVersion ;
31
31
private String applicationVersion ;
32
- private boolean enableStorageOptimizer ;
33
- private boolean ignoreFileNames ;
34
32
33
+ @ Deprecated
35
34
private TDLibSettings (boolean useTestDatacenter ,
36
35
Path databaseDirectoryPath ,
37
36
Path downloadedFilesDirectoryPath ,
@@ -45,6 +44,31 @@ private TDLibSettings(boolean useTestDatacenter,
45
44
String applicationVersion ,
46
45
boolean enableStorageOptimizer ,
47
46
boolean ignoreFileNames ) {
47
+ this (useTestDatacenter ,
48
+ databaseDirectoryPath ,
49
+ downloadedFilesDirectoryPath ,
50
+ fileDatabaseEnabled ,
51
+ chatInfoDatabaseEnabled ,
52
+ messageDatabaseEnabled ,
53
+ apiToken ,
54
+ systemLanguageCode ,
55
+ deviceModel ,
56
+ systemVersion ,
57
+ applicationVersion
58
+ );
59
+ }
60
+
61
+ private TDLibSettings (boolean useTestDatacenter ,
62
+ Path databaseDirectoryPath ,
63
+ Path downloadedFilesDirectoryPath ,
64
+ boolean fileDatabaseEnabled ,
65
+ boolean chatInfoDatabaseEnabled ,
66
+ boolean messageDatabaseEnabled ,
67
+ APIToken apiToken ,
68
+ String systemLanguageCode ,
69
+ String deviceModel ,
70
+ String systemVersion ,
71
+ String applicationVersion ) {
48
72
this .useTestDatacenter = useTestDatacenter ;
49
73
this .databaseDirectoryPath = databaseDirectoryPath ;
50
74
this .downloadedFilesDirectoryPath = downloadedFilesDirectoryPath ;
@@ -56,8 +80,6 @@ private TDLibSettings(boolean useTestDatacenter,
56
80
this .deviceModel = deviceModel ;
57
81
this .systemVersion = systemVersion ;
58
82
this .applicationVersion = applicationVersion ;
59
- this .enableStorageOptimizer = enableStorageOptimizer ;
60
- this .ignoreFileNames = ignoreFileNames ;
61
83
}
62
84
63
85
public static TDLibSettings create (APIToken apiToken ) {
@@ -165,20 +187,22 @@ public void setApplicationVersion(String applicationVersion) {
165
187
this .applicationVersion = applicationVersion ;
166
188
}
167
189
190
+ @ Deprecated
168
191
public boolean isStorageOptimizerEnabled () {
169
- return enableStorageOptimizer ;
192
+ return false ;
170
193
}
171
194
195
+ @ Deprecated
172
196
public void setEnableStorageOptimizer (boolean enableStorageOptimizer ) {
173
- this .enableStorageOptimizer = enableStorageOptimizer ;
174
197
}
175
198
199
+ @ Deprecated
176
200
public boolean isIgnoreFileNames () {
177
- return ignoreFileNames ;
201
+ return false ;
178
202
}
179
203
204
+ @ Deprecated
180
205
public void setIgnoreFileNames (boolean ignoreFileNames ) {
181
- this .ignoreFileNames = ignoreFileNames ;
182
206
}
183
207
184
208
@ Override
@@ -193,7 +217,6 @@ public boolean equals(Object o) {
193
217
return useTestDatacenter == that .useTestDatacenter && fileDatabaseEnabled == that .fileDatabaseEnabled
194
218
&& chatInfoDatabaseEnabled == that .chatInfoDatabaseEnabled
195
219
&& messageDatabaseEnabled == that .messageDatabaseEnabled
196
- && enableStorageOptimizer == that .enableStorageOptimizer && ignoreFileNames == that .ignoreFileNames
197
220
&& Objects .equals (databaseDirectoryPath , that .databaseDirectoryPath ) && Objects .equals (
198
221
downloadedFilesDirectoryPath ,
199
222
that .downloadedFilesDirectoryPath
@@ -214,9 +237,7 @@ public int hashCode() {
214
237
systemLanguageCode ,
215
238
deviceModel ,
216
239
systemVersion ,
217
- applicationVersion ,
218
- enableStorageOptimizer ,
219
- ignoreFileNames
240
+ applicationVersion
220
241
);
221
242
}
222
243
@@ -234,8 +255,6 @@ public String toString() {
234
255
.add ("deviceModel='" + deviceModel + "'" )
235
256
.add ("systemVersion='" + systemVersion + "'" )
236
257
.add ("applicationVersion='" + applicationVersion + "'" )
237
- .add ("enableStorageOptimizer=" + enableStorageOptimizer )
238
- .add ("ignoreFileNames=" + ignoreFileNames )
239
258
.toString ();
240
259
}
241
260
}
0 commit comments