Austin Huang
4 years ago
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F
8 changed files with 157 additions and 4 deletions
-
72app/src/main/java/awais/instagrabber/activities/StoryViewer.java
-
21app/src/main/java/awais/instagrabber/asyncs/i/iStoryStatusFetcher.java
-
10app/src/main/java/awais/instagrabber/models/StoryModel.java
-
37app/src/main/java/awais/instagrabber/models/stickers/QuizModel.java
-
11app/src/main/res/layout/activity_story_viewer.xml
-
4app/src/main/res/values-zh/strings.xml
-
4app/src/main/res/values/strings.xml
-
2fastlane/metadata/android/changelogs/38.txt
@ -0,0 +1,37 @@ |
|||
package awais.instagrabber.models.stickers; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
public final class QuizModel implements Serializable { |
|||
private final String id, question; |
|||
private final String[] choices; |
|||
private Long[] counts; |
|||
private int mychoice; |
|||
|
|||
public QuizModel(final String id, final String question, final String[] choices, final Long[] counts, final int mychoice) { |
|||
this.id = id; // only the poll id |
|||
this.question = question; |
|||
this.choices = choices; |
|||
this.counts = counts; |
|||
this.mychoice = mychoice; |
|||
} |
|||
|
|||
public String getId() { |
|||
return id; |
|||
} |
|||
|
|||
public String getQuestion() { |
|||
return question; |
|||
} |
|||
|
|||
public String[] getChoices() { return choices;} |
|||
|
|||
public Long[] getCounts() { return counts;} |
|||
|
|||
public int getMyChoice() { return mychoice; } |
|||
|
|||
public void setMyChoice(final int choice) { |
|||
this.mychoice = choice; |
|||
counts[choice] += 1L; |
|||
} |
|||
} |
@ -0,0 +1,2 @@ |
|||
* You can now respond to quizzes, plus you get to see correct answer beforehand (FYI: I will not support music questions) |
|||
* Fixed feed story fetch approach |
Write
Preview
Loading…
Cancel
Save
Reference in new issue