public ILiveStreamInfo getLiveStreamUser(string un) { ILiveStreamInfo lsi = null; string requrl = genGURL(APIResources.LiveSteamsUser, un); string jsonReturn = engine.getWebEngine().getReturnJSON(requrl); if (jsonSchemaIsValid(Schema.ILiveStreamInfo, jsonReturn)) { try { lsi = JsonConvert.DeserializeObject <ILiveStreamInfo>(jsonReturn); } catch { System.Diagnostics.Debugger.Log(0, "Deserializing", "Could not deserialize a valid json schema for ILiveStreamInfo."); lsi = null; } } return(lsi); }