added missing annotations

This commit is contained in:
Mariotaku Lee 2017-03-16 20:33:33 +08:00
parent 9faccceb49
commit 7593e56aa3
No known key found for this signature in database
GPG Key ID: 99505AEA531814F1
2 changed files with 8 additions and 1 deletions

View File

@ -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";

View File

@ -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,