@Property练习
本小节知识点:
- 【掌握】@Property练习
1.@Property练习
微博类(Status)
- 文字内容(text)
- 配图(picture)
- 发表时间(createTime)
- 作者(author)
- 转发的说说(repostStatus)
- 评论数(commentCount)
- 转发数(retweetCount)
- 赞数(likeCount)
作者类(Author)
- 昵称(name)
- 头像(icon)
- 生日(birthday)
- 账号(account)
账号(Account)
- 账号名称(name)
- 账号密码(pwd)
- 账号注册时间(registerTime)
模拟场景:
* 老王在2010-1-1 17:56:34注册了一个账号
(名称:xiaomage@520it.com, 密码:haomage)
* 老王的生日是1986-3-8 18:18:18
* 老王发布一条说说
* 文字内容 @“爆米花手机比逼格更有逼格”
* 图片 @“phone.png”
* 发表时间: 2015-6-20 10:23:23
* 作者: 老王
* 被转发的说说: 没有
* 评论数: 100
* 转发数: 90
* 点赞数: 200
* 王大锤在2012-8-8 19:26:54注册了一个账号
(名称:dachuimeimei@520it.com, 密码:654321)
* 王大锤的生日是1989-9-6 14:16:28
* 王大锤在2015-6-21 20:47:09时,转发了张三之前发布的说说, 并且还附带了一句话:@“真的很有逼格”