-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathSpellingsModel.java
More file actions
74 lines (57 loc) · 1.58 KB
/
SpellingsModel.java
File metadata and controls
74 lines (57 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
package com.buildmlearnstore.model;
import java.util.ArrayList;
public class SpellingsModel {
private String mPuzzleName;
private String mPuzzleAuthor;
private ArrayList<WordModel> mSpellingsList;
private int totalCorrect=0,totalWrong=0,activeCount=0;
public static SpellingsModel mSpellingsModel;
public static void clearInstance()
{
mSpellingsModel.totalCorrect=0;
mSpellingsModel.totalWrong=0;
mSpellingsModel.activeCount=0;
}
public static SpellingsModel getInstance()
{
if(mSpellingsModel==null)
mSpellingsModel=new SpellingsModel();
return mSpellingsModel;
}
public String getPuzzleName() {
return mPuzzleName;
}
public void setPuzzleName(String mPuzzleName) {
this.mPuzzleName = mPuzzleName;
}
public String getPuzzleAuthor() {
return mPuzzleAuthor;
}
public void setPuzzleAuthor(String mPuzzleAuthor) {
this.mPuzzleAuthor = mPuzzleAuthor;
}
public ArrayList<WordModel> getSpellingsList() {
return mSpellingsList;
}
public void setSpellingsList(ArrayList<WordModel> mSpellingsList) {
this.mSpellingsList = mSpellingsList;
}
public int getTotalCorrect() {
return totalCorrect;
}
public void setTotalCorrect(int totalCorrect) {
this.totalCorrect = totalCorrect;
}
public int getTotalWrong() {
return totalWrong;
}
public void setTotalWrong(int totalWrong) {
this.totalWrong = totalWrong;
}
public int getActiveCount() {
return activeCount;
}
public void setActiveCount(int activeCount) {
this.activeCount = activeCount;
}
}