Moved projects to their own separate subdirectories
This commit is contained in:
20
API/YABA.Common/DTOs/Bookmarks/BookmarkDTO.cs
Normal file
20
API/YABA.Common/DTOs/Bookmarks/BookmarkDTO.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using YABA.Common.DTOs.Tags;
|
||||
using YABA.Common.Interfaces;
|
||||
|
||||
namespace YABA.Common.DTOs.Bookmarks
|
||||
{
|
||||
public class BookmarkDTO : IBookmark
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public DateTimeOffset CreatedOn { get; set; }
|
||||
public DateTimeOffset LastModified { get; set; }
|
||||
public string Title { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string? Note { get; set; }
|
||||
public bool IsHidden { get; set; }
|
||||
public string Url { get; set; }
|
||||
public List<TagDTO>? Tags { get; set; } = new List<TagDTO>();
|
||||
}
|
||||
}
|
||||
18
API/YABA.Common/DTOs/Bookmarks/CreateBookmarkRequestDTO.cs
Normal file
18
API/YABA.Common/DTOs/Bookmarks/CreateBookmarkRequestDTO.cs
Normal file
@ -0,0 +1,18 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using YABA.Common.Interfaces;
|
||||
|
||||
namespace YABA.Common.DTOs.Bookmarks
|
||||
{
|
||||
public class CreateBookmarkRequestDTO : IBookmark
|
||||
{
|
||||
public string? Title { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string? Note { get; set; }
|
||||
public bool IsHidden { get; set; }
|
||||
public IEnumerable<string>? Tags { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Url { get; set; }
|
||||
}
|
||||
}
|
||||
16
API/YABA.Common/DTOs/Bookmarks/UpdateBookmarkRequestDTO.cs
Normal file
16
API/YABA.Common/DTOs/Bookmarks/UpdateBookmarkRequestDTO.cs
Normal file
@ -0,0 +1,16 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using YABA.Common.Interfaces;
|
||||
|
||||
namespace YABA.Common.DTOs.Bookmarks
|
||||
{
|
||||
public class UpdateBookmarkRequestDTO : IBookmark
|
||||
{
|
||||
public string? Title { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string? Note { get; set; }
|
||||
public bool IsHidden { get; set; }
|
||||
public string? Url { get; set; }
|
||||
public IEnumerable<string>? Tags { get; set; }
|
||||
}
|
||||
}
|
||||
11
API/YABA.Common/DTOs/Tags/CreateTagDTO.cs
Normal file
11
API/YABA.Common/DTOs/Tags/CreateTagDTO.cs
Normal file
@ -0,0 +1,11 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace YABA.Common.DTOs.Tags
|
||||
{
|
||||
public class CreateTagDTO
|
||||
{
|
||||
[Required]
|
||||
public string Name { get; set; }
|
||||
public bool IsHidden { get; set; }
|
||||
}
|
||||
}
|
||||
9
API/YABA.Common/DTOs/Tags/TagDTO.cs
Normal file
9
API/YABA.Common/DTOs/Tags/TagDTO.cs
Normal file
@ -0,0 +1,9 @@
|
||||
namespace YABA.Common.DTOs.Tags
|
||||
{
|
||||
public class TagDTO
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
public bool IsHidden { get; set; }
|
||||
}
|
||||
}
|
||||
10
API/YABA.Common/DTOs/Tags/UpdateTagDTO.cs
Normal file
10
API/YABA.Common/DTOs/Tags/UpdateTagDTO.cs
Normal file
@ -0,0 +1,10 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace YABA.Common.DTOs.Tags
|
||||
{
|
||||
public class UpdateTagDTO
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public bool? IsHidden { get; set; }
|
||||
}
|
||||
}
|
||||
12
API/YABA.Common/DTOs/UserDTO.cs
Normal file
12
API/YABA.Common/DTOs/UserDTO.cs
Normal file
@ -0,0 +1,12 @@
|
||||
using System;
|
||||
|
||||
namespace YABA.Common.DTOs
|
||||
{
|
||||
public class UserDTO
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public bool IsDeleted { get; set; }
|
||||
public DateTimeOffset CreatedOn { get; set; }
|
||||
public DateTimeOffset LastModified { get; set; }
|
||||
}
|
||||
}
|
||||
9
API/YABA.Common/DTOs/WebsiteMetaDataDTO.cs
Normal file
9
API/YABA.Common/DTOs/WebsiteMetaDataDTO.cs
Normal file
@ -0,0 +1,9 @@
|
||||
|
||||
namespace YABA.Common.DTOs
|
||||
{
|
||||
public class WebsiteMetaDataDTO
|
||||
{
|
||||
public string? Title { get; set; }
|
||||
public string? Description { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user