|
|
@ -31,8 +31,7 @@ public class SnapChatConfig implements XMLable { |
|
|
|
public Boolean hasRead(String key) { |
|
|
|
public Boolean hasRead(String key) { |
|
|
|
|
|
|
|
|
|
|
|
Map<String, Boolean> map = markReadMap; |
|
|
|
Map<String, Boolean> map = markReadMap; |
|
|
|
Boolean val = map.get(key); |
|
|
|
return map.get(key); |
|
|
|
return val == null ? Boolean.FALSE : val; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void markRead(String key) { |
|
|
|
public void markRead(String key) { |
|
|
@ -40,6 +39,11 @@ public class SnapChatConfig implements XMLable { |
|
|
|
markReadMap.put(key, Boolean.TRUE); |
|
|
|
markReadMap.put(key, Boolean.TRUE); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void resetRead(String key) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
markReadMap.put(key, Boolean.FALSE); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void readXML(XMLableReader reader) { |
|
|
|
public void readXML(XMLableReader reader) { |
|
|
|
|
|
|
|
|
|
|
|