2015-05-09 07:20:47 +02:00
|
|
|
/*
|
|
|
|
* Twidere - Twitter client for Android
|
|
|
|
*
|
|
|
|
* Copyright (C) 2012-2015 Mariotaku Lee <mariotaku.lee@gmail.com>
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2015-05-08 21:46:58 +02:00
|
|
|
package org.mariotaku.twidere.api.twitter.model;
|
2014-07-03 07:48:39 +02:00
|
|
|
|
2015-05-26 13:19:03 +02:00
|
|
|
import org.mariotaku.restfu.http.SimpleValueMap;
|
2015-01-11 10:28:45 +01:00
|
|
|
|
2014-07-03 07:48:39 +02:00
|
|
|
/**
|
2015-05-05 18:01:02 +02:00
|
|
|
* Created by mariotaku on 15/2/6.
|
2014-07-03 07:48:39 +02:00
|
|
|
*/
|
2015-05-09 07:20:47 +02:00
|
|
|
public class Paging extends SimpleValueMap {
|
2015-05-05 18:01:02 +02:00
|
|
|
|
|
|
|
public void setSinceId(long sinceId) {
|
2015-05-09 07:20:47 +02:00
|
|
|
put("since_id", sinceId);
|
2015-05-05 18:01:02 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public void setMaxId(long maxId) {
|
2015-05-09 07:20:47 +02:00
|
|
|
put("max_id", maxId);
|
2015-05-05 18:01:02 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public void setCount(int count) {
|
2015-05-09 07:20:47 +02:00
|
|
|
put("count", count);
|
2015-05-05 18:01:02 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public void setPage(int page) {
|
2015-05-09 07:20:47 +02:00
|
|
|
put("page", page);
|
2015-05-05 18:01:02 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public void setCursor(long cursor) {
|
2015-05-09 07:20:47 +02:00
|
|
|
put("cursor", cursor);
|
2015-05-06 21:47:09 +02:00
|
|
|
}
|
|
|
|
|
2015-07-06 11:36:18 +02:00
|
|
|
public void setCursor(String cursor) {
|
|
|
|
put("cursor", cursor);
|
|
|
|
}
|
|
|
|
|
2015-05-05 18:01:02 +02:00
|
|
|
public Paging sinceId(long sinceId) {
|
2015-05-09 07:20:47 +02:00
|
|
|
setSinceId(sinceId);
|
2015-05-05 18:01:02 +02:00
|
|
|
return this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Paging maxId(long maxId) {
|
2015-05-09 07:20:47 +02:00
|
|
|
setMaxId(maxId);
|
2015-05-05 18:01:02 +02:00
|
|
|
return this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Paging count(int count) {
|
2015-05-09 07:20:47 +02:00
|
|
|
setCount(count);
|
2015-05-05 18:01:02 +02:00
|
|
|
return this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Paging page(int page) {
|
2015-05-09 07:20:47 +02:00
|
|
|
setPage(page);
|
2015-05-05 18:01:02 +02:00
|
|
|
return this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Paging cursor(long cursor) {
|
2015-05-09 07:20:47 +02:00
|
|
|
setCursor(cursor);
|
2015-05-05 18:01:02 +02:00
|
|
|
return this;
|
|
|
|
}
|
2014-07-03 07:48:39 +02:00
|
|
|
}
|