1 //-----------------------------------------------------------------------
2 // <copyright file="EncodingInfoItemViewModel.cs" company="Takayoshi Matsuyama">
3 // Copyright (c) Takayoshi Matsuyama. All rights reserved.
5 //-----------------------------------------------------------------------
7 // This file is part of Simple Backup.
9 // Simple Backup is free software: you can redistribute it and/or modify
10 // it under the terms of the GNU General Public License as published by
11 // the Free Software Foundation, either version 3 of the License, or
12 // (at your option) any later version.
14 // Simple Backup is distributed in the hope that it will be useful,
15 // but WITHOUT ANY WARRANTY; without even the implied warranty of
16 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 // GNU General Public License for more details.
19 // You should have received a copy of the GNU General Public License
20 // along with Simple Backup. If not, see <http://www.gnu.org/licenses/>.
22 namespace SimpleBackup.ViewModels
24 using SimpleBackup.Core.Utilities;
27 /// A view model for single encoding information item.
29 internal class EncodingInfoItemViewModel
32 /// Initializes a new instance of the <see cref="EncodingInfoItemViewModel"/> class.
34 /// <param name="encodingKeyName">Name of the encoding key.</param>
35 /// <param name="encodingDisplayName">Display name of the encoding.</param>
36 public EncodingInfoItemViewModel(string encodingKeyName, string encodingDisplayName)
38 encodingKeyName.ThrowsArgumentExceptionIfNullOrEmpty("encodingKeyName");
39 encodingDisplayName.ThrowsArgumentExceptionIfNullOrEmpty("encodingDisplayName");
41 this.EncodingKeyName = encodingKeyName;
42 this.EncodingDisplayName = encodingDisplayName;
46 /// Gets the name of the encoding key.
48 public string EncodingKeyName { get; private set; }
51 /// Gets the display name of the encoding.
53 public string EncodingDisplayName { get; private set; }