Search Results for

    Show / Hide Table of Contents

    Class MediaContentData

    The source for an image.

    Inheritance
    object
    MediaContentData
    Implements
    IContentData
    IBase64Source
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.AmazonAws
    Assembly: Glitch9.AIDevKit.Provider.AmazonAws.dll
    Syntax
    public sealed class MediaContentData : IContentData, IBase64Source
    Remarks

    This data type is a UNION, so only one of the following members can be specified when used or returned.

    Properties

    | Edit this page View Source

    Base64Bytes

    Optional. The raw image bytes for the image. If you use an AWS SDK, you don't need to encode the image bytes in base64.

    Declaration
    [JsonProperty("bytes")]
    public string Base64Bytes { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    S3Location

    Optional. The location of an image object in an Amazon S3 bucket. To see which models support S3 uploads, see Supported models and features for Converse.

    Declaration
    [JsonProperty("s3Location")]
    public AmazonTypes.S3Location S3Location { get; set; }
    Property Value
    Type Description
    AmazonTypes.S3Location

    Methods

    | Edit this page View Source

    FromBase64(string)

    Declaration
    public static MediaContentData FromBase64(string base64)
    Parameters
    Type Name Description
    string base64
    Returns
    Type Description
    MediaContentData
    | Edit this page View Source

    FromS3Location(S3Location)

    Declaration
    public static MediaContentData FromS3Location(AmazonTypes.S3Location s3Location)
    Parameters
    Type Name Description
    AmazonTypes.S3Location s3Location
    Returns
    Type Description
    MediaContentData
    | Edit this page View Source

    FromS3Location(string, string)

    Declaration
    public static MediaContentData FromS3Location(string uri, string bucketOwner = null)
    Parameters
    Type Name Description
    string uri
    string bucketOwner
    Returns
    Type Description
    MediaContentData
    | Edit this page View Source

    GetBase64String()

    Declaration
    public string GetBase64String()
    Returns
    Type Description
    string
    | Edit this page View Source

    IsBase64()

    Declaration
    public bool IsBase64()
    Returns
    Type Description
    bool

    Implements

    IContentData
    IBase64Source

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation