1 /** 2 * Copyright © The Bot Blog 2019 3 * License: MIT (https://github.com/TheBotBlog/thebotbloglib/blob/master/LICENSE) 4 * Author: Jacob Jensen (bausshf) 5 */ 6 module thebotbloglib.facebookreact; 7 8 /// A Facebook react. 9 final class FacebookReact 10 { 11 private: 12 /// The id of the reaction. 13 string _id; 14 /// The name of the reaction. 15 string _name; 16 /// The type of the reaction. 17 string _reactionType; 18 19 package(thebotbloglib) 20 { 21 final: 22 /// Creates a new Facebook react. 23 this() 24 { 25 26 } 27 28 @property 29 { 30 /// Sets the id of the reaction. 31 void id(string newId) 32 { 33 _id = newId; 34 } 35 36 /// Sets the name of the reaction. 37 void name(string newName) 38 { 39 _name = newName; 40 } 41 42 /// Sets the type of the reaction. 43 void reactionType(string newReactionType) 44 { 45 _reactionType = newReactionType; 46 } 47 } 48 } 49 50 public: 51 final: 52 @property 53 { 54 /// Gets the id of the reaction. 55 string id() { return _id; } 56 57 /// Gets the name of the reaction. 58 string name() { return _name; } 59 60 /// Gets the type of the reaction. 61 string reactionType() { return _reactionType; } 62 } 63 }