Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a FileAuthRes.

Hierarchy

  • FileAuthRes

Implements

Index

Constructors

constructor

  • Constructs a new FileAuthRes.

    Parameters

    Returns FileAuthRes

Properties

error

error: string

FileAuthRes error.

expire

expire: number | Long

FileAuthRes expire.

Optional file

file: undefined | null | IFile

FileAuthRes file.

method

FileAuthRes method.

url

url: string

FileAuthRes url.

Methods

toJSON

  • toJSON(): object
  • Converts this FileAuthRes to JSON.

    Returns object

    JSON object

    • [k: string]: any

Static create

  • Creates a new FileAuthRes instance using the specified properties.

    Parameters

    Returns FileAuthRes

    FileAuthRes instance

Static decode

  • decode(reader: Reader | Uint8Array, length?: undefined | number): FileAuthRes
  • Decodes a FileAuthRes message from the specified reader or buffer.

    throws

    {Error} If the payload is not a reader or valid buffer

    throws

    {$protobuf.util.ProtocolError} If required fields are missing

    Parameters

    • reader: Reader | Uint8Array

      Reader or buffer to decode from

    • Optional length: undefined | number

    Returns FileAuthRes

    FileAuthRes

Static decodeDelimited

  • decodeDelimited(reader: Reader | Uint8Array): FileAuthRes
  • Decodes a FileAuthRes message from the specified reader or buffer, length delimited.

    throws

    {Error} If the payload is not a reader or valid buffer

    throws

    {$protobuf.util.ProtocolError} If required fields are missing

    Parameters

    • reader: Reader | Uint8Array

      Reader or buffer to decode from

    Returns FileAuthRes

    FileAuthRes

Static encode

  • encode(message: IFileAuthRes, writer?: $protobuf.Writer): Writer
  • Encodes the specified FileAuthRes message. Does not implicitly verify messages.

    Parameters

    • message: IFileAuthRes

      FileAuthRes message or plain object to encode

    • Optional writer: $protobuf.Writer

    Returns Writer

    Writer

Static encodeDelimited

  • encodeDelimited(message: IFileAuthRes, writer?: $protobuf.Writer): Writer
  • Encodes the specified FileAuthRes message, length delimited. Does not implicitly verify messages.

    Parameters

    • message: IFileAuthRes

      FileAuthRes message or plain object to encode

    • Optional writer: $protobuf.Writer

    Returns Writer

    Writer

Static fromObject

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

    Parameters

    • object: object

      Plain object

      • [k: string]: any

    Returns FileAuthRes

    FileAuthRes

Static toObject

  • toObject(message: FileAuthRes, options?: $protobuf.IConversionOptions): object
  • Creates a plain object from a FileAuthRes message. Also converts values to other types if specified.

    Parameters

    • message: FileAuthRes

      FileAuthRes

    • Optional options: $protobuf.IConversionOptions

    Returns object

    Plain object

    • [k: string]: any

Static verify

  • verify(message: object): null | string
  • Verifies a FileAuthRes message.

    Parameters

    • message: object

      Plain object to verify

      • [k: string]: any

    Returns null | string

    null if valid, otherwise the reason why it is not

Generated using TypeDoc