12345678910111213141516171819202122232425262728293031 |
- /*
- * Copyright (C) Alibaba Cloud Computing
- * All rights reserved.
- *
- * 版权所有 (C)阿里云计算有限公司
- */
- using System.IO;
- using Aliyun.OSS.Common.Communication;
- using Aliyun.OSS.Model;
- namespace Aliyun.OSS.Transform
- {
- internal class GetBucketLoggingResultDeserializer
- : ResponseDeserializer<BucketLoggingResult, SetBucketLoggingRequestModel>
- {
- public GetBucketLoggingResultDeserializer(IDeserializer<Stream, SetBucketLoggingRequestModel> contentDeserializer)
- : base(contentDeserializer)
- { }
- public override BucketLoggingResult Deserialize(ServiceResponse xmlStream)
- {
- var model = ContentDeserializer.Deserialize(xmlStream.Content);
- return new BucketLoggingResult
- {
- TargetBucket = model.LoggingEnabled.TargetBucket,
- TargetPrefix = model.LoggingEnabled.TargetPrefix
- };
- }
- }
- }
|