-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Addresses issue #20, implements asset image view updated at measured …
…latency. Support for pause, but not implemented currently
- Loading branch information
1 parent
90ee420
commit bf48d3c
Showing
3 changed files
with
205 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
app/src/main/java/org/famsf/roundware/utils/AssetData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package org.famsf.roundware.utils; | ||
|
||
/** | ||
* A simple class with two strings | ||
*/ | ||
public class AssetData { | ||
public final String url; | ||
public final String description; | ||
|
||
public AssetData(String url, String description){ | ||
this.url = url; | ||
this.description = description; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if(o instanceof AssetData){ | ||
AssetData other = (AssetData)o; | ||
boolean urlTest = other.url == null ? this.url == null : other.url.equals(this.url); | ||
boolean descriptionTest = other.description == null ? this.description == null : | ||
other.description.equals(this.description); | ||
return urlTest && descriptionTest; | ||
} | ||
return false; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters