${REST_ThemeGraphSize_Title}

${REST_ThemeGraphSize_Description}

예제 #1
0
 internal static ThemeGraphSize FromJson(JsonObject json)
 {
     if (json == null) return null;
     ThemeGraphSize graphSize = new ThemeGraphSize();
     graphSize.MaxGraphSize = json["maxGraphSize"].GetNumberEx();
     graphSize.MinGraphSize = json["minGraphSize"].GetNumberEx();
     return graphSize;
 }
예제 #2
0
        internal static string ToJson(ThemeGraphSize graphSize)
        {
            string json = "";

            List<string> list = new List<string>();
            list.Add(string.Format("\"maxGraphSize\":{0}", graphSize.MaxGraphSize.ToString()));
            list.Add(string.Format("\"minGraphSize\":{0}", graphSize.MinGraphSize.ToString()));
            json = string.Join(",", list.ToArray());
            return json;
        }