diff options
author | Joas Schilling <coding@schilljs.com> | 2016-07-18 15:11:44 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-07-18 15:11:44 +0200 |
commit | b1d652e8b05f6edd65aadc57a39e1738b036f5d3 (patch) | |
tree | 928c340a90e918253b673f4935d89a949f231a32 /lib/public/IRequest.php | |
parent | 3e00edff990a9255f6e71b08f1e5ff43b4e3a95c (diff) | |
download | nextcloud-server-b1d652e8b05f6edd65aadc57a39e1738b036f5d3.tar.gz nextcloud-server-b1d652e8b05f6edd65aadc57a39e1738b036f5d3.zip |
Copy the regexes to the public interface
Diffstat (limited to 'lib/public/IRequest.php')
-rw-r--r-- | lib/public/IRequest.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/public/IRequest.php b/lib/public/IRequest.php index 86756413cd8..4db1c18b9c1 100644 --- a/lib/public/IRequest.php +++ b/lib/public/IRequest.php @@ -61,6 +61,20 @@ namespace OCP; * @since 6.0.0 */ interface IRequest { + /** + * @since 9.1.0 + */ + const USER_AGENT_CLIENT_ANDROID = '/^Mozilla\/5\.0 \(Android\) ownCloud\-android.*$/'; + + /** + * @since 9.1.0 + */ + const USER_AGENT_CLIENT_DESKTOP = '/^Mozilla\/5\.0 \([A-Za-z ]+\) (mirall|csyncoC)\/.*$/'; + + /** + * @since 9.1.0 + */ + const USER_AGENT_CLIENT_IOS = '/^Mozilla\/5\.0 \(iOS\) ownCloud\-iOS.*$/'; /** * @param string $name |