1
|
using Models.Enums;
|
2
|
using System;
|
3
|
using System.Collections.Generic;
|
4
|
using System.Linq;
|
5
|
using System.Text;
|
6
|
using System.Threading.Tasks;
|
7
|
|
8
|
namespace Core.Entities
|
9
|
{
|
10
|
/// <summary>
|
11
|
/// Base class for tag occurences in annotations
|
12
|
/// </summary>
|
13
|
public class AnnotationTagGeneric : BaseEntity
|
14
|
{
|
15
|
/// <summary>
|
16
|
/// Tag
|
17
|
/// </summary>
|
18
|
public Tag Tag { get; set; }
|
19
|
|
20
|
/// <summary>
|
21
|
/// Subtag, nulllable for optional
|
22
|
/// </summary>
|
23
|
public SubTag? SubTag { get; set; }
|
24
|
|
25
|
/// <summary>
|
26
|
/// Id of the instance (shared by multipart tags)
|
27
|
/// </summary>
|
28
|
public Guid Instance { get; set; }
|
29
|
|
30
|
/// <summary>
|
31
|
/// The tag note
|
32
|
/// </summary>
|
33
|
public string Note { get; set; }
|
34
|
public int Position { get; set; }
|
35
|
public int Length { get; set; }
|
36
|
|
37
|
/// <summary>
|
38
|
/// Sentiment of the tag, nullable for optional
|
39
|
/// </summary>
|
40
|
public ETagSentiment? Sentiment { get; set; }
|
41
|
|
42
|
/// <summary>
|
43
|
/// The text that the tag is covering
|
44
|
/// </summary>
|
45
|
public string SelectedText { get; set; }
|
46
|
}
|
47
|
}
|