SwiftagramCrypto Documentation

Structure Client

public struct Client: Equatable, Codable, CustomStringConvertible  

A struct defining all possible information used to identify the software and hardware combination of a logged in user.

%275 Client Client Codable Codable Client->Codable Equatable Equatable Client->Equatable CustomStringConvertible CustomStringConvertible Client->CustomStringConvertible

Nested Types

Client.Application

A struct defining all possible information about a (mock) Instagram mobile app.

Client.Device

A struct defining all possible information about a (mock) device.

Conforms To

Codable
CustomStringConvertible
Equatable

Initializers

init(application:​device:​)

public init(application: Application, device: Device)  

Init.

Parameters

application Application

A valid Application.

device Device

A valid Device.

Properties

`default`

public static var `default`: Client = .current ?? .iPhone11ProMax

The default Client. Defaults to current, if available, otherwise iPhone11ProMax.

`default`

public static var `default`: Client = .iPhone11ProMax

The default Client. Defaults to iPhone11ProMax.

application

public let application: Application

The application info.

device

public let device: Device

The device info.

description

public var description: String  

The user agent.

browser​Description

public var browserDescription: String  

The browser user agent.

samsung​Galaxy​S20

static let samsungGalaxyS20  

A Samsung Galaxy S20.

iPhone11Pro​Max

static let iPhone11ProMax  

An iPhone 11 Pro Max.

current

static var current: Client?  

A custom iPhone device, based on the current UIDevice.