Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ParsedLines[] FixParsedLines ( ParsedLines[] lines ) {
- foreach ( ParsedLines line in lines ) {
- line.text = line.text.Replace( "\r\n", " " );
- line.text = line.text.Replace( "\n", " " );
- }
- return lines;
- }
- public string ParseAndSaveWebToolTexts(string apiResponse, string lessonId)
- {
- string errors = ParseCheckErrors(apiResponse);
- if (!string.IsNullOrEmpty(errors)) return errors;
- ScenarioDataEntry scenario = JsonUtility.FromJson<ScenarioDataEntry>(apiResponse);
- var textLines = FixParsedLines( scenario.data.attributes.lines );
- var participantsLines = scenario.data.attributes.participants;
- var bundlesLines = scenario.data.attributes.asset_bundles;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement