forked from ServiceStack/ServiceStack.Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStats.cs
More file actions
38 lines (32 loc) · 869 Bytes
/
Copy pathStats.cs
File metadata and controls
38 lines (32 loc) · 869 Bytes
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
using System.Collections.Generic;
using ServiceStack.ServiceHost;
namespace RedisStackOverflow.ServiceModel
{
/// <summary>
/// Define your ServiceStack web service request (i.e. the Request DTO).
/// </summary>
[Route("/stats")]
public class Stats { }
public class SiteStats
{
public SiteStats()
{
this.TopTags = new List<Tag>();
}
public int QuestionsCount { get; set; }
public int AnswersCount { get; set; }
public List<Tag> TopTags { get; set; }
}
public class Tag
{
public string Name { get; set; }
public int Score { get; set; }
}
/// <summary>
/// Define your ServiceStack web service response (i.e. Response DTO).
/// </summary>
public class StatsResponse
{
public SiteStats Result { get; set; }
}
}