sdk/Domain/PartEtag.cs (21 lines of code) (raw):

/* * Copyright (C) Alibaba Cloud Computing * All rights reserved. * */ namespace Aliyun.OSS { /// <summary> /// The class consists of part ETag and Part number. It's used in the request to complete the multipart upload. /// </summary> public class PartETag { /// <summary> /// Gets or sets the part number. /// </summary> public int PartNumber { get; set; } /// <summary> /// Gets or sets the ETag, which is the 128 bit MD5 digest in hex string. /// </summary> public string ETag { get; set; } /// <summary> /// Gets or sets the crc64. /// </summary> /// <value>The crc64.</value> public string Crc64 { get; internal set; } /// <summary> /// Gets or sets the length. /// </summary> /// <value>The length.</value> public long Length { get; internal set; } /// <summary> /// Creates a new instance of <see cref="PartETag" />. /// </summary> /// <param name="partNumber">Part number</param> /// <param name="eTag">Etag</param> /// <param name="crc64">crc64</param> /// <param name="length">length</param> public PartETag(int partNumber, string eTag, string crc64, long length) { PartNumber = partNumber; ETag = eTag; Crc64 = crc64; Length = length; } public PartETag(int partNumber, string eTag) : this(partNumber, eTag, null, 0) { } } }