Search Results for

    Show / Hide Table of Contents

    Class FilePart

    Inheritance
    object
    ContentPart
    ContentPart<FileContentData>
    FilePart
    Inherited Members
    ContentPart<FileContentData>.Value
    ContentPart<FileContentData>.ToString()
    ContentPart.Type
    ContentPart.Format
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Glitch9.AIDevKit
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    public sealed class FilePart : ContentPart<FileContentData>

    Constructors

    | Edit this page View Source

    FilePart()

    Declaration
    public FilePart()
    | Edit this page View Source

    FilePart(ContentType, ContentFormat, FileContentData)

    Declaration
    public FilePart(ContentType type, ContentFormat dataType, FileContentData data)
    Parameters
    Type Name Description
    ContentType type
    ContentFormat dataType
    FileContentData data

    Methods

    | Edit this page View Source

    Base64(string, MimeType)

    Declaration
    public static FilePart Base64(string base64File, MimeType mimeType)
    Parameters
    Type Name Description
    string base64File
    MimeType mimeType
    Returns
    Type Description
    FilePart
    | Edit this page View Source

    Base64(string, string)

    Declaration
    public static FilePart Base64(string base64File, string filename)
    Parameters
    Type Name Description
    string base64File
    string filename
    Returns
    Type Description
    FilePart
    | Edit this page View Source

    FileId(string)

    Declaration
    public static FilePart FileId(string fileId)
    Parameters
    Type Name Description
    string fileId
    Returns
    Type Description
    FilePart
    | Edit this page View Source

    InputFileBase64(string, string)

    Declaration
    public static FilePart InputFileBase64(string base64File, string filename)
    Parameters
    Type Name Description
    string base64File
    string filename
    Returns
    Type Description
    FilePart
    | Edit this page View Source

    InputFileId(string)

    Declaration
    public static FilePart InputFileId(string fileId)
    Parameters
    Type Name Description
    string fileId
    Returns
    Type Description
    FilePart
    | Edit this page View Source

    Url(string)

    Declaration
    public static FilePart Url(string fileUrl)
    Parameters
    Type Name Description
    string fileUrl
    Returns
    Type Description
    FilePart

    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