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.Collection
A
struct
representing aComment
collection.Comment.Unit
A
struct
representing aComment
unit.Conversation.Unit
A
struct
representing aConversation
single response.Conversation.Collection
A
struct
representing aConversation
collection.Friendship.Dictionary
A
struct
representing aFriendship
collection.Friendship.Unit
A
struct
representing a singleFriendship
value.Location.Unit
A
struct
representing a singleLocation
response.Location.Collection
A
struct
representing aLocation
collection.Media.Unit
A
struct
representing aMedia
single response.Media.Collection
A
struct
representing aMedia
collection.Media.Link
A
struct
defining a media permalink.Recipient.Collection
A
struct
representing aRecipient
collection.SavedCollection.Collection
A
struct
defining a collection ofSavedCollection
.SavedCollection.Unit
A
struct
defining a singleSavedCollection
response.Section.Collection
A
struct
defining a collection ofSection
s.Status
A
struct
representing aStatus
.Tag
A
struct
defining a tag instance.TrayItem.Unit
A
struct
representing aTrayItem
single response.TrayItem.Collection
A
struct
representing aTrayItem
collection.TrayItem.Dictionary
A
struct
representing aTrayItem
dictionary.User.Unit
A
struct
representing aUser
single response.User.Collection
A
struct
representing aUser
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.