WingMan – Diff between revs 32 and 36

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 32 Rev 36
Line 1... Line 1...
1 using System.Collections.Generic; 1 using System.Collections.Generic;
2 using System.Xml.Serialization; 2 using ProtoBuf;
Line 3... Line 3...
3   3  
4 namespace WingMan.Bindings 4 namespace WingMan.Bindings
-   5 {
5 { 6 [ProtoContract]
6 public class KeyBindingExchange 7 public class KeyBindingExchange
7 { -  
8 [XmlIgnore] public static readonly XmlSerializer XmlSerializer = 8 {
Line 9... Line 9...
9 new XmlSerializer(typeof(KeyBindingExchange)); 9 private readonly List<string> _keyBindings = new List<string>();
10   10  
11 public KeyBindingExchange() 11 public KeyBindingExchange()
Line 12... Line 12...
12 { 12 {
13 } 13 }
14   14  
15 public KeyBindingExchange(string nick, List<KeyBinding> keyBindings) 15 public KeyBindingExchange(string nick, List<string> keyBindings) : this()
16 { 16 {
Line 17... Line 17...
17 Nick = nick; 17 Nick = nick;
Line -... Line 18...
-   18 KeyBindings = keyBindings;
18 KeyBindings = keyBindings; 19 }
-   20  
-   21 [ProtoMember(1)] public string Nick { get; set; }
-   22  
-   23 [ProtoMember(2)]
19 } 24 public List<string> KeyBindings
20   -  
21 public string Nick { get; set; } 25 {
-   26 get => _keyBindings;