Ejemplo n.º 1
0
 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);
Ejemplo n.º 2
0
 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);
Ejemplo n.º 3
0
 // 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);
Ejemplo n.º 4
0
 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> >());
 }