SimpleMDM-Swift Documentation

Structure Account

public struct Account: UniqueResource  

Your SimpleMDM account.

%173 Account Account UniqueResource UniqueResource Account->UniqueResource Resource Resource Account->Resource Decodable Decodable Account->Decodable

Conforms To

Resource

A protocol adopted by all resources types of the library.

Decodable
UniqueResource

Initializers

init(from:​)

public init(from decoder: Decoder) throws  

Creates a new instance of the resource by decoding from the given decoder.

This initializer throws an error if reading from the decoder fails, or if the data read is corrupted or otherwise invalid.

Parameters

decoder Decoder

The decoder to read data from.

Properties

name

public let name: String

The name of the account.

apple​Store​Country​Code

public let appleStoreCountryCode: String

The app store country that SimpleMDM uses for the account (in ISO 3166-1 alpha-2 format).

endpoint​Name

public static var endpointName: String  

The remote API endpoint identifying this resource.