UNUser

public struct UNUser: Decodable

Holds all the information about a user.

  • id

    User’s unique identifier.

    Declaration

    Swift

    public   var id                : String
  • The username of the user.

    Declaration

    Swift

    public   var username          : String
  • The name of the user.

    Declaration

    Swift

    public   var name              : String?
  • The first name of the user if it has one set.

    Declaration

    Swift

    public   var firstName         : String?
  • The last name of the user if it has one set.

    Declaration

    Swift

    public   var lastName          : String?
  • The twitter username of the user if it has one set.

    Declaration

    Swift

    public   var twitterUsername   : String?
  • The url to the user’s portfolio if it has one set.

    Declaration

    Swift

    public   var portfolioURL      : URL?
  • bio

    The user’s bio if it has one set.

    Declaration

    Swift

    public   var bio               : String?
  • The user’s location if it has one set.

    Declaration

    Swift

    public   var location          : String?
  • Number of photos the user liked.

    Declaration

    Swift

    public   var totalLikes        : Int
  • Number of photos the user has uploaded.

    Declaration

    Swift

    public   var totalPhotos       : Int
  • Number of collections the user has.

    Declaration

    Swift

    public   var totalCollections  : Int
  • URLs to the different sizes of the user’s profile image.

    Declaration

    Swift

    public   var profileImageLinks : UNProfileImageLinks
  • Public URL to the user’s profile.

    Declaration

    Swift

    public var profileURL          : URL
  • Returns a Boolean value indicating whether two users represent the same user.

    Two users are considered to be the same if they represent the same user; that is, if they have the same id, regardless if the other variables are different.

    Declaration

    Swift

    public static func ==(lhs: UNUser, rhs: UNUser) -> Bool
  • Returns a Boolean value indicating whether two users don’t represent the same user.

    Declaration

    Swift

    public static func !=(lhs: UNUser, rhs: UNUser) -> Bool