-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathGenericResponse.cs
More file actions
25 lines (22 loc) · 908 Bytes
/
GenericResponse.cs
File metadata and controls
25 lines (22 loc) · 908 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
using Newtonsoft.Json;
using System.Collections.Generic;
namespace Stream.Models
{
/// <summary>Base class for read responses of <typeparamref name="T"/>.</summary>
public class GenericGetResponse<T> : ResponseBase
{
/// <summary>Container for <typeparamref name="T"/> objects.</summary>
public List<T> Results { get; set; }
/// <summary>The ranking expression used for scoring activities.</summary>
[JsonProperty("ranking_expr")]
public string RankingExpression { get; set; }
}
/// <summary>Base class for personalized read responses of <typeparamref name="T"/>.</summary>
public class PersonalizedGetResponse<T> : GenericGetResponse<T>
{
public int Limit { get; set; }
public string Next { get; set; }
public int Offset { get; set; }
public string Version { get; set; }
}
}