Merge pull request #6932 from nextcloud/constants-for-talk-useragents

Define constants for the talk user agents
This commit is contained in:
Roeland Jago Douma 2017-10-30 17:57:28 +01:00 committed by GitHub
commit 73aef992c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -68,6 +68,11 @@ interface IRequest {
*/
const USER_AGENT_CLIENT_ANDROID = '/^Mozilla\/5\.0 \(Android\) ownCloud\-android.*$/';
/**
* @since 13.0.0
*/
const USER_AGENT_TALK_ANDROID = '/^Mozilla\/5\.0 \(Android\) Nextcloud\-Talk v.*$/';
/**
* @since 9.1.0
*/
@ -78,6 +83,11 @@ interface IRequest {
*/
const USER_AGENT_CLIENT_IOS = '/^Mozilla\/5\.0 \(iOS\) (ownCloud|Nextcloud)\-iOS.*$/';
/**
* @since 13.0.0
*/
const USER_AGENT_TALK_IOS = '/^Mozilla\/5\.0 \(iOS\) Nextcloud\-Talk v.*$/';
/**
* @param string $name
*