LNGiftResponse.swift 858 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //
  2. // LNGiftResponse.swift
  3. // Gami
  4. //
  5. // Created by OneeChan on 2026/3/24.
  6. //
  7. import Foundation
  8. import AutoCodable
  9. @AutoCodable
  10. class LNGiftResource: Codable {
  11. var id: String = ""
  12. var name: String = ""
  13. var icon: String = ""
  14. var names: [String: String] = [:]
  15. var curName: String {
  16. names[LNAppConfig.shared.curLang.languageCode] ?? name
  17. }
  18. }
  19. @AutoCodable
  20. class LNGiftResourceListResponse: Decodable {
  21. var list: [LNGiftResource] = []
  22. var next: String = ""
  23. var version: String = ""
  24. }
  25. @AutoCodable
  26. class LNGiftItemVO: Decodable {
  27. var id: String = ""
  28. var value: Double = 0
  29. var resId: String = ""
  30. }
  31. @AutoCodable
  32. class LNGiftListResponse: Decodable {
  33. var list: [LNGiftItemVO] = []
  34. }
  35. @AutoCodable
  36. class LNSendGiftResponse: Decodable {
  37. var diamond: Double = 0
  38. var goldcoin: Double = 0
  39. }