Last active
February 21, 2018 05:30
-
-
Save vardanator/b8348a126cfe849e4e7a56a9e8dde88e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| // Cached representation of an Item | |
| // Full Item object (with title, description, comments etc.) | |
| // could be fetched from the database | |
| struct Item | |
| { | |
| // ID_TYPE is the type of Item's unique id, might be an integer, or a string | |
| ID_TYPE id; | |
| int rating; | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment