27 lines
743 B
C#
27 lines
743 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.ComponentModel.DataAnnotations;
|
|||
|
|
|||
|
namespace Start.Shared {
|
|||
|
public class BookmarkContainerDto {
|
|||
|
public int BookmarkContainerId { get; set; }
|
|||
|
[StringLength(300)]
|
|||
|
public string Title { get; set; }
|
|||
|
|
|||
|
public IList<BookmarkGroupDto>? BookmarkGroups { get; set; }
|
|||
|
|
|||
|
public BookmarkContainerDto(string title) {
|
|||
|
this.Title = title;
|
|||
|
}
|
|||
|
|
|||
|
public BookmarkContainerDto(int bookmarkContainerId, string title) : this(title) {
|
|||
|
this.BookmarkContainerId = bookmarkContainerId;
|
|||
|
}
|
|||
|
|
|||
|
public BookmarkContainerDto(int bookmarkContainerId, string title,
|
|||
|
IList<BookmarkGroupDto> bookmarkGroups) : this(bookmarkContainerId, title) {
|
|||
|
this.BookmarkGroups = bookmarkGroups;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|