-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWeiboModel.h
57 lines (50 loc) · 2.7 KB
/
WeiboModel.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//
// WeiboModel.h
// XSWeibo
//
// Created by gj on 15/9/9.
// Copyright (c) 2015年 huiwen. All rights reserved.
//
//返回值字段 字段类型 字段说明
//created_at string 微博创建时间
//id int64 微博ID
//mid int64 微博MID
//idstr string 字符串型的微博ID
//text string 微博信息内容
//source string 微博来源
//favorited boolean 是否已收藏,true:是,false:否
//truncated boolean 是否被截断,true:是,false:否
//in_reply_to_status_id string (暂未支持)回复ID
//in_reply_to_user_id string (暂未支持)回复人UID
//in_reply_to_screen_name string (暂未支持)回复人昵称
//thumbnail_pic string 缩略图片地址,没有时不返回此字段
//bmiddle_pic string 中等尺寸图片地址,没有时不返回此字段
//original_pic string 原始图片地址,没有时不返回此字段
//geo object 地理信息字段 详细
//user object 微博作者的用户信息字段 详细
//retweeted_status object 被转发的原微博信息字段,当该微博为转发微博时返回 详细
//reposts_count int 转发数
//comments_count int 评论数
//attitudes_count int 表态数
//mlevel int 暂未支持
//visible object 微博的可见性及指定可见分组信息。该object中type取值,0:普通微博,1:私密微博,3:指定分组微博,4:密友微博;list_id为分组的组号
//pic_ids object 微博配图ID。多图时返回多图ID,用来拼接图片url。用返回字段thumbnail_pic的地址配上该返回字段的图片ID,即可得到多个图片url。
//ad object array 微博流内的推广微博ID
#import "BaseModel.h"
#import "UserModel.h"
@interface WeiboModel : BaseModel
@property(nonatomic,copy)NSString *createDate; //微博创建时间
@property(nonatomic,retain)NSNumber *weiboId; //微博ID
@property(nonatomic,copy)NSString *weiboIdStr; //字符串微博ID
@property(nonatomic,copy)NSString *text; //微博的内容
@property(nonatomic,copy)NSString *source; //微博来源
@property(nonatomic,retain)NSNumber *favorited; //是否已收藏
@property(nonatomic,copy)NSString *thumbnailImage; //缩略图片地址
@property(nonatomic,copy)NSString *bmiddlelImage; //中等尺寸图片地址
@property(nonatomic,copy)NSString *originalImage; //原始图片地址
@property(nonatomic,retain)NSDictionary *geo; //地理信息字段
@property(nonatomic,retain)NSNumber *repostsCount; //转发数
@property(nonatomic,retain)NSNumber *commentsCount; //评论数
@property(nonatomic,strong)UserModel *userModel;
@property(nonatomic,strong)WeiboModel *reWeiboModel;
@end