You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.1 KiB
45 lines
1.1 KiB
using System.Runtime.Serialization;
|
|
|
|
namespace Dto;
|
|
|
|
[DataContract]
|
|
public class ParagraphDto : ContentLessonDto
|
|
{
|
|
[DataMember(Name = "title")]
|
|
public string Title { get; set; }
|
|
[DataMember(Name = "content")]
|
|
public string Content { get; set; }
|
|
[DataMember(Name = "info")]
|
|
public string Info { get; set; }
|
|
[DataMember(Name = "query")]
|
|
public string Query { get; set; }
|
|
[DataMember(Name = "comment")]
|
|
public string Comment { get; set; }
|
|
|
|
public ParagraphDto(string title, string content, string info, string query, string comment, int lessonId) :
|
|
base(content,
|
|
title, lessonId)
|
|
{
|
|
Title = title;
|
|
Content = content;
|
|
Info = info;
|
|
Query = query;
|
|
Comment = comment;
|
|
}
|
|
|
|
public ParagraphDto(int id, string title, string content, string info, string query, string comment, int lessonId) :
|
|
base(id, content,
|
|
title, lessonId)
|
|
{
|
|
Id = id;
|
|
Title = title;
|
|
Content = content;
|
|
Info = info;
|
|
Query = query;
|
|
Comment = comment;
|
|
}
|
|
|
|
public ParagraphDto() : base()
|
|
{
|
|
}
|
|
} |