123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142 |
- 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;
- }
- }
- }
- }
|