Example #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="RawDataInformationDto"/> class.
        /// </summary>
        /// <param name="data">The raw data information object that should be copied.</param>
        /// <exception cref="ArgumentNullException"><paramref name="data"/> is <see langword="null" />.</exception>
        public RawDataInformationDto([NotNull] RawDataInformationDto data)
        {
            if (data == null)
            {
                throw new ArgumentNullException(nameof(data));
            }

            Target       = data.Target;
            Key          = data.Key;
            FileName     = data.FileName;
            MimeType     = data.MimeType;
            Created      = data.Created;
            LastModified = data.LastModified;
            Size         = data.Size;
            MD5          = data.MD5;
        }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RawDataDto"/> class.
 /// </summary>
 /// <exception cref="ArgumentNullException"><paramref name="info"/> is <see langword="null" />.</exception>
 public RawDataDto([NotNull] RawDataInformationDto info, byte[] data)
     : base(info)
 {
     Data = data;
 }