예제 #1
0
 /// <summary>
 /// Creates <see cref="RobotSetting"/> from a  jdoc.
 /// </summary>
 /// <param name="jdoc">The jdoc.</param>
 /// <returns>Robot settings instance</returns>
 internal static RobotSettings FromJdoc(Jdoc jdoc)
 {
     return(JsonConvert.DeserializeObject <RobotSettings>(jdoc.JsonDoc));
 }
 /// <summary>
 /// Creates <see cref="RobotLifetimeStats"/> from a  jdoc.
 /// </summary>
 /// <param name="jdoc">The jdoc.</param>
 /// <returns>The robot lifetime stats instance</returns>
 internal static RobotLifetimeStats FromJdoc(Jdoc jdoc)
 {
     return(JsonConvert.DeserializeObject <RobotLifetimeStats>(jdoc.JsonDoc));
 }