Protocol
Specialized
public protocol Specialized: Wrapped
A protocol describing a generic response returning an element of Response.
Relationships
Conforms To
Wrapped
Types Conforming to Specialized
Comment.CollectionA
structrepresenting aCommentcollection.Comment.UnitA
structrepresenting aCommentunit.Conversation.UnitA
structrepresenting aConversationsingle response.Conversation.CollectionA
structrepresenting aConversationcollection.Friendship.DictionaryA
structrepresenting aFriendshipcollection.Friendship.UnitA
structrepresenting a singleFriendshipvalue.Location.UnitA
structrepresenting a singleLocationresponse.Location.CollectionA
structrepresenting aLocationcollection.Media.UnitA
structrepresenting aMediasingle response.Media.CollectionA
structrepresenting aMediacollection.Media.LinkA
structdefining a media permalink.Recipient.CollectionA
structrepresenting aRecipientcollection.SavedCollection.CollectionA
structdefining a collection ofSavedCollection.SavedCollection.UnitA
structdefining a singleSavedCollectionresponse.Section.CollectionA
structdefining a collection ofSections.StatusA
structrepresenting aStatus.TagA
structdefining a tag instance.TrayItem.UnitA
structrepresenting aTrayItemsingle response.TrayItem.CollectionA
structrepresenting aTrayItemcollection.TrayItem.DictionaryA
structrepresenting aTrayItemdictionary.User.UnitA
structrepresenting aUsersingle response.User.CollectionA
structrepresenting aUsercollection.
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.