Revize f6f1ca65
Přidáno uživatelem Vojtěch Bartička před téměř 3 roky(ů)
Backend/Core/Entities/AnnotationTag.cs | ||
---|---|---|
23 | 23 |
public int Position { get; set; } |
24 | 24 |
public int Length { get; set; } |
25 | 25 |
public ETagSentiment? Sentiment { get; set; } |
26 |
public string SelectedText { get; set; } |
|
26 | 27 |
} |
27 | 28 |
} |
Backend/Core/Services/AnnotationService/AnnotationServiceEF.cs | ||
---|---|---|
789 | 789 |
Instance = request.InstanceId == null ? Guid.NewGuid() : request.InstanceId.Value, |
790 | 790 |
Length = request.Length, |
791 | 791 |
Position = request.Position, |
792 |
SelectedText = request.SelectedText, |
|
792 | 793 |
Note = "" |
793 | 794 |
}; |
794 | 795 |
|
Backend/Models/Annotations/AnnotationInstanceAddRequest.cs | ||
---|---|---|
16 | 16 |
|
17 | 17 |
// If se to null, the instance is a new one |
18 | 18 |
public Guid? InstanceId { get; set; } |
19 |
public string SelectedText { get; set; } |
|
19 | 20 |
} |
20 | 21 |
} |
Backend/Models/Tags/TagInstanceInfo.cs | ||
---|---|---|
25 | 25 |
public string Note { get; set; } |
26 | 26 |
|
27 | 27 |
public ETagSentiment? Sentiment { get; set; } |
28 |
public string SelectedText { get; set; } |
|
28 | 29 |
} |
29 | 30 |
} |
Také k dispozici: Unified diff
Added selected text to AnnotationTag and requests/responses