Click or drag to resize

MediasClient Class

To get started, call one of the following methods:
  • Anysense.API.Client.V1.ApiClient.Create
  • Anysense.API.Client.V1.ApiClient.CreateAsync
  • Anysense.API.Client.V1.ApiClient.CreateWithToken
  • Anysense.API.Client.V1.ApiClient.CreateWithTokenAsync
See Anysense.API.Client.Shared.BaseClient<T> for documentation on these methods.
Handles media access
Inheritance Hierarchy
SystemObject
  Anysense.API.Client.SharedApiHandlerApiClient
    Anysense.API.Client.V1MediasClient

Namespace: Anysense.API.Client.V1
Assembly: Anysense.API.Client (in Anysense.API.Client.dll) Version: 1.31.15+d671d89394079ff2411e503098d3578f08c2de86
Syntax
C#
public class MediasClient : ApiHandler<ApiClient>

The MediasClient type exposes the following members.

Methods
 NameDescription
Protected methodAddQueryParameter
(Inherited from ApiHandlerT)
Public methodBeginUpload Begins a media upload with an given id. If the Id is null, a new id will be returned
Public methodBeginUploadAsync Begins a media upload with an given id. If the Id is null, a new id will be returned
Public methodDelete Deletes a media file
Public methodDeleteAsync Deletes a media file
Public methodFinalizeUpload Finalizes the media upload, and processes the file.
Public methodFinalizeUploadAsync Finalizes the media upload, and processes the file.
Public methodGetChunk(Guid, Int64, Int64) Gets a piece of a file
Public methodGetChunk(Guid, Int64, Int64, Stream) Gets a piece of a file
Public methodGetChunkAsync(Guid, Int64, Int64) Gets a piece of a file
Public methodGetChunkAsync(Guid, Int64, Int64, Stream) Gets a piece of a file
Public methodGetFile(Guid) Gets a file
Public methodGetFile(Guid, Stream) Gets a file
Public methodGetFileAsync(Guid) Gets a file
Public methodGetFileAsync(Guid, Stream) Gets a file
Public methodGetFileStats Gets file stats about a media-file
Public methodGetFileStatsAsync Gets media meta-data
Public methodGetGetPrintableScaled Gets an image scaled to match submitted max width or max height converted to 300dpi. If the image is smaller than the requested dimensions, the original image is returned.
Public methodGetMediaData Gets media meta-data
Public methodGetMediaDataAsync Gets media meta-data
Public methodGetPrintable Gets an image scaled to match submitted max width or max height converted to 300dpi. If the image is smaller than the requested dimensions, the original image is returned.
Public methodGetPrintableAsync(Guid, NullableDecimal, NullableDecimal, NullablePrintSizeUnit) Gets an image scaled to match submitted max width or max height converted to 300dpi. If the image is smaller than the requested dimensions, the original image is returned.
Public methodGetPrintableAsync(Guid, NullableDecimal, NullableDecimal, NullablePrintSizeUnit, Stream) Gets an image scaled to match submitted max width or max height converted to 300dpi. If the image is smaller than the requested dimensions, the original image is returned.
Public methodGetScaled(Guid, Int32, Int32) Gets an image scaled to match submitted max width or max height. If the image is smaller than the requested dimensions, the original image is returned.
Public methodGetScaled(Guid, Int32, Int32, Stream) Gets an image scaled to match submitted max width or max height. If the image is smaller than the requested dimensions, the original image is returned.
Public methodGetScaledAsync(Guid, Int32, Int32) Gets an image scaled to match submitted max width or max height. If the image is smaller than the requested dimensions, the original image is returned.
Public methodGetScaledAsync(Guid, Int32, Int32, Stream) Gets an image scaled to match submitted max width or max height. If the image is smaller than the requested dimensions, the original image is returned.
Public methodGetThumbnail(Guid, Int32, Int32) Gets an thumbnail of a media scaled to match submitted max width or max height. If the media is an image and the image is smaller than the requested dimensions, the original image is returned. If anything else than an image is requested, the service returns a standard thumbnail matching the requested dimensions.
Public methodGetThumbnail(Guid, Int32, Int32, Stream) Gets an thumbnail of a media scaled to match submitted max width or max height. If the media is an image and the image is smaller than the requested dimensions, the original image is returned. If anything else than an image is requested, the service returns a standard thumbnail matching the requested dimensions.
Public methodGetThumbnailAsync(Guid, Int32, Int32) Gets an thumbnail of a media scaled to match submitted max width or max height. If the media is an image and the image is smaller than the requested dimensions, the original image is returned. If anything else than an image is requested, the service returns a standard thumbnail matching the requested dimensions.
Public methodGetThumbnailAsync(Guid, Int32, Int32, Stream) Gets an thumbnail of a media scaled to match submitted max width or max height. If the media is an image and the image is smaller than the requested dimensions, the original image is returned. If anything else than an image is requested, the service returns a standard thumbnail matching the requested dimensions.
Public methodSaveChunk(SaveChunkRequest) Writes a chunk of data to the file.
Public methodSaveChunk(Guid, Int64, Byte) Writes a chunk of data to the file.
Public methodSaveChunkAsync(SaveChunkRequest) Writes a chunk of data to the file.
Public methodSaveChunkAsync(Guid, Int64, Byte) Writes a chunk of data to the file.
Public methodUpload Uploads a file to the service. Bundles BeginUpload, SaveChunk(s), and FinalizeUpload into one.
Public methodUploadAsync Uploads a file to the service. Bundles BeginUpload, SaveChunk(s), and FinalizeUpload into one.
Top
See Also