Class MediaEntry

Represents a MediaEntry.

Hierarchy

  • MediaEntry

Implements

Constructors

Properties

directPath: string

MediaEntry directPath.

downloadableThumbnail?: null | IDownloadableThumbnail

MediaEntry downloadableThumbnail.

fbid: string

MediaEntry fbid.

fileEncSha256: Uint8Array

MediaEntry fileEncSha256.

fileSha256: Uint8Array

MediaEntry fileSha256.

filename: string

MediaEntry filename.

handle: string

MediaEntry handle.

mediaKey: Uint8Array

MediaEntry mediaKey.

mediaKeyTimestamp: number | Long

MediaEntry mediaKeyTimestamp.

objectId: string

MediaEntry objectId.

progressiveJpegDetails?: null | IProgressiveJpegDetails

MediaEntry progressiveJpegDetails.

serverMediaType: string

MediaEntry serverMediaType.

sidecar: Uint8Array

MediaEntry sidecar.

uploadToken: Uint8Array

MediaEntry uploadToken.

validatedTimestamp: Uint8Array

MediaEntry validatedTimestamp.

Methods

  • Converts this MediaEntry to JSON.

    Returns {
        [k: string]: any;
    }

    JSON object

    • [k: string]: any
  • Decodes a MediaEntry message from the specified reader or buffer.

    Parameters

    • reader: Uint8Array | Reader

      Reader or buffer to decode from

    • Optional length: number

      Message length if known beforehand

    Returns MediaEntry

    MediaEntry

    Throws

    If the payload is not a reader or valid buffer

    Throws

    If required fields are missing

  • Decodes a MediaEntry message from the specified reader or buffer, length delimited.

    Parameters

    • reader: Uint8Array | Reader

      Reader or buffer to decode from

    Returns MediaEntry

    MediaEntry

    Throws

    If the payload is not a reader or valid buffer

    Throws

    If required fields are missing

  • Encodes the specified MediaEntry message. Does not implicitly verify messages.

    Parameters

    • message: IMediaEntry

      MediaEntry message or plain object to encode

    • Optional writer: Writer

      Writer to encode to

    Returns Writer

    Writer

  • Encodes the specified MediaEntry message, length delimited. Does not implicitly verify messages.

    Parameters

    • message: IMediaEntry

      MediaEntry message or plain object to encode

    • Optional writer: Writer

      Writer to encode to

    Returns Writer

    Writer

  • Creates a MediaEntry message from a plain object. Also converts values to their respective internal types.

    Parameters

    • object: {
          [k: string]: any;
      }

      Plain object

      • [k: string]: any

    Returns MediaEntry

    MediaEntry

  • Creates a plain object from a MediaEntry message. Also converts values to other types if specified.

    Parameters

    • message: MediaEntry

      MediaEntry

    • Optional options: IConversionOptions

      Conversion options

    Returns {
        [k: string]: any;
    }

    Plain object

    • [k: string]: any
  • Verifies a MediaEntry message.

    Parameters

    • message: {
          [k: string]: any;
      }

      Plain object to verify

      • [k: string]: any

    Returns null | string

    null if valid, otherwise the reason why it is not

Generated using TypeDoc