mirror of
				https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
				synced 2025-10-30 17:55:32 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			40 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| namespace HaDocument.Models;
 | |
| using System;
 | |
| using System.Collections.Generic;
 | |
| using System.Collections.Immutable;
 | |
| using System.Xml.Linq;
 | |
| 
 | |
| public class Comment {
 | |
|     public XElement Entry { get; }
 | |
|     public string Value { get; }
 | |
|     public string Index { get; }
 | |
|     public string? Type { get; }
 | |
|     public string? Lemma { get; }
 | |
|     public string? Parent { get; }
 | |
|     public int? Order { get; }
 | |
|     public ImmutableSortedDictionary<string, Comment>? SubComments { get; }
 | |
| 
 | |
|     public Comment(
 | |
|         XElement entry,
 | |
|         string value,
 | |
|         string index,
 | |
|         string? type,
 | |
|         string? lemma,
 | |
|         int? order,
 | |
|         SortedDictionary<string, Comment>? subComments,
 | |
|         string? parent
 | |
|     ) {
 | |
|         Value = value;
 | |
|         Entry = entry;
 | |
|         Index = index;
 | |
|         Type = type;
 | |
|         Lemma = lemma;
 | |
|         Order = order;
 | |
|         Parent = parent;
 | |
|         if (subComments != null)
 | |
|             SubComments = ImmutableSortedDictionary.ToImmutableSortedDictionary(subComments);
 | |
|         else
 | |
|             SubComments = null;
 | |
|     }
 | |
| }
 | 
