private string ApplyDataOfRequest(RequestDataModel Request) { string ClassData = _template; ParamsReplacer Replacer = new ParamsReplacer(_template, Request); return(Replacer.Process()); }
private void CreateRequest(string requestUrl, MethodModel model, string method, string classNamePrefix = "") { RequestDataModel request = new RequestDataModel(requestUrl, model, method, BasePath, classNamePrefix, GetShemeModel); if (Folders.IndexOf(request.Folder) == -1) { Folders.Add(request.Folder); } Requests.Add(request); //Debug.Log(request.ClassName); }
public void CreateFile(RequestDataModel Request) { string FileName = Request.Folder + "/" + Request.ClassName + ".cs"; File.WriteAllText(FileName, ApplyDataOfRequest(Request)); }
public ParamsReplacer(string template, RequestDataModel request) { _classText = template; _request = request; }