struct

LocalSend::Protocol::DeviceInfo

Inherits JSON::Serializable < Struct < Value < Object

LocalSend device data sent in announcements, registration, and upload requests.

Keep extensible protocol values as strings so newer peer values still parse.

Constructors

new(alias __arg0 : String, version : String, device_model : Nil | String, device_type : Nil | String, fingerprint : String, port : Int32 | Nil, protocol : Nil | String, download : Bool = false, announce : Bool | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
of(identity : Identity, port : Int32, announce : Bool | Nil = nil) : DeviceInfo

Builds this device's advertised information. Set announce for discovery greetings.

Source

Instance methods

alias
Source
announce
Source
device_model
Source
device_type
Source
download
Source
fingerprint
Source
port
Source
protocol
Source
version
Source