internal static ServerAppInfo AsServerAppInfo(string jString) { var res = BasicParser.AsParallelPrimitives <string>(jString, 2); return(new ServerAppInfo { Name = res[0], Version = res[1] }); }
internal static EvCapability AsEvCapability(string jString) { var info = BasicParser.AsParallelPrimitives <int>(jString, 4); return(new EvCapability { Candidate = new EvCandidate { IndexStep = EvConverter.GetDefinition(info[3]), MaxIndex = info[1], MinIndex = info[2] }, CurrentIndex = info[0] }); }