Skip to content

Commit

Permalink
DevChatter#28 Added TODOs for this issue to make finding mappings eas…
Browse files Browse the repository at this point in the history
…ier later
  • Loading branch information
SimonGeering committed Aug 9, 2020
1 parent 727fc2f commit 4632975
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Infra.Twitch/Extensions/CredentialsExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ namespace ChatterBot.Infra.Twitch.Extensions
{
public static class CredentialsExtensions
{
// TODO: #28 Replace CredentialsExtensions with AutoMapper profiles.
public static ConnectionCredentials ToTwitchLib(
this TwitchCredentials credentials, IDataProtection dataProtection)
=> new ConnectionCredentials(credentials.Username,
Expand Down
1 change: 1 addition & 0 deletions src/Infra.Twitch/Extensions/DomainMappers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ namespace ChatterBot.Infra.Twitch.Extensions
{
public static class DomainMappers
{
// TODO: #28 Replace DomainMappers with AutoMapper profiles.
public static ChatMessage ToDomain(this TwitchLib.Client.Models.ChatMessage message) =>
new ChatMessage(DateTime.UtcNow,
message.DisplayName, message.ColorHex, message.Message);
Expand Down

0 comments on commit 4632975

Please sign in to comment.