Import settings from Riot - not all fonctional of course

This commit is contained in:
Benoit Marty
2019-04-02 18:08:43 +02:00
parent b9b8527b38
commit 6830957d31
123 changed files with 12318 additions and 7 deletions

View File

@ -19,6 +19,7 @@ package im.vector.matrix.android.api.session
import androidx.annotation.MainThread
import im.vector.matrix.android.api.auth.data.SessionParams
import im.vector.matrix.android.api.session.content.ContentUrlResolver
import im.vector.matrix.android.api.session.crypto.CryptoService
import im.vector.matrix.android.api.session.group.GroupService
import im.vector.matrix.android.api.session.room.RoomService
import im.vector.matrix.android.api.session.user.UserService
@ -27,7 +28,7 @@ import im.vector.matrix.android.api.session.user.UserService
* This interface defines interactions with a session.
* An instance of a session will be provided by the SDK.
*/
interface Session : RoomService, GroupService, UserService {
interface Session : RoomService, GroupService, UserService, CryptoService {
/**
* The params associated to the session
@ -69,5 +70,4 @@ interface Session : RoomService, GroupService, UserService {
// Not used at the moment
interface Listener
}

View File

@ -0,0 +1,23 @@
/*
* Copyright 2019 New Vector Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package im.vector.matrix.android.api.session.crypto
interface CryptoService {
// Not supported for the moment
fun isCryptoEnabled() = false
}