/// <summary> /// Deserializes the specified response text pairs. /// </summary> /// <param name="response">The response.</param> /// <returns> /// The deserialized response. /// </returns> public IMpdFile Deserialize(IReadOnlyList <KeyValuePair <string, string> > response) { return(MpdFile.Create(response, 0).mpdFile); }
/// <summary> /// Deserializes the specified response text pairs. /// </summary> /// <param name="response">The response.</param> /// <returns> /// The deserialized response. /// </returns> public IEnumerable <IMpdFile> Deserialize(IReadOnlyList <KeyValuePair <string, string> > response) { var results = response.Select(line => MpdFile.Create(line.Value, int.Parse(line.Key))); return(results); }