Advertisement
Guest User

Untitled

a guest
Feb 24th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.63 KB | None | 0 0
  1. public function _SafeStr_8828(k:_SafeStr_2275):void
  2. {
  3. var _local_2:_SafeStr_3775;
  4. if ((k is _SafeStr_3771))
  5. {
  6. _SafeStr_4.log("TRADING::TradingOpenFailedEvent");
  7. if (this._SafeStr_10836)
  8. {
  9. this._SafeStr_10820._SafeStr_8910(_SafeStr_3771(k));
  10. } else
  11. {
  12. if (((_SafeStr_3771(k)._SafeStr_5834().reason == _SafeStr_3753._SafeStr_8911) || (_SafeStr_3771(k)._SafeStr_5834().reason == _SafeStr_3753._SafeStr_8912)))
  13. {
  14. this._SafeStr_10820._SafeStr_8914(TradingView._SafeStr_8913);
  15. };
  16. };
  17. } else
  18. {
  19. if ((k is _SafeStr_3776))
  20. {
  21. _SafeStr_4.log("TRADING::TradingAcceptEvent");
  22. if (_SafeStr_3776(k)._SafeStr_8823 == this._SafeStr_10800)
  23. {
  24. this._SafeStr_10804 = (!(_SafeStr_3776(k)._SafeStr_8915 == 0));
  25. } else
  26. {
  27. this._SafeStr_10813 = (!(_SafeStr_3776(k)._SafeStr_8915 == 0));
  28. };
  29. this._SafeStr_10820._SafeStr_8898();
  30. } else
  31. {
  32. if ((k is _SafeStr_3718))
  33. {
  34. _SafeStr_4.log("TRADING::TradingConfirmationEvent");
  35. this.state = _SafeStr_8892;
  36. } else
  37. {
  38. if ((k is _SafeStr_3754))
  39. {
  40. _SafeStr_4.log("TRADING::TradingCompletedEvent");
  41. this.state = _SafeStr_8895;
  42. } else
  43. {
  44. if ((k is _SafeStr_3775))
  45. {
  46. _SafeStr_4.log("TRADING::TradingCloseEvent");
  47. if (!this._SafeStr_10821)
  48. {
  49. _SafeStr_4.log("Received TradingCloseEvent, but trading already stopped!!!");
  50. return;
  51. };
  52. _local_2 = (k as _SafeStr_3775);
  53. if (_local_2._SafeStr_5834().reason == _SafeStr_3762._SafeStr_8916)
  54. {
  55. if (this._SafeStr_10815.getBoolean("trading.commiterror.enabled"))
  56. {
  57. this._SafeStr_10820.windowManager.simpleAlert("${inventory.trading.notification.title}", "${inventory.trading.notification.commiterror.caption}", "${inventory.trading.notification.commiterror.info}");
  58. };
  59. } else
  60. {
  61. if (_local_2._SafeStr_5834()._SafeStr_8823 != this._SafeStr_10800)
  62. {
  63. this._SafeStr_10820._SafeStr_8914(TradingView._SafeStr_8917);
  64. };
  65. };
  66. this.close();
  67. } else
  68. {
  69. if ((k is _SafeStr_3734))
  70. {
  71. _SafeStr_4.log("TRADING::TradingNotOpenEvent");
  72. } else
  73. {
  74. if ((k is _SafeStr_3769))
  75. {
  76. this._SafeStr_10820._SafeStr_8918("${inventory.trading.warning.others_account_disabled}");
  77. } else
  78. {
  79. if ((k is _SafeStr_3772))
  80. {
  81. this._SafeStr_10820._SafeStr_8919("${inventory.trading.warning.own_account_disabled}");
  82. } else
  83. {
  84. _SafeStr_4.log(("TRADING/Unknown message event: " + k));
  85. };
  86. };
  87. };
  88. };
  89. };
  90. };
  91. };
  92. };
  93. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement