| | 1 | | using DCL.Interface; |
| | 2 | |
|
| | 3 | | namespace MainScripts.DCL.Controllers.HUD.ToSPopupHUD |
| | 4 | | { |
| | 5 | | public class ToSPopupHandler : IToSPopupHandler |
| | 6 | | { |
| | 7 | | private readonly BaseVariable<bool> toSPopupVisibleVariable; |
| | 8 | |
|
| 0 | 9 | | public ToSPopupHandler(BaseVariable<bool> toSPopupVisibleVariable) |
| | 10 | | { |
| 0 | 11 | | this.toSPopupVisibleVariable = toSPopupVisibleVariable; |
| 0 | 12 | | } |
| | 13 | |
|
| | 14 | | public void Accept() |
| | 15 | | { |
| 0 | 16 | | toSPopupVisibleVariable.Set(false); |
| 0 | 17 | | WebInterface.SendToSPopupAccepted(); |
| 0 | 18 | | } |
| | 19 | |
|
| | 20 | | public void Cancel() |
| | 21 | | { |
| 0 | 22 | | toSPopupVisibleVariable.Set(false); |
| 0 | 23 | | WebInterface.SendToSPopupRejected(); |
| 0 | 24 | | } |
| | 25 | |
|
| | 26 | | public void ViewToS() |
| | 27 | | { |
| 0 | 28 | | WebInterface.SendGoToTos(); |
| 0 | 29 | | } |
| | 30 | | } |
| | 31 | | } |