mirror of
https://github.com/wahyd4/libr-ios.git
synced 2026-08-09 05:06:46 +10:00
47 lines
981 B
Swift
47 lines
981 B
Swift
//
|
|
// Profile.swift
|
|
// librx
|
|
//
|
|
// Created by Yunlong Zheng on 15/10/10.
|
|
// Copyright © 2015年 librx. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
class Profile {
|
|
|
|
let id: Int
|
|
let name: String
|
|
let avatar: String
|
|
let email: String
|
|
let followed: Bool
|
|
let likeCount: Int
|
|
let postsCount: Int
|
|
let followsCount: Int
|
|
let followersCount: Int
|
|
|
|
init( id: Int,
|
|
name: String,
|
|
avatar: String,
|
|
email: String,
|
|
followed: Bool,
|
|
postsCount: Int,
|
|
likeCount: Int,
|
|
followsCount: Int,
|
|
followersCount: Int
|
|
) {
|
|
|
|
self.id = id
|
|
self.name = name
|
|
self.avatar = avatar
|
|
self.email = email
|
|
self.followed = followed
|
|
self.postsCount = postsCount
|
|
self.likeCount = likeCount
|
|
self.followersCount = followersCount
|
|
self.followsCount = followsCount
|
|
|
|
}
|
|
|
|
|
|
} |