public static BookHighlight GetHighlight(long paragraphId, int start,int end,long highlightId) { BookHighlight hl = new BookHighlight(); hl.Color = "00FFFF"; hl.HighlightId = highlightId; hl.PersonId = 1; hl.Sections = new List<Section>(); Section s = new Section(); s.ParagraphId = paragraphId; s.StartOffset = start; s.EndOffset = end; hl.Sections.Add(s); return hl; }
public static BookComment GetComment(long commentId,long paragraphId,int start,int end) { BookComment comment = new BookComment(); comment.CreationDateTime = DateTime.Now; comment.Id = commentId; comment.PersonId = 1; comment.Sections = new List<Section>(); Section s = new Section(); s.StartOffset = start; s.EndOffset = end; s.ParagraphId = paragraphId; comment.Sections.Add(s); comment.Text = "متن توضیح"; return comment; }