public static PlainList <T> EmptyList(string uri) { PlainList <T> list = new PlainList <T> { MetaData = new MetaData() { Uri = uri } }; return(list); }
/// <summary> /// Get a plain list of items /// </summary> /// <typeparam name="T">PlainList type</typeparam> /// <param name="application">Url to get</param> /// <param name="path">Json path to the list in the returned object (e.g. "ocs.data.users")</param> /// <returns>PlainList<typeparamref name="T"/></returns> public async Task <PlainList <T> > GetPlainListAsync <T>(string application, string path) { JObject data = await GetAsync(application); PlainList <T> result = new PlainList <T>() { Path = path }; return(result.Convert(data)); }