예제 #1
0
 private string GetResolutionJsonBlock(FilingHistoryItemResolution resolution)
 {
     return($@"{{
                  ""category"" : ""{resolution.Category}"",
                  ""description"" : ""{resolution.Description}"",
                  ""document_id"" : ""{resolution.DocumentId}"",
                  ""receive_date"" : ""{resolution.DateOfProcessing.ToString("yyyy-MM-dd")}"",
                  ""subcategory"" : ""{resolution.Subcategory}"",
                  ""type"" : ""{resolution.ResolutionType}"",
                  ""description_values"" : {{
                     {string.Join(",", resolution.DescriptionValues.Select(GetDictionaryJsonBlock))}
                  }}
               }}");
 }
 private string GetResolutionJsonBlock(FilingHistoryItemResolution resolution)
 {
     return $@"{{
                  ""category"" : ""{resolution.Category}"",
                  ""description"" : ""{resolution.Description}"",
                  ""document_id"" : ""{resolution.DocumentId}"",
                  ""receive_date"" : ""{resolution.DateOfProcessing.ToString("yyyy-MM-dd")}"",
                  ""subcategory"" : ""{resolution.Subcategory}"",
                  ""type"" : ""{resolution.ResolutionType}"",
                  ""description_values"" : {{
                     {string.Join(",", resolution.DescriptionValues.Select(GetDictionaryJsonBlock))}
                  }}
               }}";
 }