SwiftagramCrypto Documentation

Protocol Specialized

public protocol Specialized: Wrapped  

A protocol describing a generic response returning an element of Response.

%143 Specialized Specialized Wrapped Wrapped Specialized->Wrapped Media.Collection Media.Collection Media.Collection->Specialized TrayItem.Dictionary TrayItem.Dictionary TrayItem.Dictionary->Specialized Status Status Status->Specialized Conversation.Unit Conversation.Unit Conversation.Unit->Specialized Media.Unit Media.Unit Media.Unit->Specialized SavedCollection.Collection SavedCollection.Collection SavedCollection.Collection->Specialized Friendship.Dictionary Friendship.Dictionary Friendship.Dictionary->Specialized SavedCollection.Unit SavedCollection.Unit SavedCollection.Unit->Specialized Tag Tag Tag->Specialized Comment.Unit Comment.Unit Comment.Unit->Specialized TrayItem.Collection TrayItem.Collection TrayItem.Collection->Specialized User.Unit User.Unit User.Unit->Specialized Comment.Collection Comment.Collection Comment.Collection->Specialized Recipient.Collection Recipient.Collection Recipient.Collection->Specialized Section.Collection Section.Collection Section.Collection->Specialized Media.Link Media.Link Media.Link->Specialized Conversation.Collection Conversation.Collection Conversation.Collection->Specialized Location.Unit Location.Unit Location.Unit->Specialized TrayItem.Unit TrayItem.Unit TrayItem.Unit->Specialized User.Collection User.Collection User.Collection->Specialized Friendship.Unit Friendship.Unit Friendship.Unit->Specialized Location.Collection Location.Collection Location.Collection->Specialized

Conforms To

Wrapped

Types Conforming to Specialized

Comment.Collection

A struct representing a Comment collection.

Comment.Unit

A struct representing a Comment unit.

Conversation.Unit

A struct representing a Conversation single response.

Conversation.Collection

A struct representing a Conversation collection.

Friendship.Dictionary

A struct representing a Friendship collection.

Friendship.Unit

A struct representing a single Friendship value.

Location.Unit

A struct representing a single Location response.

Location.Collection

A struct representing a Location collection.

Media.Unit

A struct representing a Media single response.

Media.Collection

A struct representing a Media collection.

Media.Link

A struct defining a media permalink.

Recipient.Collection

A struct representing a Recipient collection.

SavedCollection.Collection

A struct defining a collection of SavedCollection.

SavedCollection.Unit

A struct defining a single SavedCollection response.

Section.Collection

A struct defining a collection of Sections.

Status

A struct representing a Status.

Tag

A struct defining a tag instance.

TrayItem.Unit

A struct representing a TrayItem single response.

TrayItem.Collection

A struct representing a TrayItem collection.

TrayItem.Dictionary

A struct representing a TrayItem dictionary.

User.Unit

A struct representing a User single response.

User.Collection

A struct representing a User collection.

Default Implementations

status

@available(*, deprecated, message: "check for `error` instead (removing in 6.0)")
    var status: String!  

The response status.

error

var error: SpecializedError?  

An optional SpecializedError message returned by a response. It returns the failing description, if it exists, otherwise .unknown if status is not ok, and nil if it is.

Requirements

error

var error: SpecializedError?  

An optional SpecializedError message returned by a response. Default emplementation returns failing description, if it exists, otherwise .unknown if status is not ok, and nil if it is.