mirror of
				https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
				synced 2025-10-30 09:45:32 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			39 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| using System.Xml.Linq;
 | |
| 
 | |
| namespace HaDocument.Models {
 | |
|     public class Editreason {
 | |
|         public string Index { get; } = "";
 | |
|         public string Element { get; } = "";
 | |
|         public string Letter { get; } = "";
 | |
|         public string StartPage { get; } = "";
 | |
|         public string StartLine { get; } = "";
 | |
|         public string EndPage { get; } = "";
 | |
|         public string EndLine { get; } = "";
 | |
|         public string Reference { get; } = "";
 | |
|         
 | |
|         public Editreason(
 | |
|             string index,
 | |
|             string element,
 | |
|             string letter = "",
 | |
|             string startpage = "",
 | |
|             string startline = "",
 | |
|             string endpage = "",
 | |
|             string endline = "",
 | |
|             string reference = ""
 | |
|         ) {
 | |
|             Index = index;
 | |
|             Element = element;
 | |
|             Letter = letter;
 | |
|             StartPage = startpage;
 | |
|             StartLine = startline;
 | |
|             EndPage = endpage;
 | |
|             EndLine = endline;
 | |
|             Reference = reference;
 | |
|         }
 | |
| 
 | |
|         public static Editreason? FromXElement(XElement edit, XElement editreason) {
 | |
|             if (edit == null || editreason == null || !edit.HasAttributes || !editreason.HasAttributes) return null;
 | |
|             return null;
 | |
|         }
 | |
|     }
 | |
| } | 
