public Angular2ClientTemplate(ClientTemplateModel model)
 {
     Model = model;
 }
 public ClientMethodsTemplate(ClientTemplateModel model)
 {
     Model = model;
 }
        internal override string GenerateClientClass(string controllerName, string controllerClassName, IList<OperationModel> operations, ClientGeneratorOutputType outputType)
        {
            UpdateUseDtoClassAndDataConversionCodeProperties(operations);

            var model = new ClientTemplateModel(GetClassName(controllerClassName), operations, _document, Settings);
            var template = Settings.CreateTemplate(model);
            var code = template.Render();

            return AppendExtensionClassIfNecessary(controllerClassName, code);
        }
Пример #4
0
 public FetchClientTemplate(ClientTemplateModel model)
 {
     Model = model;
 }
 public JQueryPromisesClientTemplate(ClientTemplateModel model)
 {
     Model = model;
 }
Пример #6
0
 /// <summary>Renders the client class helper methods.</summary>
 /// <param name="model">The model.</param>
 /// <param name="tabCount">The tab count.</param>
 /// <returns>The helper methods.</returns>
 public static string RenderClientMethodsCode(ClientTemplateModel model, int tabCount = 0)
 {
     var tpl = new ClientMethodsTemplate(model);
     return ConversionUtilities.Tab(tpl.Render(), tabCount);
 }
 public JQueryCallbacksClientTemplate(ClientTemplateModel model)
 {
     Model = model;
 }