Sender.cs 676 B

123456789101112131415161718192021222324252627282930313233
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using System;
  4. using UnityEngine;
  5. using Newtonsoft.Json;
  6. using Newtonsoft;
  7. using Newtonsoft.Json.Converters;
  8. [Serializable]
  9. public class Sender : DataObject
  10. {
  11. [JsonProperty]
  12. [SerializeField]
  13. public string SenderName;
  14. [JsonProperty]
  15. [SerializeField]
  16. public string SenderUserName;
  17. [JsonProperty]
  18. [SerializeField]
  19. public string Avatar;
  20. public Sender(string senderNameID, string senderName, string senderUserName, string avatar)
  21. {
  22. id = senderNameID;
  23. SenderName = senderName;
  24. SenderUserName = senderUserName;
  25. Avatar = avatar;
  26. }
  27. }