ShowComment.cs 569 B

1234567891011121314151617181920212223242526
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using LitJson;
  6. public class ShowCommentData
  7. {
  8. public int id;
  9. public string content;
  10. public AccountData accountData;
  11. public ShowCommentData(JsonData data)
  12. {
  13. id = (int) data["id"];
  14. content = (string) data["content"];
  15. long playerId = (long) data["user_id"];
  16. string nickname = (string) data["nickname"];
  17. accountData = new AccountData(nickname, playerId.ToString());
  18. }
  19. }
  20. public class ShowComment : BaseComment
  21. {
  22. }