OSDN Git Service

Ver.1.0.0.185 Task187 Interface based design
[simplebackup/SBTGitRepository.git] / Main / SimpleBackup.ViewModels / EncodingInfoItemViewModel.cs
1 //-----------------------------------------------------------------------
2 // <copyright file="EncodingInfoItemViewModel.cs" company="Takayoshi Matsuyama">
3 //     Copyright (c) Takayoshi Matsuyama. All rights reserved.
4 // </copyright>
5 //-----------------------------------------------------------------------
6
7 // This file is part of Simple Backup.
8 //
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.
13 //
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.
18 //
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/>.
21
22 namespace SimpleBackup.ViewModels
23 {
24     using SimpleBackup.Core.Utilities;
25
26     /// <summary>
27     /// A view model for single encoding information item.
28     /// </summary>
29     internal class EncodingInfoItemViewModel
30     {
31         /// <summary>
32         /// Initializes a new instance of the <see cref="EncodingInfoItemViewModel"/> class.
33         /// </summary>
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)
37         {
38             encodingKeyName.ThrowsArgumentExceptionIfNullOrEmpty("encodingKeyName");
39             encodingDisplayName.ThrowsArgumentExceptionIfNullOrEmpty("encodingDisplayName");
40
41             this.EncodingKeyName = encodingKeyName;
42             this.EncodingDisplayName = encodingDisplayName;
43         }
44
45         /// <summary>
46         /// Gets the name of the encoding key.
47         /// </summary>
48         public string EncodingKeyName { get; private set; }
49
50         /// <summary>
51         /// Gets the display name of the encoding.
52         /// </summary>
53         public string EncodingDisplayName { get; private set; }
54     }
55 }