/// <summary> /// Get the rating for the quality of the translation and service /// </summary> /// <param name="projectId">Unique id of the newly project created</param> /// <returns></returns> public RetrieveProjectRatingsResult RetrieveProjectRatings(string projectId) { var r = new RetrieveProjectRatingsResult(); try { if (RetrieveProjectRatingsProvider == null) { RetrieveProjectRatingsProvider = new RetrieveProjectRatingsProvider(); } var json = RetrieveProjectRatingsProvider.Get(Url, _proxy, KeyPublic, KeySecret, projectId); r = JsonConvert.DeserializeObject <RetrieveProjectRatingsResult>(json); } catch (Exception err) { r.Status.Code = -1; r.Status.Msg = err.Message; } return(r); }
/// <summary> /// Get the rating for the quality of the translation and service /// </summary> /// <param name="projectId">Unique id of the newly project created</param> /// <returns></returns> public RetrieveProjectRatingsResult RetrieveProjectRatings(string projectId) { var r = new RetrieveProjectRatingsResult(); try { if (RetrieveProjectRatingsProvider == null) RetrieveProjectRatingsProvider = new RetrieveProjectRatingsProvider(); var json = RetrieveProjectRatingsProvider.Get(Url, _proxy, KeyPublic, KeySecret, projectId); r = JsonConvert.DeserializeObject<RetrieveProjectRatingsResult>(json); } catch (Exception err) { r.Status.Code = -1; r.Status.Msg = err.Message; } return r; }