-
Notifications
You must be signed in to change notification settings - Fork 0
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
5 changed files
with
73 additions
and
1 deletion.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...esxhin.AnimeManga.Domain/DTO/NotifyDTO.cs → ...n.AnimeManga.Domain/DTO/NotifyAnimeDTO.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
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,8 @@ | ||
namespace Cesxhin.AnimeManga.Domain.DTO | ||
{ | ||
public class NotifyMangaDTO | ||
{ | ||
public string Message { get; set; } | ||
public string Image { 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace Cesxhin.AnimeManga.Domain.DTO | ||
{ | ||
public class NotifyRequestAnimeDTO | ||
{ | ||
public string Message { get; set; } | ||
public string Image { 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace Cesxhin.AnimeManga.Domain.DTO | ||
{ | ||
public class NotifyRequestMangaDTO | ||
{ | ||
public string Message { get; set; } | ||
public string Image { 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
namespace Cesxhin.AnimeManga.Domain.DTO | ||
{ | ||
public class GenericNotify | ||
{ | ||
public string Message { get; set; } | ||
public string Image { get; set; } | ||
|
||
//convert NotifyAnimeDTO to GenericNotify | ||
public static GenericNotify NotifyAnimeDTOToGenericNotify(NotifyAnimeDTO notify) | ||
{ | ||
return new GenericNotify | ||
{ | ||
Message = notify.Message, | ||
Image = notify.Image | ||
}; | ||
} | ||
|
||
//convert NotifyMangaDTO to GenericNotify | ||
public static GenericNotify NotifyMangaDTOToGenericNotify(NotifyMangaDTO notify) | ||
{ | ||
return new GenericNotify | ||
{ | ||
Message = notify.Message, | ||
Image = notify.Image | ||
}; | ||
} | ||
|
||
//convert NotifyRequestAnimeDTO to GenericNotify | ||
public static GenericNotify NotifyRequestAnimeDTOToGenericNotify(NotifyRequestAnimeDTO notify) | ||
{ | ||
return new GenericNotify | ||
{ | ||
Message = notify.Message, | ||
Image = notify.Image | ||
}; | ||
} | ||
|
||
//convert NotifyRequestMangaDTO to GenericNotify | ||
public static GenericNotify NotifyRequestMangaDTOToGenericNotify(NotifyRequestMangaDTO notify) | ||
{ | ||
return new GenericNotify | ||
{ | ||
Message = notify.Message, | ||
Image = notify.Image | ||
}; | ||
} | ||
} | ||
} |