1
0
mirror of https://github.com/owncloud/android-library.git synced 2026-08-11 16:33:03 +00:00

Add method to know if server supports search users function

This commit is contained in:
masensio
2015-10-05 11:23:39 +02:00
committed by David A. Velasco
parent f02dffb1d3
commit c3f24e817e
@@ -43,6 +43,8 @@ public class OwnCloudVersion implements Comparable<OwnCloudVersion> {
public static final int MINIMUM_SERVER_VERSION_FOR_REMOTE_THUMBNAILS = 0x07080000; // 7.8.0
public static final int MINIMUM_VERSION_FOR_SEARCHING_USERS = 0x08020000; //8.2
public static final int VERSION_8 = 0x08000000; // 8.0
private static final int MAX_DOTS = 3;
@@ -138,6 +140,10 @@ public class OwnCloudVersion implements Comparable<OwnCloudVersion> {
public boolean isAfter8Version(){
return (mVersion >= VERSION_8);
}
public boolean isSearchUsersSupported() {
return (mVersion >= MINIMUM_VERSION_FOR_SEARCHING_USERS);
}
}