Ejemplo n.º 1
0
        public JSONWrappers.Question ToJSON()
        {
            JSONWrappers.Question jsonQuestion = new JSONWrappers.Question
            {
                Url      = PicturesDataBase.ConvertPathToUrl(Path),
                Type     = Type.ToString("G"),
                Severity = Severity.ToString("G")
            };

            return(jsonQuestion);
        }
Ejemplo n.º 2
0
 public static Question FromJSON(JSONWrappers.Question jsonQuestion)
 {
     return(new Question(PicturesDataBase.ConvertUrlToPath(jsonQuestion.Url)));
 }