-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathAnswers.cs
More file actions
35 lines (31 loc) · 924 Bytes
/
Answers.cs
File metadata and controls
35 lines (31 loc) · 924 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
using System.Collections.Generic;
using ServiceStack;
using ServiceStack.DataAnnotations;
using StackApis.ServiceModel.Types;
namespace StackApis.ServiceModel
{
[Description("Get a list of Answers for a Question")]
[Route("/answers/{QuestionId}")]
public class GetAnswers : IReturn<GetAnswersResponse>
{
public int QuestionId { get; set; }
}
public class GetAnswersResponse
{
public Answer Ansnwer { get; set; }
}
public class AnswersResponse
{
public List<Answer> Items { get; set; }
public bool HasMore { get; set; }
public int QuotaMax { get; set; }
public int QuotaRemaining { get; set; }
}
public class QuestionsResponse
{
public List<Question> Items { get; set; }
public bool HasMore { get; set; }
public int QuotaMax { get; set; }
public int QuotaRemaining { get; set; }
}
}