Box.V2.Managers.BoxCommentsManager.GetInformationAsync C# (CSharp) Метод

GetInformationAsync() публичный Метод

Used to retrieve the message and metadata about a specific comment. Information about the user who created the comment is also included.
public GetInformationAsync ( string id, List fields = null ) : Task
id string Id of the comment.
fields List Attribute(s) to include in the response.
Результат Task
        public async Task<BoxComment> GetInformationAsync(string id, List<string> fields = null)
        {
            id.ThrowIfNullOrWhiteSpace("id");

            BoxRequest request = new BoxRequest(_config.CommentsEndpointUri, id)
                .Method(RequestMethod.Get)
                .Param(ParamFields, fields);

            IBoxResponse<BoxComment> response = await ToResponseAsync<BoxComment>(request).ConfigureAwait(false);

            return response.ResponseObject;
        }