Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. var dict: Dictionary<String, AnyObject> {
  2. return [
  3. "book_key": book_key as AnyObject,
  4. "book_title": book_title as AnyObject,
  5. "book_author": book_author as AnyObject,
  6. "book_price": book_price as AnyObject,
  7. "book_publisher" : book_publisher as AnyObject,
  8. "page_count": page_count as AnyObject,
  9. "book_description": book_description as AnyObject,
  10. "book_urlImage" : book_urlImage as AnyObject,
  11. "book_urlImage2": book_urlImage2 as AnyObject,
  12. "user_key": user_key as AnyObject,
  13. "user_name": user_name as AnyObject,
  14. "user_tag_login" : user_tag_login as AnyObject,
  15. "onGoingNegotiations" : onGoingNegotiations as AnyObject,
  16. "other_user_key": other_user_key as AnyObject,
  17. "other_tag_login": other_tag_login as AnyObject,
  18. "book_condition": book_condition as AnyObject,
  19. "timestamp": timestamp! as AnyObject
  20. ]
  21. }
  22.  
  23. var dict: Dictionary<String, String> {
  24. return [
  25. "book_key": book_key,
  26. "book_title": book_title,
  27. "book_author": book_author,
  28. "book_price": book_price,
  29. "book_publisher" : book_publisher,
  30. "page_count": page_count,
  31. "book_description": book_description,
  32. "book_urlImage" : book_urlImage,
  33. "book_urlImage2": book_urlImage2,
  34. "user_key": user_key,
  35. "user_name": user_name,
  36. "user_tag_login" : user_tag_login,
  37. "onGoingNegotiations" : onGoingNegotiations,
  38. "other_user_key": other_user_key,
  39. "other_tag_login": other_tag_login,
  40. "book_condition": book_condition,
  41. "timestamp": timestamp
  42. ]
  43. }
  44.  
  45. var dict: [String: Any] = [
  46. "book_key": true,
  47. "book_title": "Yannick",
  48. "book_author": "Test",
  49. "book_price": 123
  50. ]
  51.  
  52. var dict: [String: String] = [
  53. "book_key": "true",
  54. "book_author": "Yannick",
  55. "book_price": "123",
  56. "book_publisher": "Yannick",
  57. "page_count": "123"
  58. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement