public Service.OveritOsobyHromadneRequest GetRequestOveritOsobyHromadne() { OveritOsobyHromadneItem overitOsobuHromadneItem = null; Service.OveritOsobyHromadneRequest overitOsobuHromadneRequest = null; string filename = paramsItem.InputFilename; if (filename == null) { filename = Properties.Resources.OveritOsobyHromadneJson; } try { using (StreamReader file = File.OpenText(filename)) { overitOsobuHromadneItem = (OveritOsobyHromadneItem)jsonSerializer.Deserialize(file, typeof(OveritOsobyHromadneItem)); OveritOsobyHromadneMapper mapper = new OveritOsobyHromadneMapper(overitOsobuHromadneItem); overitOsobuHromadneRequest = mapper.Map(); } } catch (DirectoryNotFoundException e) { Console.WriteLine(e); } catch (FileNotFoundException e) { Console.WriteLine(e); } return(overitOsobuHromadneRequest); }
public OveritOsobyHromadneMapper(OveritOsobyHromadneItem item) { OveritOsobyHromadneItem = item; }