shikeying
2024-01-11 3b67e947e36133e2a40eb2737b15ea375e157ea0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
package com.walker.web.agent;
 
import java.util.Map;
 
public interface Capabilities {
    String UNKNOWN_BROWSCAP_VALUE = "Unknown";
 
    /**
     * Returns the browser value (e.g. Chrome)
     * @return the browser
     */
    String getBrowser();
 
    /**
     * Returns the browser type (e.g. Browser or Application)
     * @return the browser type
     */
    String getBrowserType();
 
    /**
     * Returns the major version of the browser (e.g. 55 in case of Chrome)
     * @return the browser major version
     */
    String getBrowserMajorVersion();
 
    /**
     * Returns the platform name (e.g. Android, iOS, Win7, Win10)
     * @return the platform
     */
    String getPlatform();
 
    /**
     * Returns the platform version (e.g. 4.2, 10 depending on what the platform is)
     * @return the platform version
     */
    String getPlatformVersion();
 
    /**
     * Returns the device type (e.g. Mobile Phone, Desktop, Tablet, Console, TV Device)
     * @return the device type
     */
    String getDeviceType();
 
    /**
     * Returns the value for the specified field.
     * @param field The field for which the value should be returned.
     * @return the value for the specified field.
     */
    String getValue(BrowsCapField field);
 
    /**
     * Returns the Map of values with the fields passed to the parser while loading
     * @return the map of values
     */
    Map<BrowsCapField, String> getValues();
}