-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGetFullStatusResponse.cs
More file actions
43 lines (39 loc) · 1.3 KB
/
GetFullStatusResponse.cs
File metadata and controls
43 lines (39 loc) · 1.3 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
using System.Linq;
using Schema.v14;
namespace BrixelAPI.SpaceState.Features.GetFullStatus
{
public class GetFullStatusResponse : SpaceApi
{
public GetFullStatusResponse(Domain.SpaceStateAggregate.SpaceState spaceState)
{
Space = spaceState.Space;
Logo = spaceState.Logo;
Url = spaceState.Url;
Location = new Location()
{
Address = spaceState.Location.Address,
Lat = spaceState.Location.Lat,
Lon = spaceState.Location.Lon
};
Spacefed = new Spacefed()
{
Spacenet = spaceState.Spacefed.Spacenet,
Spacesaml = spaceState.Spacefed.Spacesaml
};
Contact = new Contact()
{
Email = spaceState.Contact.Email,
Twitter = spaceState.Contact.Twitter,
Foursquare = spaceState.Contact.Foursquare,
Facebook = spaceState.Contact.Facebook,
Mastodon = spaceState.Contact.Mastodon
};
State = new State()
{
Open = spaceState.State.Open,
Lastchange = spaceState.State.Lastchange
};
Projects = spaceState.Projects.ToArray();
}
}
}