From 81dd438642cdf13d81794fd1745497a18c5c5113 Mon Sep 17 00:00:00 2001 From: Joel Bennett Date: Tue, 3 Mar 2015 02:12:20 -0500 Subject: [PATCH] (GH-132) Add ChocolateySource class distinct from serialized source --- src/chocolatey/chocolatey.csproj | 1 + .../configuration/ChocolateySource.cs | 25 +++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 src/chocolatey/infrastructure.app/configuration/ChocolateySource.cs diff --git a/src/chocolatey/chocolatey.csproj b/src/chocolatey/chocolatey.csproj index b008ab60a3..379c389c23 100644 --- a/src/chocolatey/chocolatey.csproj +++ b/src/chocolatey/chocolatey.csproj @@ -90,6 +90,7 @@ + diff --git a/src/chocolatey/infrastructure.app/configuration/ChocolateySource.cs b/src/chocolatey/infrastructure.app/configuration/ChocolateySource.cs new file mode 100644 index 0000000000..0c03bda9a0 --- /dev/null +++ b/src/chocolatey/infrastructure.app/configuration/ChocolateySource.cs @@ -0,0 +1,25 @@ +// Copyright © 2015 - Present RealDimensions Software, LLC +// +// 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. + +namespace chocolatey.infrastructure.app.configuration +{ + public sealed class ChocolateySource + { + public string Id { get; set; } + public string Value { get; set; } + public bool Disabled { get; set; } + public bool Authenticated { get; set; } + } +}