-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
51 changed files
with
411 additions
and
357 deletions.
There are no files selected for viewing
7 changes: 6 additions & 1 deletion
7
src/Inc.TeamAssistant.Appraiser.Model/Queries/GetActiveStory/GetActiveStoryResult.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 |
---|---|---|
@@ -1,5 +1,10 @@ | ||
using Inc.TeamAssistant.Appraiser.Model.Common; | ||
using Inc.TeamAssistant.Primitives; | ||
|
||
namespace Inc.TeamAssistant.Appraiser.Model.Queries.GetActiveStory; | ||
|
||
public sealed record GetActiveStoryResult(string TeamName, string CodeForConnect, StoryDto? Story); | ||
public sealed record GetActiveStoryResult(string TeamName, string CodeForConnect, StoryDto? Story) | ||
: IWithEmpty<GetActiveStoryResult> | ||
{ | ||
public static GetActiveStoryResult Empty { get; } = new(string.Empty, string.Empty, Story: null); | ||
} |
8 changes: 7 additions & 1 deletion
8
....TeamAssistant.Appraiser.Model/Queries/GetAssessmentHistory/GetAssessmentHistoryResult.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
using Inc.TeamAssistant.Primitives; | ||
|
||
namespace Inc.TeamAssistant.Appraiser.Model.Queries.GetAssessmentHistory; | ||
|
||
public sealed record GetAssessmentHistoryResult(IReadOnlyCollection<AssessmentHistoryDto> Items); | ||
public sealed record GetAssessmentHistoryResult(IReadOnlyCollection<AssessmentHistoryDto> Items) | ||
: IWithEmpty<GetAssessmentHistoryResult> | ||
{ | ||
public static GetAssessmentHistoryResult Empty { get; } = new(Array.Empty<AssessmentHistoryDto>()); | ||
} |
7 changes: 6 additions & 1 deletion
7
src/Inc.TeamAssistant.Appraiser.Model/Queries/GetStories/GetStoriesResult.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 |
---|---|---|
@@ -1,5 +1,10 @@ | ||
using Inc.TeamAssistant.Appraiser.Model.Common; | ||
using Inc.TeamAssistant.Primitives; | ||
|
||
namespace Inc.TeamAssistant.Appraiser.Model.Queries.GetStories; | ||
|
||
public sealed record GetStoriesResult(IReadOnlyCollection<StoryDto> Items); | ||
public sealed record GetStoriesResult(IReadOnlyCollection<StoryDto> Items) | ||
: IWithEmpty<GetStoriesResult> | ||
{ | ||
public static GetStoriesResult Empty { get; } = new(Array.Empty<StoryDto>()); | ||
} |
8 changes: 7 additions & 1 deletion
8
src/Inc.TeamAssistant.CheckIn.Model/Queries/GetMaps/GetMapsResult.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
using Inc.TeamAssistant.Primitives; | ||
|
||
namespace Inc.TeamAssistant.CheckIn.Model.Queries.GetMaps; | ||
|
||
public sealed record GetMapsResult(IReadOnlyCollection<MapDto> Items); | ||
public sealed record GetMapsResult(IReadOnlyCollection<MapDto> Items) | ||
: IWithEmpty<GetMapsResult> | ||
{ | ||
public static GetMapsResult Empty { get; } = new(Array.Empty<MapDto>()); | ||
} |
8 changes: 7 additions & 1 deletion
8
....TeamAssistant.Connector.Model/Queries/GetBotsByCurrentUser/GetBotsByCurrentUserResult.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
using Inc.TeamAssistant.Primitives; | ||
|
||
namespace Inc.TeamAssistant.Connector.Model.Queries.GetBotsByCurrentUser; | ||
|
||
public sealed record GetBotsByCurrentUserResult(IReadOnlyCollection<BotDto> Bots); | ||
public sealed record GetBotsByCurrentUserResult(IReadOnlyCollection<BotDto> Bots) | ||
: IWithEmpty<GetBotsByCurrentUserResult> | ||
{ | ||
public static GetBotsByCurrentUserResult Empty { get; } = new(Array.Empty<BotDto>()); | ||
} |
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
8 changes: 7 additions & 1 deletion
8
src/Inc.TeamAssistant.Connector.Model/Queries/GetTeamConnector/GetTeamConnectorResult.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 |
---|---|---|
@@ -1,6 +1,12 @@ | ||
using Inc.TeamAssistant.Primitives; | ||
|
||
namespace Inc.TeamAssistant.Connector.Model.Queries.GetTeamConnector; | ||
|
||
public sealed record GetTeamConnectorResult( | ||
string TeamName, | ||
string LinkForConnect, | ||
string Code); | ||
string Code) | ||
: IWithEmpty<GetTeamConnectorResult> | ||
{ | ||
public static GetTeamConnectorResult Empty { get; } = new(string.Empty, string.Empty, string.Empty); | ||
} |
8 changes: 7 additions & 1 deletion
8
src/Inc.TeamAssistant.Connector.Model/Queries/GetTeammates/GetTeammatesResult.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 |
---|---|---|
@@ -1,5 +1,11 @@ | ||
using Inc.TeamAssistant.Primitives; | ||
|
||
namespace Inc.TeamAssistant.Connector.Model.Queries.GetTeammates; | ||
|
||
public sealed record GetTeammatesResult( | ||
bool HasManagerAccess, | ||
IReadOnlyCollection<TeammateDto> Teammates); | ||
IReadOnlyCollection<TeammateDto> Teammates) | ||
: IWithEmpty<GetTeammatesResult> | ||
{ | ||
public static GetTeammatesResult Empty { get; } = new(false, Array.Empty<TeammateDto>()); | ||
} |
8 changes: 7 additions & 1 deletion
8
src/Inc.TeamAssistant.Connector.Model/Queries/GetWidgets/GetWidgetsResult.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
using Inc.TeamAssistant.Primitives; | ||
|
||
namespace Inc.TeamAssistant.Connector.Model.Queries.GetWidgets; | ||
|
||
public sealed record GetWidgetsResult(IReadOnlyCollection<WidgetDto> Widgets); | ||
public sealed record GetWidgetsResult(IReadOnlyCollection<WidgetDto> Widgets) | ||
: IWithEmpty<GetWidgetsResult> | ||
{ | ||
public static GetWidgetsResult Empty { get; } = new(Array.Empty<WidgetDto>()); | ||
} |
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
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
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
9 changes: 9 additions & 0 deletions
9
src/Inc.TeamAssistant.Constructor.Model/Commands/UpdateCalendar/UpdateCalendarResult.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,9 @@ | ||
using Inc.TeamAssistant.Primitives; | ||
|
||
namespace Inc.TeamAssistant.Constructor.Model.Commands.UpdateCalendar; | ||
|
||
public sealed record UpdateCalendarResult(Guid Id) | ||
: IWithEmpty<UpdateCalendarResult> | ||
{ | ||
public static UpdateCalendarResult Empty { get; } = new(Guid.Empty); | ||
} |
7 changes: 6 additions & 1 deletion
7
src/Inc.TeamAssistant.Constructor.Model/Queries/GetBotDetails/GetBotDetailsResult.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 |
---|---|---|
@@ -1,5 +1,10 @@ | ||
using Inc.TeamAssistant.Primitives; | ||
using Inc.TeamAssistant.Primitives.Bots; | ||
|
||
namespace Inc.TeamAssistant.Constructor.Model.Queries.GetBotDetails; | ||
|
||
public sealed record GetBotDetailsResult(IReadOnlyCollection<BotDetails> Items); | ||
public sealed record GetBotDetailsResult(IReadOnlyCollection<BotDetails> Items) | ||
: IWithEmpty<GetBotDetailsResult> | ||
{ | ||
public static GetBotDetailsResult Empty { get; } = new(Array.Empty<BotDetails>()); | ||
} |
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
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
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
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
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,6 @@ | ||
namespace Inc.TeamAssistant.Primitives; | ||
|
||
public interface IWithEmpty<out T> | ||
{ | ||
static abstract T Empty { get; } | ||
} |
8 changes: 7 additions & 1 deletion
8
src/Inc.TeamAssistant.RandomCoffee.Model/Queries/GetChats/GetChatsResult.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
using Inc.TeamAssistant.Primitives; | ||
|
||
namespace Inc.TeamAssistant.RandomCoffee.Model.Queries.GetChats; | ||
|
||
public sealed record GetChatsResult(IReadOnlyCollection<ChatDto> Items); | ||
public sealed record GetChatsResult(IReadOnlyCollection<ChatDto> Items) | ||
: IWithEmpty<GetChatsResult> | ||
{ | ||
public static GetChatsResult Empty { get; } = new(Array.Empty<ChatDto>()); | ||
} |
8 changes: 7 additions & 1 deletion
8
src/Inc.TeamAssistant.Reviewer.Model/Queries/GetAverageByTeam/GetAverageByTeamResult.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
using Inc.TeamAssistant.Primitives; | ||
|
||
namespace Inc.TeamAssistant.Reviewer.Model.Queries.GetAverageByTeam; | ||
|
||
public sealed record GetAverageByTeamResult(IReadOnlyCollection<ReviewAverageStatsDto> Items); | ||
public sealed record GetAverageByTeamResult(IReadOnlyCollection<ReviewAverageStatsDto> Items) | ||
: IWithEmpty<GetAverageByTeamResult> | ||
{ | ||
public static GetAverageByTeamResult Empty { get; } = new(Array.Empty<ReviewAverageStatsDto>()); | ||
} |
8 changes: 7 additions & 1 deletion
8
src/Inc.TeamAssistant.Reviewer.Model/Queries/GetHistoryByTeam/GetHistoryByTeamResult.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 |
---|---|---|
@@ -1,5 +1,11 @@ | ||
using Inc.TeamAssistant.Primitives; | ||
|
||
namespace Inc.TeamAssistant.Reviewer.Model.Queries.GetHistoryByTeam; | ||
|
||
public sealed record GetHistoryByTeamResult( | ||
IReadOnlyCollection<HistoryByTeamItemDto> Review, | ||
IReadOnlyCollection<HistoryByTeamItemDto> Requests); | ||
IReadOnlyCollection<HistoryByTeamItemDto> Requests) | ||
: IWithEmpty<GetHistoryByTeamResult> | ||
{ | ||
public static GetHistoryByTeamResult Empty { get; } = new(Array.Empty<HistoryByTeamItemDto>(), Array.Empty<HistoryByTeamItemDto>()); | ||
} |
8 changes: 7 additions & 1 deletion
8
src/Inc.TeamAssistant.Reviewer.Model/Queries/GetLastTasks/GetLastTasksResult.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
using Inc.TeamAssistant.Primitives; | ||
|
||
namespace Inc.TeamAssistant.Reviewer.Model.Queries.GetLastTasks; | ||
|
||
public sealed record GetLastTasksResult(IReadOnlyCollection<TaskForReviewDto> Items); | ||
public sealed record GetLastTasksResult(IReadOnlyCollection<TaskForReviewDto> Items) | ||
: IWithEmpty<GetLastTasksResult> | ||
{ | ||
public static GetLastTasksResult Empty { get; } = new(Array.Empty<TaskForReviewDto>()); | ||
} |
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
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
Oops, something went wrong.