Last active
May 8, 2019 04:10
-
-
Save hlung/65b5cdcc2a758d1e3ad605007f5fc0bc 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
/// Represents a user action which reacts to something | |
struct Reaction { | |
let type: ReactionType | |
let target: ReactionTarget | |
var isOn: Bool | |
} | |
enum ReactionType: String, Decodable { | |
case heart | |
case unsupported | |
} | |
enum ReactionTarget: Equatable { | |
case post(id: String) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment