-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#380) events: add the dtos and udpate studnet service client interface
- Loading branch information
1 parent
7f2021a
commit 8093c04
Showing
4 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
MiniSpace.Services.Events/src/MiniSpace.Services.Events.Application/DTO/EducationDto.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
namespace MiniSpace.Services.Events.Application.DTO | ||
{ | ||
[ExcludeFromCodeCoverage] | ||
public class EducationDto | ||
{ | ||
public string InstitutionName { get; set; } | ||
public string Degree { get; set; } | ||
public DateTime StartDate { get; set; } | ||
public DateTime EndDate { get; set; } | ||
public string Description { get; set; } | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
...Space.Services.Events/src/MiniSpace.Services.Events.Application/DTO/UserFromServiceDto.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
|
||
namespace MiniSpace.Services.Events.Application.DTO | ||
{ | ||
[ExcludeFromCodeCoverage] | ||
public class UserFromServiceDto | ||
{ | ||
public Guid Id { get; set; } | ||
public string Email { get; set; } | ||
public string FirstName { get; set; } | ||
public string LastName { get; set; } | ||
public string ProfileImageUrl { get; set; } | ||
public string Description { get; set; } | ||
public DateTime? DateOfBirth { get; set; } | ||
public bool EmailNotifications { get; set; } | ||
public bool IsBanned { get; set; } | ||
public string State { get; set; } | ||
public DateTime CreatedAt { get; set; } | ||
public string ContactEmail { get; set; } | ||
public string BannerUrl { get; set; } | ||
public string PhoneNumber { get; set; } | ||
public IEnumerable<string> Languages { get; set; } | ||
public IEnumerable<string> Interests { get; set; } | ||
public IEnumerable<EducationDto> Education { get; set; } | ||
public IEnumerable<WorkDto> Work { get; set; } | ||
public bool IsTwoFactorEnabled { get; set; } | ||
public string TwoFactorSecret { get; set; } | ||
public IEnumerable<Guid> InterestedInEvents { get; set; } | ||
public IEnumerable<Guid> SignedUpEvents { get; set; } | ||
public string Country { get; set; } | ||
public string City { get; set; } | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
MiniSpace.Services.Events/src/MiniSpace.Services.Events.Application/DTO/WorkDto.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
namespace MiniSpace.Services.Events.Application.DTO | ||
{ | ||
[ExcludeFromCodeCoverage] | ||
public class WorkDto | ||
{ | ||
public string Company { get; set; } | ||
public string Position { get; set; } | ||
public DateTime StartDate { get; set; } | ||
public DateTime EndDate { get; set; } | ||
public string Description { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters