public Callback AddEvent(CallbackEvent value) { if (value == null) { throw new ArgumentNullException("Argument cannot be null"); } _events.Add(value); return this; }
private void InvoceCallback() { CallbackEvent?.Invoke(null, EventArgs.Empty); }
protected override void OnDisappearing() => CallbackEvent?.Invoke(this, _selectedAlbumListId);
protected override Task PublishStatusAsync(CallbackEvent callbackEvent) { return(HubContext.Clients.Group(Hub.EventHub.VhOfficersGroupName) .HelpMessage(SourceConference.Id, SourceParticipant?.DisplayName)); }
private void btnConfirm_Click(object sender, EventArgs e) { this.Close(); this.DialogResult = DialogResult.OK; CallbackEvent?.Invoke(CurrPlayer, txbExecPath.Text, txbExecArguments.Text); }
public override sealed AbstractCallback.EventListener BuildEventListener(CallbackEvent evt, int espaceId, int tenantId) { return(new EventListener(this, evt, espaceId, tenantId)); }
protected override void OnDisappearing() => CallbackEvent?.Invoke(this, EventArgs.Empty);
protected override Task PublishStatusAsync(CallbackEvent callbackEvent) { var conferenceState = ConferenceStatus.Closed; return(PublishConferenceStatusMessage(conferenceState)); }
public EventListener(ECTGetHtmlCallback callback, CallbackEvent evt, int espaceId, int tenantId) : base(callback, evt, espaceId, tenantId) { }
private IRestResponse SendEventToVideoWeb(CallbackEvent request) { _c.Test.AlertTime = _c.TimeZone.Adjust(DateTime.Now); _c.Tokens.CallbackBearerToken = GenerateTemporaryTokens.SetCustomJwTokenForCallback(_c.VideoWebConfig.VideoWebKinlyConfiguration); return(new VideoWebApiManager(_c.VideoWebConfig.VhServices.VideoWebUrl, _c.Tokens.CallbackBearerToken).SendCallBackEvent(request)); }
private IRestResponse SendEventToVideoApi(CallbackEvent request) { _c.Test.AlertTime = _c.TimeZone.Adjust(DateTime.Now); return(_c.Apis.TestApi.SendEvent(request)); }
public void TestCreateFromJson3() { var callbackEvent = CallbackEvent.CreateFromJson("{}"); Assert.Equal(CallbackEventType.Unknown, callbackEvent.EventType); }
public void Init(TextBubble _textBubble, CallbackEvent _nextCallback, CallbackEvent _finishCallback, bool _isFinish) { for (int i = 0; i < this.emotionTypes.Length; i++) { EMOTION emotion = this.emotionTypes[i]; string emotionText = this.emotionText[i]; List <string> answers = new List <string>(); switch (i) { case 0: foreach (var item in this.answerText0) { answers.Add(item); } break; case 1: foreach (var item in this.answerText1) { answers.Add(item); } break; case 2: foreach (var item in this.answerText2) { answers.Add(item); } break; case 3: foreach (var item in this.answerText3) { answers.Add(item); } break; case 4: foreach (var item in this.answerText4) { answers.Add(item); } break; } Vector3 position = this.transform.position; this.choices.Add(new Choice(emotion, emotionText, () => { // 하이라이트 누름 if (this.isZoomIn) { EventManager.emit(EVENT_TYPE.CLOSE_UP, this); } if (this.isEnding) { if (GameManager.Instance.endingPoint >= 2) { AudioManager.PlayBgm(BGM.GOOD_ENDING); } else { AudioManager.PlayBgm(BGM.BAD_ENDING); } } _finishCallback(); _textBubble.IntroAnswer(answers, _nextCallback, _isFinish); }, position)); } }
public PopupButtonInfo(string _text, CallbackEvent _callback) { this.text = _text; this.callback = _callback == null ? () => { } : _callback; }
public AttachedSetting() { baseSet = new BaseSetting(); param = new ActionParam(); callbackFunc = new CallbackEvent(); }
public EventListener(ECTShowFeedbackCallback callback, CallbackEvent evt, int espaceId, int tenantId) : base(callback, evt, espaceId, tenantId) { }
public override bool NeedsInvoke(AppInfo app, SessionInfo session, CallbackEvent triggeredEvt) { return(base.NeedsInvoke(app, session, triggeredEvt) && !ECTGetHtmlCallback.IsEctDisabled(app)); }
protected override Task PublishStatusAsync(CallbackEvent callbackEvent) { var command = new UpdateParticipantStatusCommand(SourceConference.Id, SourceParticipant.Id, ParticipantState.Disconnected); return(CommandHandler.Handle(command)); }
public static bool AffectsApplication(this CallbackEvent evt) { return(evt == CallbackEvent.ApplicationStart || evt == CallbackEvent.InvalidateCache); }
protected override Task PublishStatusAsync(CallbackEvent callbackEvent) { return(PublishParticipantStatusMessage(ParticipantState.Disconnected)); }
public static bool AffectsNothing(this CallbackEvent evt) { return(evt == CallbackEvent.PageRender); }
protected sealed override void StoreResults(CallbackEvent evt, AppInfo app, SessionInfo session, string results) { StoreResultsInStorage(app.OsContext.CallbackResults, results); }
public sealed override void StoreResults(CallbackEvent evt, AppInfo app, SessionInfo session, object results) { StoreResults(evt, app, session, (string)results); }
protected abstract void StoreResults(CallbackEvent evt, AppInfo app, SessionInfo session, string results);
public void SetButton(string _text, CallbackEvent _callback = null) { this.m_buttonInfoList.Add(new PopupButtonInfo(_text, _callback)); }
protected override Task PublishStatusAsync(CallbackEvent callbackEvent) { return(PublishConferenceStatusMessage(ConferenceStatus.Paused)); }
private IEnumerable <AbstractCallback.EventListener> GetApplicableListeners(CallbackEvent evt, int espaceId, int?tenantId) { return(_callbackListeners.Where(l => l.AppliesToEvent(evt) && l.AppliesToTenant(espaceId, tenantId))); }
protected abstract Task PublishStatusAsync(CallbackEvent callbackEvent);
public void RunCallbacks(AppInfo app, SessionInfo session, CallbackEvent evt) { RunCallbacks(app, session, evt, app.eSpaceId, session == null ? (int?)null : app.Tenant.Id); }
protected override async Task PublishStatusAsync(CallbackEvent callbackEvent) { await PublishParticipantDisconnectMessage(); }
private void btnConfirm_Click(object sender, EventArgs e) { this.Close(); CallbackEvent?.Invoke(Moves[dgvMoves.CurrentRow.Index]); }