CitraClient.Schemas.IQUploadCreate (citra_client v0.3.0)

View Source

Request body for initiating an IQ upload.

Fields

  • :bandwidth_hznumber() (API key: bandwidthHz)
  • :capture_epoch_nsinteger() (API key: captureEpochNs)
  • :center_frequency_hznumber() (API key: centerFrequencyHz)
  • :duration_secondsnumber() (API key: durationSeconds)
  • :file_sizeinteger() (API key: fileSize)
  • :filenameString.t()
  • :sample_rate_hznumber() (API key: sampleRateHz)

Summary

Functions

Build this struct from a decoded JSON map received from the API. Unknown fields are ignored.

Convert this struct into a map with the API's camelCase keys, ready to be JSON-encoded. Fields whose value is nil are omitted.

Types

t()

@type t() :: %CitraClient.Schemas.IQUploadCreate{
  bandwidth_hz: number() | nil,
  capture_epoch_ns: integer() | nil,
  center_frequency_hz: number() | nil,
  duration_seconds: number() | nil,
  file_size: integer() | nil,
  filename: String.t() | nil,
  sample_rate_hz: number() | nil
}

Functions

from_api(data)

Build this struct from a decoded JSON map received from the API. Unknown fields are ignored.

to_api(struct)

Convert this struct into a map with the API's camelCase keys, ready to be JSON-encoded. Fields whose value is nil are omitted.