/// <summary> /// Gets a reply. /// Documentation https://developers.google.com/drive/v2/reference/replies/get /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated Drive service.</param> /// <param name="fileId">The ID of the file.</param> /// <param name="commentId">The ID of the comment.</param> /// <param name="replyId">The ID of the reply.</param> /// <param name="optional">Optional paramaters.</param> /// <returns>CommentReplyResponse</returns> public static CommentReply Get(DriveService service, string fileId, string commentId, string replyId, RepliesGetOptionalParms optional = null) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (fileId == null) { throw new ArgumentNullException(fileId); } if (commentId == null) { throw new ArgumentNullException(commentId); } if (replyId == null) { throw new ArgumentNullException(replyId); } // Building the initial request. var request = service.Replies.Get(fileId, commentId, replyId); // Applying optional parameters to the request. request = (RepliesResource.GetRequest)SampleHelpers.ApplyOptionalParms(request, optional); // Requesting data. return(request.Execute()); } catch (Exception ex) { throw new Exception("Request Replies.Get failed.", ex); } }