public IRestCollection GetArtistsCollection <TStem>() { IRestDirectory directory = GetDirectoryFromRoots(typeof(ArtistsRoot <TStem>)); var restCollection = (IRestCollection)directory.GetChild("Artists"); return(restCollection); }
public static IRestCollection GetCollection([NotNull] this IRestDirectory directory, [NotNull] string startResourceName) { return(directory.GetChild(startResourceName).AsCollection()); }
public static IRestScalar GetScalar([NotNull] this IRestDirectory directory, [NotNull] string startResourceName) { return(directory.GetChild(startResourceName).AsScalar()); }
public static IRestItem GetItem([NotNull] this IRestDirectory directory, [NotNull] string startResourceName) { return(directory.GetChild(startResourceName).AsItem()); }