Box.V2.Managers.BoxFoldersManager.GetWatermarkAsync C# (CSharp) Méthode

GetWatermarkAsync() public méthode

Used to retrieve the watermark for a corresponding Box folder.
public GetWatermarkAsync ( string id ) : Task
id string Id of the folder.
Résultat Task
        public async Task<BoxWatermark> GetWatermarkAsync(string id)
        {
            id.ThrowIfNullOrWhiteSpace("id");

            BoxRequest request = new BoxRequest(_config.FoldersEndpointUri, string.Format(Constants.WatermarkPathString, id))
               .Method(RequestMethod.Get);

            IBoxResponse<BoxWatermarkResponse> response = await ToResponseAsync<BoxWatermarkResponse>(request).ConfigureAwait(false);
            if (response.Status == ResponseStatus.Success)
            {
                return response.ResponseObject.Watermark;
            }
            else
            {
                return null;
            }
        }