Ejemplo n.º 1
0
 public LocationInfo([CanBeNull] Uri thumbnailUri, EncryptedFile?thumbnailFile, ThumbnailInfo thumbnailInfo)
     : this()
 {
     ThumbnailUri  = thumbnailUri;
     ThumbnailFile = thumbnailFile;
     ThumbnailInfo = thumbnailInfo;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FileInfo" /> class.
 /// </summary>
 /// <param name="mimeType">The MIME type of the file.</param>
 /// <param name="size">The size of the file, in bytes.</param>
 /// <param name="thumbnailUri">A URI to a thumbnail for the file.</param>
 /// <param name="thumbnailFile">Information about an encrypted thumbnail.</param>
 /// <param name="thumbnailInfo">Information about the thumbnail.</param>
 public FileInfo(
     string mimeType,
     int size,
     [CanBeNull] Uri thumbnailUri,
     EncryptedFile?thumbnailFile,
     ThumbnailInfo thumbnailInfo)
 {
     MimeType      = mimeType;
     Size          = size;
     ThumbnailUri  = thumbnailUri;
     ThumbnailFile = thumbnailFile;
     ThumbnailInfo = thumbnailInfo;
 }
Ejemplo n.º 3
0
 /// <inheritdoc />
 /// <summary>
 /// Initializes a new instance of the <see cref="ImageInfo" /> class.
 /// </summary>
 /// <param name="mimeType">The MIME type of the image.</param>
 /// <param name="size">The size of the image, in bytes.</param>
 /// <param name="thumbnailUri">A URL to the thumbnail for the image.</param>
 /// <param name="thumbnailFile">An object describing an encrypted thumbnail for the image.</param>
 /// <param name="thumbnailInfo">Information about the image thumbnail.</param>
 /// <param name="height">Height of the image, in pixels.</param>
 /// <param name="width">Width of the image, in pixels.</param>
 public ImageInfo(
     string mimeType,
     int size,
     [CanBeNull] Uri thumbnailUri,
     EncryptedFile?thumbnailFile,
     ThumbnailInfo thumbnailInfo,
     int height,
     int width)
     : base(mimeType, size, thumbnailUri, thumbnailFile, thumbnailInfo)
 {
     Height = height;
     Width  = width;
 }
Ejemplo n.º 4
0
 /// <inheritdoc />
 /// <summary>
 /// Initializes a new instance of the <see cref="VideoInfo" /> class.
 /// </summary>
 /// <param name="mimeType">The MIME type of the file.</param>
 /// <param name="size">The size of the file, in bytes.</param>
 /// <param name="thumbnailUri">URI to a thumbnail for the video.</param>
 /// <param name="thumbnailFile">Information about an encrypted thumbnail file.</param>
 /// <param name="thumbnailInfo">Information about the thumbnail.</param>
 /// <param name="duration">The duration of the video.</param>
 /// <param name="height">The height of the video, in pixels.</param>
 /// <param name="width">The width of the video, in pixels.</param>
 public VideoInfo(
     string mimeType,
     int size,
     [CanBeNull] Uri thumbnailUri,
     EncryptedFile?thumbnailFile,
     ThumbnailInfo thumbnailInfo,
     TimeSpan?duration,
     int height,
     int width)
     : base(mimeType, size, thumbnailUri, thumbnailFile, thumbnailInfo)
 {
     Duration = duration;
     Height   = height;
     Width    = width;
 }