From af16d6506e3d1d634009f1f60a0ffa9ea6b7136f Mon Sep 17 00:00:00 2001 From: Berend Wouters Date: Tue, 18 Jul 2023 21:25:38 +0200 Subject: [PATCH] feat: map state to output --- .../Features/GetFullStatus/GetFullStatusResponse.cs | 8 ++++++-- BrixelAPI.SpaceAPI/Schema/Schema.cs | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/BrixelAPI.SpaceAPI/Features/GetFullStatus/GetFullStatusResponse.cs b/BrixelAPI.SpaceAPI/Features/GetFullStatus/GetFullStatusResponse.cs index d3955f2..c0e649b 100644 --- a/BrixelAPI.SpaceAPI/Features/GetFullStatus/GetFullStatusResponse.cs +++ b/BrixelAPI.SpaceAPI/Features/GetFullStatus/GetFullStatusResponse.cs @@ -27,11 +27,15 @@ public GetFullStatusResponse(Domain.SpaceStateAggregate.SpaceState spaceState) Contact = new Contact() { Email = spaceState.Contact.Email, - Twitter = spaceState.Contact.Twitter + Twitter = spaceState.Contact.Twitter, + Foursquare = spaceState.Contact.Foursquare, + Facebook = spaceState.Contact.Facebook, + Mastodon = spaceState.Contact.Mastodon }; State = new State() { - Open = spaceState.State.Open + Open = spaceState.State.Open, + Lastchange = spaceState.State.Lastchange }; Projects = spaceState.Projects.ToArray(); diff --git a/BrixelAPI.SpaceAPI/Schema/Schema.cs b/BrixelAPI.SpaceAPI/Schema/Schema.cs index bd22892..6a897e5 100644 --- a/BrixelAPI.SpaceAPI/Schema/Schema.cs +++ b/BrixelAPI.SpaceAPI/Schema/Schema.cs @@ -111,7 +111,7 @@ public partial class SpaceApi /// /// Contact information about your space /// -public partial class Contact +public class Contact { /// /// E-mail address for contacting your space. If this is a mailing list consider to use the