added missing annotations
This commit is contained in:
parent
9faccceb49
commit
7593e56aa3
|
@ -23,9 +23,13 @@ package org.mariotaku.microblog.library.twitter.annotation;
|
|||
|
||||
import android.support.annotation.StringDef;
|
||||
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
|
||||
/**
|
||||
* Created by mariotaku on 2017/3/11.
|
||||
*/
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
@StringDef({StreamWith.USER, StreamWith.FOLLOWING})
|
||||
public @interface StreamWith {
|
||||
String USER = "user";
|
||||
|
|
|
@ -5,13 +5,15 @@ import android.support.annotation.StringDef;
|
|||
import com.bluelinelabs.logansquare.annotation.JsonField;
|
||||
import com.bluelinelabs.logansquare.annotation.JsonObject;
|
||||
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
|
||||
/**
|
||||
* Created by mariotaku on 16/2/26.
|
||||
*/
|
||||
@JsonObject
|
||||
public class TwitterStreamObject {
|
||||
|
||||
|
||||
@JsonField(name = "sender")
|
||||
EmptyObject sender;
|
||||
@JsonField(name = "event")
|
||||
|
@ -123,6 +125,7 @@ public class TwitterStreamObject {
|
|||
return warning;
|
||||
}
|
||||
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
@StringDef({Type.STATUS, Type.DIRECT_MESSAGE, Type.DELETE, Type.LIMIT,
|
||||
Type.STALL_WARNING, Type.SCRUB_GEO, Type.FRIENDS, Type.FAVORITE, Type.UNFAVORITE,
|
||||
Type.FOLLOW, Type.UNFOLLOW, Type.USER_LIST_MEMBER_ADDED, Type.USER_LIST_MEMBER_DELETED,
|
||||
|
|
Loading…
Reference in New Issue