using UnityEngine; using Newtonsoft.Json; using System; namespace DataTools { [Serializable] public class Tweet : DataObject { [JsonProperty] [SerializeField] private string senderID; [JsonProperty] [SerializeField] private int numberOFfollowes; [JsonProperty] [SerializeField] private string tweetMsg; [JsonProperty] [SerializeField] private string type; [JsonProperty] [SerializeField] private int typeIndex; [JsonProperty] [SerializeField] private string hashTag; [JsonProperty] [SerializeField] private string location; public void TweetSET(string Id, string senderid, int numberofFollowers, string tweetMsg, int TypeIndex, string Hashtag, string newLocation) { this.Id = Id; this.senderID = senderid; this.numberOFfollowes = numberofFollowers; this.tweetMsg = tweetMsg; this.typeIndex = TypeIndex; this.hashTag = Hashtag; this.location = newLocation; } [JsonIgnore] public string Location { get { return location; } set { location = value; } } [JsonIgnore] public string SenderID { get { return senderID; } set { senderID = value; } } [JsonIgnore] public int NumberOFfollowes { get { return numberOFfollowes; } set { numberOFfollowes = value; } } [JsonIgnore] public string TweetMsg { get { return tweetMsg; } set { tweetMsg = value; } } [JsonIgnore] public string Type { get { return type; } set { type = value; } } [JsonIgnore] public int TypeIndex { get { return typeIndex; } set { typeIndex = value; } } [JsonIgnore] public string HashTag { get { return hashTag; } set { hashTag = value; } } } }