forked from LeanKit/LeanKit.API.Client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTemplate.cs
More file actions
49 lines (44 loc) · 1.04 KB
/
Template.cs
File metadata and controls
49 lines (44 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
namespace LeanKit.Models
{
public class TemplateListResponse
{
public TemplateListResponse()
{
Categories = new List<Category>();
}
public List<Category> Categories { get; set; }
public class Category
{
public Category()
{
Templates = new List<Template>();
}
public long Id { get; set; }
public string Name { get; set; }
public List<Template> Templates { get; set; }
}
public class Template
{
public long Id { get; set; }
public string Name { get; set; }
public string Description { get; set; }
public bool IsEnabled { get; set; }
public bool IsGlobal { get; set; }
}
}
public class TemplateCreateRequest
{
[JsonConverter(typeof(Utils.BigIntConverter))]
public long BoardId { get; set; }
public string TemplateName { get; set; }
public string TemplateDescription { get; set; }
public bool IncludeCards { get; set; }
}
public class TemplateCreateResponse
{
public long Id { get; set; }
}
}