using System; using System.Collections.Generic; namespace RadarrSharp.Helpers { public static class RadarrExtensions { public static Tuple ToTuple(this object value, string key) { if (value == null) return null; return new Tuple(key, value.ToString()); } public static List> ToList(this Tuple tuple) { if (tuple == null) return null; return new List>() { tuple }; } public static List> ParamList(params Tuple[] tuples) { if (tuples == null) return null; var combinedTuples = new List>(); foreach (var p in tuples) { combinedTuples.Add(p); } return combinedTuples; } } }