-
Notifications
You must be signed in to change notification settings - Fork 5
/
Status.java
135 lines (126 loc) · 4.34 KB
/
Status.java
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
/*
* Copyright (C) 2015 8tory, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.sina.weibo.simple;
import auto.json.AutoJson;
import android.support.annotation.Nullable;
import java.util.List;
import java.util.Date;
import rx.Observable;
@AutoJson
public abstract class Status implements android.os.Parcelable {
@Nullable
@AutoJson.Field(name = "created_at", typeConverter = WeiboDateConverter.class)
public abstract Date createdAt();
@Nullable
@AutoJson.Field
public abstract Long id();
@Nullable
@AutoJson.Field
public abstract String mid();
@Nullable
@AutoJson.Field
public abstract String idstr();
@Nullable
@AutoJson.Field
public abstract String text();
@Nullable
@AutoJson.Field
public abstract String source();
@Nullable
@AutoJson.Field
public abstract boolean favorited();
@Nullable
@AutoJson.Field
public abstract boolean truncated();
@Nullable
@AutoJson.Field(name = "in_reply_to_status_id")
public abstract String inReplyToStatusId();
@Nullable
@AutoJson.Field(name = "in_reply_to_user_id")
public abstract String inReplyToUserId();
@Nullable
@AutoJson.Field(name = "in_reply_to_screen_name")
public abstract String inReplyToScreenName();
@Nullable
@AutoJson.Field(name = "thumbnail_pic")
public abstract String thumbnailPic();
@Nullable
@AutoJson.Field(name = "bmiddle_pic")
public abstract String middlePic();
@Nullable
@AutoJson.Field(name = "original_pic")
public abstract String originalPic();
@Nullable
@AutoJson.Field
public abstract Geo geo();
@Nullable
@AutoJson.Field
public abstract User user();
@Nullable
@AutoJson.Field(name = "retweeted_status")
public abstract Status retweetedStatus();
@Nullable
@AutoJson.Field(name = "reposts_count")
public abstract int repostsCount();
@Nullable
@AutoJson.Field(name = "comments_count")
public abstract int commentsCount();
@Nullable
@AutoJson.Field(name = "attitudes_count")
public abstract int attitudesCount();
@Nullable
@AutoJson.Field(name = "mlevel")
public abstract int level();
@Nullable
@AutoJson.Field
public abstract Visible visible();
@Nullable
@AutoJson.Field(name = "pic_urls")
public abstract List<String> picUrls();
@AutoJson.Builder
public abstract static class Builder {
public abstract Builder createdAt(Date x);
public abstract Builder id(Long x);
public abstract Builder mid(String x);
public abstract Builder idstr(String x);
public abstract Builder text(String x);
public abstract Builder source(String x);
public abstract Builder favorited(boolean x);
public abstract Builder truncated(boolean x);
public abstract Builder inReplyToStatusId(String x);
public abstract Builder inReplyToUserId(String x);
public abstract Builder inReplyToScreenName(String x);
public abstract Builder thumbnailPic(String x);
public abstract Builder middlePic(String x);
public abstract Builder originalPic(String x);
public abstract Builder geo(Geo x);
public abstract Builder user(User x);
public abstract Builder retweetedStatus(Status x);
public abstract Builder repostsCount(int x);
public abstract Builder commentsCount(int x);
public abstract Builder attitudesCount(int x);
public abstract Builder level(int x);
public abstract Builder visible(Visible x);
public abstract Builder picUrls(List<String> x);
public abstract Status build();
}
public static Builder builder() {
return new AutoJson_Status.Builder();
}
public Observable<Comment> comment(String comment) {
return SimpleWeibo.get().publishComment(comment, this);
}
}