2015-03-30 17:05:41 +02:00
|
|
|
/*
|
2017-04-17 06:24:32 +02:00
|
|
|
* Twidere - Twitter client for Android
|
2015-03-30 17:05:41 +02:00
|
|
|
*
|
2017-04-20 16:18:45 +02:00
|
|
|
* Copyright 2012-2017 Mariotaku Lee <mariotaku.lee@gmail.com>
|
2015-03-30 17:05:41 +02:00
|
|
|
*
|
2017-04-20 16:18:45 +02:00
|
|
|
* 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
|
2015-03-30 17:05:41 +02:00
|
|
|
*
|
2017-04-20 16:18:45 +02:00
|
|
|
* 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.
|
2015-03-30 17:05:41 +02:00
|
|
|
*/
|
|
|
|
|
2016-05-13 07:08:02 +02:00
|
|
|
package org.mariotaku.microblog.library.twitter;
|
2015-03-30 17:05:41 +02:00
|
|
|
|
2017-03-11 14:15:29 +01:00
|
|
|
import org.mariotaku.microblog.library.twitter.annotation.StreamWith;
|
|
|
|
import org.mariotaku.microblog.library.twitter.callback.UserStreamCallback;
|
2017-04-07 03:19:09 +02:00
|
|
|
import org.mariotaku.microblog.library.twitter.template.StatusAnnotationTemplate;
|
2015-05-26 13:19:03 +02:00
|
|
|
import org.mariotaku.restfu.annotation.method.GET;
|
2017-04-07 04:31:07 +02:00
|
|
|
import org.mariotaku.restfu.annotation.param.Params;
|
2015-03-30 17:05:41 +02:00
|
|
|
|
|
|
|
/**
|
2017-04-07 03:19:09 +02:00
|
|
|
* Twitter UserStream API
|
2015-05-26 13:19:03 +02:00
|
|
|
* Created by mariotaku on 15/5/26.
|
2015-03-30 17:05:41 +02:00
|
|
|
*/
|
2017-04-07 04:31:07 +02:00
|
|
|
@Params(template = StatusAnnotationTemplate.class)
|
2015-05-26 13:19:03 +02:00
|
|
|
public interface TwitterUserStream {
|
2015-03-30 17:05:41 +02:00
|
|
|
|
2015-05-26 13:19:03 +02:00
|
|
|
@GET("/user.json")
|
2017-03-11 14:15:29 +01:00
|
|
|
void getUserStream(@StreamWith String with, UserStreamCallback callback);
|
2015-03-30 17:05:41 +02:00
|
|
|
|
|
|
|
}
|