Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function _SafeStr_8828(k:_SafeStr_2275):void
- {
- var _local_2:_SafeStr_3775;
- if ((k is _SafeStr_3771))
- {
- _SafeStr_4.log("TRADING::TradingOpenFailedEvent");
- if (this._SafeStr_10836)
- {
- this._SafeStr_10820._SafeStr_8910(_SafeStr_3771(k));
- } else
- {
- if (((_SafeStr_3771(k)._SafeStr_5834().reason == _SafeStr_3753._SafeStr_8911) || (_SafeStr_3771(k)._SafeStr_5834().reason == _SafeStr_3753._SafeStr_8912)))
- {
- this._SafeStr_10820._SafeStr_8914(TradingView._SafeStr_8913);
- };
- };
- } else
- {
- if ((k is _SafeStr_3776))
- {
- _SafeStr_4.log("TRADING::TradingAcceptEvent");
- if (_SafeStr_3776(k)._SafeStr_8823 == this._SafeStr_10800)
- {
- this._SafeStr_10804 = (!(_SafeStr_3776(k)._SafeStr_8915 == 0));
- } else
- {
- this._SafeStr_10813 = (!(_SafeStr_3776(k)._SafeStr_8915 == 0));
- };
- this._SafeStr_10820._SafeStr_8898();
- } else
- {
- if ((k is _SafeStr_3718))
- {
- _SafeStr_4.log("TRADING::TradingConfirmationEvent");
- this.state = _SafeStr_8892;
- } else
- {
- if ((k is _SafeStr_3754))
- {
- _SafeStr_4.log("TRADING::TradingCompletedEvent");
- this.state = _SafeStr_8895;
- } else
- {
- if ((k is _SafeStr_3775))
- {
- _SafeStr_4.log("TRADING::TradingCloseEvent");
- if (!this._SafeStr_10821)
- {
- _SafeStr_4.log("Received TradingCloseEvent, but trading already stopped!!!");
- return;
- };
- _local_2 = (k as _SafeStr_3775);
- if (_local_2._SafeStr_5834().reason == _SafeStr_3762._SafeStr_8916)
- {
- if (this._SafeStr_10815.getBoolean("trading.commiterror.enabled"))
- {
- this._SafeStr_10820.windowManager.simpleAlert("${inventory.trading.notification.title}", "${inventory.trading.notification.commiterror.caption}", "${inventory.trading.notification.commiterror.info}");
- };
- } else
- {
- if (_local_2._SafeStr_5834()._SafeStr_8823 != this._SafeStr_10800)
- {
- this._SafeStr_10820._SafeStr_8914(TradingView._SafeStr_8917);
- };
- };
- this.close();
- } else
- {
- if ((k is _SafeStr_3734))
- {
- _SafeStr_4.log("TRADING::TradingNotOpenEvent");
- } else
- {
- if ((k is _SafeStr_3769))
- {
- this._SafeStr_10820._SafeStr_8918("${inventory.trading.warning.others_account_disabled}");
- } else
- {
- if ((k is _SafeStr_3772))
- {
- this._SafeStr_10820._SafeStr_8919("${inventory.trading.warning.own_account_disabled}");
- } else
- {
- _SafeStr_4.log(("TRADING/Unknown message event: " + k));
- };
- };
- };
- };
- };
- };
- };
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement