Beispiel #1
0
 private void SetAllKeys(FieldConnector fd)
 {
     bandwidthPriority   = new CustomPair <int>(fd.GetApiAlias(nameof(bandwidthPriority)));
     downloadLimit       = new CustomPair <int>(fd.GetApiAlias(nameof(downloadLimit)));
     downloadLimited     = new CustomPair <bool>(fd.GetApiAlias(nameof(downloadLimited)));
     filesWanted         = new CustomPair <int[]>(fd.GetApiAlias(nameof(filesWanted)));
     filesUnwanted       = new CustomPair <int[]>(fd.GetApiAlias(nameof(filesUnwanted)));
     honorsSessionLimits = new CustomPair <bool>(fd.GetApiAlias(nameof(honorsSessionLimits)));
     ids            = new CustomPair <IDTorrent>(fd.GetApiAlias(nameof(ids)));
     labels         = new CustomPair <string[]>(fd.GetApiAlias(nameof(labels)));
     location       = new CustomPair <string>(fd.GetApiAlias(nameof(location)));
     peerLimit      = new CustomPair <int>(fd.GetApiAlias(nameof(peerLimit)));
     priorityHigh   = new CustomPair <int[]>(fd.GetApiAlias(nameof(priorityHigh)));
     priorityLow    = new CustomPair <int[]>(fd.GetApiAlias(nameof(priorityLow)));
     queuePosition  = new CustomPair <int>(fd.GetApiAlias(nameof(queuePosition)));
     seedIdleMode   = new CustomPair <int>(fd.GetApiAlias(nameof(seedIdleMode)));
     priorityNormal = new CustomPair <int[]>(fd.GetApiAlias(nameof(priorityNormal)));
     seedRatioMode  = new CustomPair <int>(fd.GetApiAlias(nameof(seedRatioMode)));
     seedIdleLimit  = new CustomPair <int>(fd.GetApiAlias(nameof(seedIdleLimit)));
     seedRatioLimit = new CustomPair <double>(fd.GetApiAlias(nameof(seedRatioLimit)));
     trackerAdd     = new CustomPair <string[]>(fd.GetApiAlias(nameof(trackerAdd)));
     trackerRemove  = new CustomPair <int[]>(fd.GetApiAlias(nameof(trackerRemove)));
     trackerReplace = new CustomPair <Dictionary <int, string> >(fd.GetApiAlias(nameof(trackerReplace)));
     uploadLimit    = new CustomPair <int>(fd.GetApiAlias(nameof(uploadLimit)));
     uploadLimited  = new CustomPair <bool>(fd.GetApiAlias(nameof(uploadLimited)));
 }
Beispiel #2
0
 public TorrentMutators(FieldConnector fieldConnector)
 {
     SetAllKeys(fieldConnector);
 }