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