Skip to content

Commit

Permalink
Merge pull request #48 from Brixel/feature/#32
Browse files Browse the repository at this point in the history
feat: map state to output
  • Loading branch information
BerendWouters authored Jul 18, 2023
2 parents 63381db + af16d65 commit de2be9e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion BrixelAPI.SpaceAPI/Schema/Schema.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public partial class SpaceApi
/// <summary>
/// Contact information about your space
/// </summary>
public partial class Contact
public class Contact
{
/// <summary>
/// E-mail address for contacting your space. If this is a mailing list consider to use the
Expand Down

0 comments on commit de2be9e

Please sign in to comment.