-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModel.cs
More file actions
39 lines (35 loc) · 1.05 KB
/
Model.cs
File metadata and controls
39 lines (35 loc) · 1.05 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
using System.Xml.Linq;
namespace SimpletextingAPI.Models {
public class User
{
public string? ContactPhone { get; set; }
public string? FirstName { get; set; }
public string? LastName { get; set; }
public string? Office { get;set; }
public List<ContactList> Lists { get; set; } = new List<ContactList>();
public List<string> ListNames { get; set; } = new List<string>();
public string ListString
{
get
{
return string.Join(",", ListNames.OrderBy(x => x));
}
}
}
public class ContactList
{
private string? _listId;
public string? ListId {
get { return _listId ?? Id; }
set { _listId = value; }
}
public string? Id { get; set; }
public required string Name { get; set; }
}
public class ApiResponse<T>
{
public List<T>? Content { get; set; }
public int TotalPages { get; set; }
public long TotalElements { get; set; }
}
}