/// <summary>
 /// Creates new instance of application settings query command for set application
 /// settings request. 
 /// </summary>
 /// <param name="settings"></param>
 /// <remarks>This method takes snapshot of current application settings state. Any further changes on settings will not be noticed.</remarks>
 public AppSettingsQueryCommand(ApplicationSettings settings)
     : base(SetActionName, CommandType.Action)
 {
     var list = new List<KeyValuePair<string, string>>();
     foreach (var o in settings.Changeset)
     {
         list.Add(new KeyValuePair<string, string>("s", o.Key));
         list.Add(new KeyValuePair<string, string>("v", GetValue(o.Value)));
     }
     Parameters = list;
 }
Exemple #2
0
 protected internal WebuiSettings(ApplicationSettings parent)
     : base(parent)
 {
 }
 protected internal BitTorrentSettings(ApplicationSettings parent)
     : base(parent)
 {
 }
Exemple #4
0
 protected internal ProxySettings(ApplicationSettings parent)
     : base(parent)
 {
 }