/// <summary>
 /// Submit the rating for the quality of the translation and service
 /// </summary>
 /// <param name="projectId">Unique id of the newly project created</param>
 /// <param name="type">Customer|Service</param>
 /// <param name="rate">Rating of project (1 - being the lowest; 10 - being the highest)</param>
 /// <param name="remarks">Remark left with the rating</param>
 /// <returns></returns>
 public PostProjectRatingsResult PostProjectRatings(string projectId, StringType type,int rate, string remarks="")
 {
     var r = new PostProjectRatingsResult();
     try
     {
         if (PostProjectRatingsProvider == null)
             PostProjectRatingsProvider = new PostProjectRatingsProvider();
         var json = PostProjectRatingsProvider.Get(Url, _proxy, KeyPublic, KeySecret, projectId, type, rate, remarks);
         r = JsonConvert.DeserializeObject<PostProjectRatingsResult>(json);
     }
     catch (Exception err)
     {
         r.Status.Code = -1;
         r.Status.Msg = err.Message;
     }
     return r;
 }
        /// <summary>
        /// Submit the rating for the quality of the translation and service
        /// </summary>
        /// <param name="projectId">Unique id of the newly project created</param>
        /// <param name="type">Customer|Service</param>
        /// <param name="rate">Rating of project (1 - being the lowest; 10 - being the highest)</param>
        /// <param name="remarks">Remark left with the rating</param>
        /// <returns></returns>
        public PostProjectRatingsResult PostProjectRatings(string projectId, StringType type, int rate, string remarks = "")
        {
            var r = new PostProjectRatingsResult();

            try
            {
                if (PostProjectRatingsProvider == null)
                {
                    PostProjectRatingsProvider = new PostProjectRatingsProvider();
                }
                var json = PostProjectRatingsProvider.Get(Url, _proxy, KeyPublic, KeySecret, projectId, type, rate, remarks);
                r = JsonConvert.DeserializeObject <PostProjectRatingsResult>(json);
            }
            catch (Exception err)
            {
                r.Status.Code = -1;
                r.Status.Msg  = err.Message;
            }
            return(r);
        }