Esempio n. 1
0
        public string Build(JsonBuildingContext context)
        {
            var viaContext = context.ViaContext;

            var model = this.GetViaModel(viaContext);

            return(JsonSerializer.ToJsonString(model));
        }
Esempio n. 2
0
        public string Build(JsonBuildingContext context)
        {
            var kleContext = context.KleContext;

            var qcLayout       = this.GetQcLayout(kleContext.QmkConfJson);
            var physicalLayout = this.GetPhysicalLayout(kleContext.LayoutDefinition);
            var logicalLayout  = this.GetLogicalLayout(kleContext.LayoutDefinition);
            var injected       = this.InjectDesign(physicalLayout, qcLayout);
            var kles           = this.ConvertToKleLayout(kleContext, injected, logicalLayout);
            var json           = this.FormatToJson(kles);

            return(json);
        }