Пример #1
0
        public IRestCollection GetArtistsCollection <TStem>()
        {
            IRestDirectory directory      = GetDirectoryFromRoots(typeof(ArtistsRoot <TStem>));
            var            restCollection = (IRestCollection)directory.GetChild("Artists");

            return(restCollection);
        }
Пример #2
0
 public static IRestCollection GetCollection([NotNull] this IRestDirectory directory, [NotNull] string startResourceName)
 {
     return(directory.GetChild(startResourceName).AsCollection());
 }
Пример #3
0
 public static IRestScalar GetScalar([NotNull] this IRestDirectory directory, [NotNull] string startResourceName)
 {
     return(directory.GetChild(startResourceName).AsScalar());
 }
Пример #4
0
 public static IRestItem GetItem([NotNull] this IRestDirectory directory, [NotNull] string startResourceName)
 {
     return(directory.GetChild(startResourceName).AsItem());
 }