BarInsta/app/src/main/java/awais/instagrabber/models/StoryModel.java

132 lines
3.1 KiB
Java
Raw Normal View History

2020-07-01 17:08:28 +00:00
package awais.instagrabber.models;
import java.io.Serializable;
import awais.instagrabber.models.enums.MediaItemType;
2020-08-04 02:28:42 +00:00
import awais.instagrabber.models.stickers.PollModel;
import awais.instagrabber.models.stickers.QuestionModel;
2020-08-04 16:51:30 +00:00
import awais.instagrabber.models.stickers.QuizModel;
2020-07-01 17:08:28 +00:00
public final class StoryModel implements Serializable {
2020-08-06 16:48:52 +00:00
private final String storyMediaId, storyUrl, username, userId;
2020-07-01 17:08:28 +00:00
private final MediaItemType itemType;
private final long timestamp;
2020-08-04 02:28:42 +00:00
private String videoUrl, tappableShortCode, tappableId, spotify;
2020-07-30 22:19:44 +00:00
private PollModel poll;
2020-08-04 02:28:42 +00:00
private QuestionModel question;
2020-08-04 16:51:30 +00:00
private QuizModel quiz;
2020-08-04 02:28:42 +00:00
private String[] mentions;
2020-07-01 17:08:28 +00:00
private int position;
2020-08-06 16:48:52 +00:00
private boolean isCurrentSlide = false, canReply = false;
2020-07-01 17:08:28 +00:00
2020-08-06 16:48:52 +00:00
public StoryModel(final String storyMediaId, final String storyUrl, final MediaItemType itemType,
final long timestamp, final String username, final String userId, final boolean canReply) {
2020-07-01 17:08:28 +00:00
this.storyMediaId = storyMediaId;
this.storyUrl = storyUrl;
this.itemType = itemType;
this.timestamp = timestamp;
2020-07-25 21:10:26 +00:00
this.username = username;
2020-08-06 16:48:52 +00:00
this.userId = userId;
this.canReply = canReply;
2020-07-01 17:08:28 +00:00
}
public String getStoryUrl() {
return storyUrl;
}
public String getStoryMediaId() {
return storyMediaId;
}
public MediaItemType getItemType() {
return itemType;
}
public long getTimestamp() {
return timestamp;
}
public String getVideoUrl() {
return videoUrl;
}
public String getTappableShortCode() {
return tappableShortCode;
}
2020-07-30 22:19:44 +00:00
public PollModel getPoll() {
return poll;
}
2020-08-04 02:28:42 +00:00
public QuestionModel getQuestion() {
return question;
}
2020-08-04 16:51:30 +00:00
public QuizModel getQuiz() {
return quiz;
}
2020-08-04 02:28:42 +00:00
public String[] getMentions() {
return mentions;
}
2020-07-01 17:08:28 +00:00
public int getPosition() {
return position;
}
public void setVideoUrl(final String videoUrl) {
this.videoUrl = videoUrl;
}
2020-07-31 15:53:30 +00:00
public String getSpotify() {
return spotify;
}
public void setSpotify(final String spotify) {
this.spotify = spotify;
}
2020-07-01 17:08:28 +00:00
public void setTappableShortCode(final String tappableShortCode) {
this.tappableShortCode = tappableShortCode;
}
2020-07-30 22:19:44 +00:00
public void setPoll(final PollModel poll) {
this.poll = poll;
}
2020-08-04 02:28:42 +00:00
public void setQuestion(final QuestionModel question) {
this.question = question;
}
2020-08-04 16:51:30 +00:00
public void setQuiz(final QuizModel quiz) {
this.quiz = quiz;
}
2020-08-04 02:28:42 +00:00
public void setMentions(final String[] mentions) {
this.mentions = mentions;
}
2020-07-01 17:08:28 +00:00
public void setPosition(final int position) {
this.position = position;
}
public void setCurrentSlide(final boolean currentSlide) {
this.isCurrentSlide = currentSlide;
}
public boolean isCurrentSlide() {
return isCurrentSlide;
}
2020-07-25 21:10:26 +00:00
2020-08-06 16:48:52 +00:00
public boolean canReply() {
return canReply;
}
2020-07-25 21:10:26 +00:00
public String getUsername() {
return username;
}
2020-08-06 16:48:52 +00:00
public String getUserId() {
return userId;
}
2020-07-01 17:08:28 +00:00
}