lucidiot/HabitSharp
lucidiot
/
HabitSharp
Archived
1
0
Fork 0

Add meta endpoint

This commit is contained in:
Lucidiot 2018-09-01 16:18:53 +02:00
parent b0a61ddbdc
commit 582b474747
No known key found for this signature in database
GPG Key ID: AE3F7205692FA205
2 changed files with 8 additions and 0 deletions

View File

@ -1,4 +1,5 @@
using System;
using System.Collections.Generic;
using RestSharp;
using HabitSharp.Managers;
@ -28,5 +29,11 @@ namespace HabitSharp
response.ErrorException);
return response.Data;
}
public Result<Dictionary<string, string>> GetModelPaths(string ModelName) {
var req = new RestRequest("models/{model}/paths");
req.AddUrlSegment("model", ModelName);
return this.Execute<Result<Dictionary<string, string>>>(req);
}
}
}

1
Tag.cs
View File

@ -2,6 +2,7 @@ using System;
namespace HabitSharp {
public class Tag {
public const string ModelName = "tag";
public Guid Id { get; set; }
public string Name { get; set; }
public bool Challenge { get; set; }