/* * Copyright (c) 2020 ETH Zürich, Educational Development and Technology (LET) * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ using System; using System.Collections.Generic; using SafeExamBrowser.Settings.Server; namespace SafeExamBrowser.Server.Contracts { /// /// Defines the communication options with a server. /// public interface IServerProxy { /// /// TODO: Return API as well or re-load in proxy instance of client? /// Attempts to initialize a connection to the server. If successful, returns a OAuth2 token as response value. /// ServerResponse Connect(); /// /// /// ServerResponse Disconnect(); /// /// /// ServerResponse> GetAvailableExams(); /// /// /// ServerResponse GetConfigurationFor(Exam exam); /// /// Initializes the server settings to be used for communication. /// void Initialize(ServerSettings settings); /// /// /// ServerResponse SendSessionInfo(string sessionId); } }