seb-win-refactoring/SafeExamBrowser.Configuration/Settings/SettingsRepository.cs

37 lines
798 B
C#

/*
* Copyright (c) 2018 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 SafeExamBrowser.Contracts.Configuration.Settings;
namespace SafeExamBrowser.Configuration.Settings
{
public class SettingsRepository : ISettingsRepository
{
public ISettings Current { get; private set; }
public ISettings Load(Uri path)
{
// TODO
return LoadDefaults();
}
public ISettings LoadDefaults()
{
var settings = new Settings();
// TODO
settings.ServicePolicy = ServicePolicy.Optional;
Current = settings;
return settings;
}
}
}