public Task <ListPage <Asset> > ListAssetsOnChild(ParentResourceType parentType, string parentID, ResourceType type, string ID, ListArgsPageOnly args, string token) => ListAsync <Asset>(args, token, "assets", parentType.ToString(), parentID, type.ToString(), ID);
public Task <ListPage <Document <T> > > ListDocumentsOnChild <T>(string schemaID, ParentResourceType parentType, string parentID, ResourceType type, string ID, ListArgsPageOnly args, string token) => ListAsync <Document <T> >(args, token, "schemas", schemaID, "documents", parentType.ToString(), parentID, type.ToString(), ID);
// this one is wierd //public Task DeleteAssetAssignment(AssetAssignment assignment, string token); public Task <ListPage <Asset> > ListAssets(ResourceType type, string ID, ListArgsPageOnly args, string token) => ListAsync <Asset>(args, token, "assets", type.ToString(), ID);
protected async Task <ListPage <T> > ListAsync <T>(ListArgsPageOnly args, string token, params string[] pathSegments) { return(await BuildRequest(token, pathSegments) .SetQueryParams(new { page = args.Page, pageSize = args.PageSize }) .GetJsonAsync <ListPage <T> >()); }